Welcome to Maciel's Flowers Inc. Maciels Flowers has proudly served Southern California for over twenty years, providing quality flowers at competitive prices since 1993. We are family owned and operated.
Our tireless commitment to valued clients is the key inspiration for our company's growth. It's no wonder we have worked with Whole Foods Markets for over 17 years and now supply more than 41 Whole Foods locations in Southern California.
Our dedication to great service and the best quality of flowers guarantees customer satisfaction. We invite you to see for yourself.


text:
Q: field values are not getting populated after insertion of List (though the record is created) Basically I want to insert values some field values into the respected fields into child object Trademark_Details_ESR__c from the custom Object Trademark_Details__c dynamically for that i have created custom settings TrademarkESRDetails__c.Ihave got all the required values into the esrList but those are not populated after its insertion.
Here is my code.
public with sharing class CreateTrademarkDetailsESRGateway{

    public list<Trademark_Details_ESR__c> TMESR=new list<Trademark_Details_ESR__c>();
    public list<Trademark_Details_ESR__c> newESR=new list<Trademark_Details_ESR__c>();
    public String input;
    public Integer index=0;
    public map<Integer,list<TrademarkESRDetails__c>> esrmap=new map<Integer,list<TrademarkESRDetails__c>>();

   // public list<Trademark_Details_ESR__c> esrList = new list<Trademark_Details_ESR__c>();
    public list<Trademark_Details_ESR__c> esrList;

    public void DetailsUpdate(list<Trademark_Details_ESR__c> triggernew){

        for(Trademark_Details_ESR__c tempTM: triggernew){
            system.Debug('---tempTM--'+tempTM);
            system.Debug('---tempTM.BMCID__c--'+tempTM.BMCID__c);
            input=tempTM.BMCID__c;
            system.Debug('---input--'+input);
        }

        if(input!= null){
            system.Debug('---input--'+input);
            list<Trademark_Details__c>  tmrRecords = [Select id,Application_Date__c,Application_No__c,Application_Status__c,
                                                       Brand_Name__c,   Class_No__c,Contact_Email__c,Contact_Name__c,
                                                       Contact_Phone__c,Operation_Name__c,oid__c,User_Date__c,name
                                                       From
                                                       Trademark_Details__c
                                                       Where
                                                       oid__c =: input AND Application_Status__c='Objected'];

             system.debug('-tmrRecords-' + tmrRecords);
             getESRDetails(tmrRecords);
       }
    }

    public void getESRDetails(list<Trademark_Details__c> tmrRecords1){

    try{
        system.debug('---TMRRecords1'+TMRRecords1);
        system.debug('---TMRRecords1.size()---'+TMRRecords1.size());
        system.debug('--- TrademarkESRDetails__c.getAll()-'+ TrademarkESRDetails__c.getAll());
        system.debug('--- TrademarkESRDetails__c.getAll().Values()---'+ TrademarkESRDetails__c.getAll().Values());

        list<TrademarkESRDetails__c> lst = [Select ESR_Field_API_Name__c,TM_Field_API_Name__c,List_Size__c from TrademarkESRDetails__c];
        system.debug('---lst'+lst);

        for (TrademarkESRDetails__c  temp : TrademarkESRDetails__c.getAll().Values()) {
                system.debug('---temp---'+temp);
                system.debug('---temp.List_Size__c---'+integer.valueof(temp.List_Size__c));
                if(esrMap.containsKey(integer.valueof(temp.List_Size__c))){
                    esrMap.get(integer.valueof(temp.List_Size__c)).add(temp);
                    system.Debug('in IF-esrMap.get(integer.valueof(temp.List_Size__c))-' + esrMap.get(integer.valueof(temp.List_Size__c)));
                }else{
                    esrMap.put(integer.valueof(temp.List_Size__c), new List<TrademarkESRDetails__c> {temp});
                    system.Debug('in else -esrMap.get(integer.valueof(temp.List_Size__c))-' + esrMap.get(integer.valueof(temp.List_Size__c)));
                }
        }
        system.debug('-esrMap.size-' + esrMap.size()+'---esrMap---'+esrMap);
        system.debug('---esrmap.get(index)---'+esrMap.get(index));

        /*for(Trademark_Details__c tempTM: tmrRecords1){
            system.debug('---TMRRecords11---'+tempTM);
            //TrademarkESRDetails__c is a custom settings
            for(TrademarkESRDetails__c customSettings :esrmap.get(index)){
               system.debug('---customSettings'+customSettings);
               esr.put(customSettings.ESR_Field_API_Name__c, tempTM.get(customSettings.TM_Field_API_Name__c));
               system.debug('---esr1'+esr);
               break;
            }
            index++;
        }*/

       // sObject s;
       // Trademark_Details_ESR__c esr = (Trademark_Details_ESR__c)s;

        Trademark_Details_ESR__c esr=new Trademark_Details_ESR__c();

        for(Trademark_Details__c tempTM: tmrRecords1){
            system.debug('---TMRRecords11---'+tempTM + '-esr-' + esr);
            //TrademarkESRDetails__c is a custom settings

            for(TrademarkESRDetails__c customSettings : esrmap.get(index)){
               system.debug('---customSettings--'+customSettings + '-esrmap.get(index)-'+esrmap.get(index));
               esr.put(customSettings.ESR_Field_API_Name__c, tempTM.get(customSettings.TM_Field_API_Name__c));
               system.debug('---esr1--'+esr);
               esrList = new list<Trademark_Details_ESR__c>();
               esrList.add(esr);
            }
            index++;
        }

        system.debug('-esrList.size-' + esrList.size()+ '-esrList-' + esrList);

        if(esrList.size()>0){
            system.debug('--inside if'+esrList);
            insert esrList;
        }

    }catch(Exception e){
        system.debug('---Exception'+e.getmessage());
    }
   }
}

Please free to revert if any clarification is required.
Contact Details:
EmailId:ankit.bobde@bmcgroup.in
Regards,
Ankit

A: I have initialized the esrList publicly outside the loop ..but still values are not populating and now it is showing an exception "Before Insert or Upsert list must not have two identically equal elements"

redpajama_set_name: RedPajamaStackExchange


"America is the free atmosphere in which good and evil feast together.
We do not mix political Islam with terrorism for all Islam is based on freedom and rejects compulsion in all its shapes and forms that we see today, such as kidnapping, blowing up cars and airplanes or firing bullets at police stations. This is not Islam and not fundamentalism, it is crime committed by murderous criminals.
Islam is based on experimentation and persuasion and uses kindly invitation as its method and it does not raise a weapon except when countering an attack and it does not fight except to defend and restore someone's rights, it is the religion of mercy, affection, forgiveness, forbearance, love. It is based on peace, its greeting is peace and its soul is peace.


Hello! I am Anna, a writer, artist, and student with a passion for exploring other perspectives and helping people connect. As a college student majoring in Chinese and English, I am spending my summer and fall semester in Taiwan. I will be sharing my thoughts, experiences, and language developments here to help readers feel closer to Taiwan's culture and improve their own language proficiency.
I love goal-setting and helping others toward their individual aspirations, so you can expect to see personal examples of my language study methods. As a budding artist and photographer, I plan to incorporate visual accompaniments to my posts through photographs, sketches, and watercolor paintings.
I plan to research a selection of Taiwan's histories over the course of my time abroad, from the history of certain art movements to the progression of literary genres over the years. If you have an interest or knowledge in a particular area of Taiwan's history, please reach out to me via email!
I plan to post at least one Living Stories, Language Study, 刻骨銘心, and Wanderings & Musings every other week, but the schedule may adjust in the coming months. Current schedule: Wanderings & Musings and 刻骨銘心 on alternating Mondays, Living Stories and Language Study on alternating Fridays.
As a collector of stories, I plan to record snapshots of the people I encounter over these coming months through a series of informal informational interviews. I will speak with either a local or a foreign student about their life, sharing the stories that only they can tell.
I will post bi-weekly language updates beginning with a paragraph in Chinese and continuing into a language resource, observation, or grammar/vocabulary lesson. I might slide into "word nerd" moments in which I enthuse about etymological or linguistic connections to culture.
Dubbed with my favorite idiom (lit. carved on the bones and engraved on the heart: unforgettable), these posts will host my research into Taiwan's past, peering into my current research topic. From art and performance to cooking and literature, I plan to explore a series of histories during my time in Taiwan.
This page will host my more traditional blog posts; I will write whatever comes to mind, such as thoughts on studying abroad, silly anecdotes about my adventures, personal ponderings, and more. This is somewhat of a catch-all section that will likely contain more personal essays than anything else.
I fear beginnings and endings.
Middles take many turns, shifting according to minuscule changes or dramatic events, but they remain connected to that first moment. Beginnings set the tone for the future, sliding into place the lens through which everyone will view whatever follows. Beginnings can be false, based on misconceptions or misunderstandings, but each step after must follow that first footprint.
I overthink beginnings, considering the endless options that could lead to endless possibilities. Each choice could change the way others perceive the stories I tell, altering the impact of my words. This first post on my blog feels like the equivalent of a handshake with my readers; if I cling too firmly, you'll see that I'm nervous — if my hand is too limp, you'll know that I haven't done this before.
But even if you can't predict how something begins, you lose something if you don't start at all. I may be starting this blog a few steps into my journey, but I still want to forge a path. After all, once the story has begun, it can only grow; the narrative can change along the road even if it began on a different note. Handshakes improve with practice.
Do you like languages, cultures, and stories? I'll let you know when I update my blog!


text:
With Cap-And-Trade, West Coast States Are Building Out A Green New Deal
Jason Hamilton
Timothy L. McMahan | Solar Industry Magazine | March 5, 2019
The Green New Deal, rolled out in early February by U.S. Rep. Alexandria Ocasio-Cortez, D-N.Y., and Sen. Edward J. Markey, D-Mass., brings fresh focus to looming climate risks, with a seemingly audacious proposal to transform the nation's economy.
But this effort is not new. It borrows from President Franklin Roosevelt's "Second Bill of Rights," announced in his 1944 State of the Union Address. Setting the narrative for a post-war America marked by Jeffersonian prose – "these economic truths have become accepted as self-evident" – the president stated, "It is our duty now to begin to lay the plans and determine the strategy for the winning of a lasting peace and the establishment of an American standard of living higher than ever before known."
With a list of inalienable social and economic rights, Roosevelt said, "All of these rights spell security. And after this war is won, we must be prepared to move forward, in the implementation of these rights, to new goals of human happiness and well-being."
The rollout of the Green New Deal was bumpy, with rookie congressional staff mistakes handing Republicans an easy target to denigrate. Regardless, the Green New Deal aims to be a lens through which legislators' accountability will be judged. More manifesto than mandate, initiatives range from a 10-year transition to a 100% clean energy economy, infrastructure investments, guaranteed employment, debt-free college, health care, and advancement of social justice and financial equity. The echoes of Democratic icon President Roosevelt are not coincidental.
The central focus is climate change. The resolution indicates that it is the "sense of the House of Representatives" that the federal government has a duty to achieve net-zero greenhouse-gas (GHG) emissions, invest in infrastructure and industry, and secure – "for generations to come" – clean air and water, climate and community resiliency, healthy food, access to nature, and a sustainable environment, while also achieving justice and equity objectives.
Reflecting the nation's efforts to solve big problems in the New Deal era, these objectives are all part of a 10-year mobilization that would build resiliency against climate change-related disasters, overhaul aging infrastructure and implement a zero-emission power system, backed up by carbon capture.
Thwarted by two years of the Trump presidency, climate policy at the national level is an important force, but not the only one. Along the western U.S. seaboard, it is nearly certain that climate cap-and-trade programs will be adopted by Oregon and Washington this year or next, establishing a market-driven response to climate change. Much work remains in the coming months to establish fair regulatory systems that truly integrate with California and Canadian cap-and-trade programs, and Washington and Oregon must both find practical strategies to protect energy-intensive industries and jobs that are sensitive to competition from less regulated markets and locations. Both states, however, are poised to adopt and implement cap-and-trade systems.
Market Approach to Climate Change
Here's how cap-and-trade works. The "cap" is a strict, legislatively established limit on GHG emissions. As the program matures over time, the cap decreases. "Trade" is the market-based approach, where companies buy and sell "allowances" enabling them to emit at a defined amount.
Supply and demand set the price. If the markets function as designed, companies have a strong incentive to cut costs by cutting emissions. A governmental agency distributes the allowances to companies either for free (particularly in the early years of the program) or through an auction. As the emission cap declines over time, industries have an incentive to find efficiencies and lower emissions. Companies that more rapidly cut emissions can sell their allowances to companies that emit more, or they can "bank" them for future use.
Trading markets allow flexibility, increasing the capital to invest in reductions, thereby encouraging even more rapid reductions and rewarding innovation. With finite allowances, total pollution declines as the cap decreases over time.
Cap-and-trade likely works best in larger markets. If markets successfully integrate California, Oregon, Washington and Canadian provinces, deeper emission cuts could be possible. A well-designed and successful program creates one or more GHG-reduction funds, used to further the objectives of state policy to cut emissions.
Since the 2013-14 fiscal year, California has appropriated more than $8 billion to fund programs aimed at reducing GHG emissions and improving the economy, health and equity in communities. The policy framework behind these funds helps to explain the linkage in the Green New Deal between rapid climate change action and the utopian list of community enhancements that echo Roosevelt's vision. The Washington and Oregon proposals are similar.
California Sets the Stage
With one of the world's largest economies, California's original emission-reduction goals were set forth in A.B.32 in 2006. This bill has now been in place for over a dozen years, having survived legal challenges. California's cap-and-trade program (a cornerstone of the California carbon-reduction program) was extended last year through 2030, with deepened regulatory targets reducing emissions 40% below 1990 levels by 2030.
California concluded its 2018 legislative session with the passage of S.B.100, increasing the state's renewable portfolio standard, transitioning the electricity grid to 100% carbon-free energy by 2045. Former Gov. Jerry Brown's signing of S.B.100 was coupled with the issuance of Executive Order B-55-18, directing the state to achieve carbon neutrality in all sectors by 2045 and net-negative GHG emissions thereafter.
Based on 2016 GHG reporting, California has already met its 2020 GHG-reduction target. From 2001 to 2016, the carbon intensity of California's economy decreased by 38%, while the state's gross domestic product grew 41%. The state's economic modeling predicts that annual growth in California gross domestic product from 2021 to 2030 will not change, compared with a business-as-usual reference case, as a result of the state's continued implementation of GHG-reduction programs. The state's research also finds that California climate change policies have spurred sustained and significant growth in clean energy industries, though each sector studied did not have even growth year over year.
Critics of the California cap-and-trade program abound, and they question whether the program can take credit for the drop in GHG emissions or has led to any decrease in localized pollutants, considering that GHG emissions from some industrial sectors actually increased during the first years of the program. Others query whether California's continued economic success can be tied to its climate change policies. Nevertheless, California has continued to expand the program, linking to similar markets in Quebec and Ontario.
Oregon's Proposed "Cap-and-Invest" Legislation
In the 2018 Oregon legislative session, two bills were proposed that would have established a comprehensive carbon regulation system. The Clean Energy Jobs Bill would have created a "cap-and-invest" program, setting a cap on GHG emissions. The bills did not move out of committee, failing to make it to floor votes.
The legislature passed budget items for a Carbon Policy Office and for the Department of Environmental Quality to lay the groundwork to implement a cap-and-trade (branded as cap-and-invest) program by 2021. Meanwhile, last summer, a Joint Committee on Carbon Reduction worked to refine the Clean Energy Jobs Bill, aimed at passage in 2019.
On Jan. 31, the Oregon legislature issued its Oregon Climate Action Program, now in bill form as H.B.2020, which establishes a Carbon Policy Office charged with overseeing the implementation of the overall cap-and-trade/invest program. The office has the directive to achieve a reduction in total levels of regulated emissions to at least 45% below 1990 emissions levels by 2035 and to achieve a reduction in total regulated emissions levels to at least 80% below 1990 emissions levels by 2050.
The Oregon legislation faces considerable refinement during the 2019 session. Fundamentals include placing a cap on total anthropogenic GHG emissions regulated through setting annual allowances (effective 2021), establishing market-based mechanisms to demonstrate compliance, and providing declining allowances for certain industries as a transition tool, aimed at the 2035 80% GHG-reduction mandate.
Allowances for "emission-intensive, trade-exposed processes" for a number of industries would soften the risk of lost jobs (mitigating "leakage" of such industries to competing states and countries that do not impose emission limitations), at least in the short term. Carbon offset projects and credits are authorized in Oregon and in other jurisdictions that have a "linkage agreement" with Oregon. This key component anticipates integration with California, Washington and Canadian markets.
Oregon's investment strategy requires much definition and revision, including the disposition of mitigation payments. Proceeds from mitigation payments, including proceeds from carbon allowance auctions, will be invested in a number of investment accounts and funds intended to decarbonize. These accounts would include transportation decarbonization and fuel efficiency; renewable energy investments; transmission and storage projects; carbon reduction in agricultural and forestry practices; investments in fish, wildlife and ecosystems; and investments in communities considered most impacted by climate change.
Washington's Race to Catch Up
In the final weeks of Washington State's 2018 regular legislative session, all eyes were on Gov. Jay Inslee's carbon tax plan. S.B.6203 died in the democratic-led Senate, but had the bill passed, Washington would have been the first state to impose a tax on carbon emissions.
Shortly after the bill died, an advocacy group filed an initiative with the Secretary of State for the 2018 fall election to impose an aggressive carbon pricing program. Initiative 1631 proposed an annually increasing carbon fee (considered by industry to be a tax) until GHG-reduction goals were met. All money collected from the fee would be placed in a "Clean Up Pollution Fund." Money from the fund could only be used to invest in clean air/clean energy, clean water, healthy forests and healthy communities. The initiative also attempted to provide a statutory basis for Washington's Clean Air Rule, which had recently been struck down in a court challenge. Washington voters defeated Initiative 1631 by a 56 – 44% margin.
Having failed to address climate change through a carbon tax, the Washington legislature is now working on legislation modeled closely on Oregon's bill. The Washington legislation is nascent, lacking Oregon's experience over the last several years to develop the policy framework. The Washington concept needs work, and it leans on agency rulemaking to flesh out the program. The proposal sets forth the centerpiece as a "cost-effective carbon pollution market" for reducing GHG emissions, capable of being integrated with emissions-reduction programs in other jurisdictions.
Like Oregon, Washington aims to soften the blow by enabling allowances for energy-intensive, trade-exposed entities, also establishing an auction process and carbon offset credits. The Washington approach links the program to "other jurisdictions with established market-based carbon emissions reduction programs" to "broaden the carbon market to provide Washington businesses with greater flexibility and opportunities for reduced costs to meet their compliance obligations." The Washington legislation proposes to establish a "Carbon Pollution Reduction Account" beginning in 2021, distributing funds to various "energy transformation" funds, with 25% earmarked for climate impact resilience.
An Integrated Western Seaboard Market
Western seaboard state legislatures likely have the votes, with Democratic governors poised to sign. An integrated Western seaboard state market would fundamentally transform how GHG emissions are regulated, commanding the rest of the nation to pay attention. Cap-and-trade programs are complex, and the measure of success in California continues to be debated.
That said, generations ago, Republican President George H.W. Bush signed into law the world's first cap-and-trade system to control pollution. In the past 20 years, a national allowance trading system has succeeded in significantly cutting sulfur dioxide, the major contributor to acid rain. The program spurred industry innovation, resulting in faster-than-expected reductions.
The Western seaboard states are not waiting for Congress, nor are they placing their bets on utopian manifestos. Cap-and-trade programs do not promise a 10-year transition to a 100% carbon-free economy. But they do challenge industry to participate in market-based programs that, if successful, will spur innovation and stimulate private and public investments.
More than a decade ago, with an eye toward the national sulfur dioxide reduction model, California initiated the nation's market-based efforts to curb GHG emissions. Oregon and Washington are poised to expand that effort, linking carbon credits and offset programs into California and Canada trading markets. Oregon and Washington legislatures need to resolve plenty of nettlesome challenges.
However, if successful, along with emission reductions, investment funds would infuse capital into substantial efforts toward climate resiliency and clean energy, with ambitious goals to make investments in economic and social programs that could soften the impact of climate change on communities. Washington's experience shows little public appetite for a carbon tax approach.
Cap-and-trade will not meet the lofty expectations of the Green New Deal. But it just might work.
Timothy L. McMahan is a partner at Stoel Rives LLP practicing in the areas of energy, land use, real estate development, and environmental and municipal law. He also chairs Stoel Rives' climate change practice initiative. McMahan can be reached at tim.mcmahan@stoel.com.

redpajama_set_name: RedPajamaCommonCrawl


text:
Q: Java Hangman GUI not properly displaying I'm having a couple of different problems with my code, most of them are GUI based problems but i do have one actionevent problem. I will post my code in sections first then I will point out what the issue is specifically with each section. *note all of my code will be in order of how is actually in my IDE.
If you wish to copy my code without all of the other stuff here it is on pastebin: http://pastebin.com/HHjRRtGZ
My imports:
import java.awt.*;
import java.awt.event.*;

import javax.swing.*; //Makes it a Japplet

import java.util.Random;

My Program Starts here:
public class Hangman extends JApplet implements ActionListener {

    // How many times you can guess the wrong letter till you lose
    static final int DEAD = 7;

    private int errors;        // amount of errors
    private String message;   // Message displaying either Error or Victory
    private String information; // Secondary Message
    private String RealWord;      // The Real word
    private StringBuffer GuessWord;// The Guessed word
    private Button StartBtn;      // The Restart Button
    private Button GoBtn;         // The Go Button
    private TextField LetterBox; // The LetterBox

My ActionEvent:
    public void actionPerformed(ActionEvent e){

        if (e.getSource() == StartBtn){
            initGame();
        }

        if (e.getSource() == GoBtn){

            processTurn();

            LetterBox.setText("");
            repaint();
        }
    }

Problem One:
The problem that I am having with my Action event is that when I hit the StartBtn it does not reinitialize everything. Nothing is cleared. Nothing is done. It doesn't do anything. So that's the issue there.
My init() function (This is where one of my problems lie.
    public void init() {

        // Create a "Textbox" for the letter guessing
        LetterBox = new TextField();

        //Create my buttons and labels
        StartBtn = new Button("Restart");
        GoBtn = new Button("Go");

        //Add the elements to the applet

        JPanel p = new JPanel();
        p.setLayout(new FlowLayout());

        p.add(StartBtn);
        p.add(new Label("Guess a letter"));
        p.add(LetterBox);
        p.add(GoBtn);

        add(p, BorderLayout.SOUTH);

        //Make buttons event listeners
        StartBtn.addActionListener(this);
        GoBtn.addActionListener(this);

        //Startup the Game
        initGame();

    }

Problem 2 (MAIN PROBLEM):
The problems I have with my Init code that affect my GUI is that the actual word guess area and the hangman area are kind of messed up. It's hard to explain, so i'll show you an image. The Backdrop for almost all of the form is completely transparent. So it just uses a still image of whatever it was on top of as it's back ground.
Problem 3:
There are some other issues with the image as you can see. The code is further down for those parts however. But as you can tell, the messages do not clear and just write over each other, even though I specify them to (which you will see further down).
Problem 4:
Now before you guess any letters, the word is hidden with a "" but when you guess a correct letter for the word it's supposed to replace the "" with the correct letter guessed. However it just put's it on top of it (you will see the code for this below as well).

This is the Game initializer
    public void initGame() {
        //Set the errors to 0
        errors = 0;

        //Enter the wordslist, separated by a | here
        String str = "write|program|receive|positive|variables|temporary|good|bad|test";
        String[] temp;

        //delimiter
        String delimiter = "\\|";

        // given string will be split by the argument delimiter provided.
        temp = str.split(delimiter);

        //Create the Random Seed Generator
        Random RandGenerator = new Random();

        //Generate my Random Number
        int randomInt = RandGenerator.nextInt(temp.length);

        RealWord = new String(temp[randomInt]);

        char positions[] = new char[RealWord.length()];

Right here is where it replaces the unguessed characters on screen with a "*".
        for (int i = 0; i < RealWord.length(); i++) {
            positions[i] = '*';
        }

        String s = new String(positions);
        GuessWord = new StringBuffer(s);

        LetterBox.setText("");

        //Delete Messages
        message = "";
        information = "";
        repaint();
    }

My Painting function
    @Override
    public void paint(Graphics g) {

        int BaseY = 250;

        //THE HANGING STAND
        if (errors > 0) { //1 Error
            g.drawLine(90, BaseY, 200, BaseY); //The ground
            g.drawLine(125, BaseY, 125, BaseY-100); //The bar going up
            g.drawLine(125, BaseY-100, 175, BaseY-100); //The sidebar
            g.drawLine(175, BaseY-100, 175, BaseY-75); //The Rope
        }

        //THE PERSON
        if (errors > 1) {
           g.drawOval(170, BaseY-75, 10, 12); // The Head
        }

        if (errors > 2) {
           g.drawLine(175, BaseY-62, 175, BaseY-45); // The Body
        }

        if (errors > 3) {
           g.drawLine(165, BaseY-65, 175, BaseY-55); // Left Arm
        }

        if (errors > 4) {
           g.drawLine(185, BaseY-65, 175, BaseY-55); // Right Arm
        }

        if (errors > 5) {
           g.drawLine(170, BaseY-30, 175, BaseY-45); //Left Leg
        }

        if (errors > 6) {  //7 Errors
           g.drawLine(175, BaseY-45, 180, BaseY-30); // Right Left
        }

        //Show Messages/Errors
        g.drawString(message, 40, BaseY+25);
        g.drawString(information, 25, BaseY+45);
        g.drawString(new String (GuessWord), 140, BaseY-120);

        g.drawString(new String("WELCOME TO HANGMAN!"), 75, 40);
    }

This is where alot of the magic happens. This is the processTurn Function
    private void processTurn() {

        String s, t;
        char a;

        s = LetterBox.getText();
        a = s.charAt(0);

        if (!Character.isLetter(a)) {
            message = "Only enter letters please.";
            return;
        }

        if (s.length() > 1) {
            message = "One letter at a time please.";
            return;
        }

        //Check if letter has been used already
        t = new String(GuessWord);
        if (t.indexOf(s) != -1) {
            message = "You have already guessed with that letter!";
            return;
        }

        //If the letter you guessed does not occur in the Real Word
        if (RealWord.indexOf(s) == -1) {

            message = "";
            errors++;

            if (errors==DEAD) {
                message = "Sorry, you lose";
                information = "Click restart to try again!";

                //INSERT MOVING HANGMAN HERE.
            }

            return;
        }

This is where the "*" is supposed to be replaced with the correctl guessed letter but it doesn't work correctly!
        //Replace stars in the Guessed Word with the found letter
        for (int i = 0; i < RealWord.length(); i++) {
            if (RealWord.charAt(i) == a) {
                GuessWord.setCharAt(i, a);
            }
        }

        t = new String(GuessWord);

        //If all of the stars have been filled, then you win!
        if (t.indexOf('*') == -1) {
            message = "You have won!";
            return;
        }

        //Delete the Message
        message = "";
        repaint();
    }

Main Function
    public static void main(String[] args) {

        JFrame frame = new JFrame();
        JApplet applet = new Hangman();

        applet.init();
        applet.start();
        frame.add(applet);

        frame.setSize(300, 400);
        frame.setLocationRelativeTo(null); // Center the frame
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
}

Any and all assistance will be greatly appreciated :) Thanks in advance!

A: This is caused by the basic fact that you have broken the paint chain.
Painting in AWT/Swing is made of a chain of method calls.  If you neglect to maintain this chain, you start ending up with paint artifacts, in the form you are seeing.
The Graphics context is a shared resource, that is, every component painted during any given paint cycle will be given the same Graphics resource.  Each component is expected to prepare the Graphics context before painting to it...
To fix the problem, in all your paint methods, you should be calling super.paint(g) to ensure that the paint chain is maintained and that the Graphics context is preapred for the individual components painting needs.
Having said that.  It is not recommended to override paint of top level containers.  Instead, it is recommended that you perform your custom painting using something like a JPanel and override it's paintComponent method instead (ensuring that you call super.paintComponent as well!)
This has a least two basic benefits.  The first is, you can know decide where the panel should be displayed, for example, you could add it to an JApplet or JFrame or other container as you see fit.  It is double buffered by default.  This means you won't see any flicker when the painting is updated.
You should consider breaking your application down into small panels, focusing on each of the components needs separately.  This will help reduce the complexity of your application and make it easier to manage the individual needs of each section of your application.
Take a look at Performing Custom Painting and Painting in AWT and Swing for more details

A: The problem is that you're painting directly on JApplet. You should not paint directly on top level container such as JFrame or JApplet. Instead, use JComponent or JPanel. Override paintComponent() for painting rather than paint() and don't forget to call super.paintComponent(g).
Take a look at Performing Custom Painting tutorial for more information.
Consider refactoring your code by moving all the current logic and painting into a new JPanel which will be used as applet content. Then, add this panel to the applet.
EDIT:
The source of the problem is not calling super.paint() in you painting implementation. Overriding paint() is not necessary and usually not recommended in many Swing applications. JComponent.paint() (a superclass for all Swing components)  handles painting the content, borders, and children of a Swing component. And by neglecting a call to super.paint() you are disrupting the painting of all these details.
Take a looks at A Closer Look at the Paint Mechanism for more details about painting cycle.


text:
Funds Tracker
Agribusiness & Food
Health & Pharma
Transport & Tourism
Businessperson Awards
EY Entrepreneur of the Year
Pocket money for a two-year old? How to teach children about money
Don't wait until your kids are teens to start talking about family finances
Tue, Jan 10, 2017, 07:00 Updated: Tue, Jan 10, 2017, 07:51
Fiona Reddan
"A weekly allowance is great way to help kids to manage their money. There is no better way to help children learn to manage their money than to make their own mistakes."
If your children, like so many, enjoyed a Christmas of munificence, the sight of an overflowing recycling bin and ever-too-swiftly discarded presents may have left you with a slight sense of the Grinch. But if cutting down on the amount of presents your children receive from friends, family and Santa is out of the question, how about opting for an alternative tack: taking the time to instil in your children the value of money.
Yes, they may still end up getting too much in your eyes, but they may also have a greater appreciation for how much things actually cost. And you never know: convincing your offspring of the benefits of financial prudence might just help you keep your own finances in check this year.
It is hard to dispute the fact that childrens' expectations today have risen sharply when it comes to Christmas and birthdays – and even in day-to-day life, when eating in a restaurant or getting a takeaway is not an unusual occurrence.
If you're a parent, you're probably already familiar with a child coming home from school bemoaning the girl or boy who received 20 presents from Santa or €1,000 for their communion.
"My sense is that children seem to get much more compared to previous generations; it's probably a function of prosperity and the consumer society we live in," says financial adviser Simon Shirley. A parent himself, Shirley's seven-year already has his eyes on his Christmas 2017 wish list.
This environment of relative bounty means that it has never been more important to educate children about just where all those presents come from or risk having them reach adulthood unable to adjust when the parent turns off the financial tap.
For Marah Curtin, head of client engagement at Davy Stockbrokers, it's never too young to start teaching your children about money. "The value of money, how to earn it, and save it, and maybe even share some with those less fortunate, are all good lessons to learn as early as possible in life," she says.
Curtin runs Davy's Cents for Kids programme, aimed at teaching young children about money. She says that even very young children do grasp the basic concepts of money and budgeting.
And the earlier you can start, the better.
"We're not raising children, we're raising responsible adults," she says. "One of the biggest mistakes is to wait until they're in their teens to start talking about money."
Pocket money at two
Whether to give weekly pocket money, how much, at what age, and whether it should be linked with household tasks is something most parents will grapple with at some point. Not Curtin, however. When her eldest child was just two years old, she started giving him an allowance.
"A weekly allowance is great way to help kids to manage their money," she says. "There is no better way to help children learn to manage their money than to make their own mistakes."
She suggests that children should get €1 per year of age. So, for example, a five-year old would get €5 a week and a 10-year old €10. "As the child gets older, the money increases, but so do the responsibilities associated with receiving that money."
And don't be tempted to put your hand in your own pocket when the inevitable happens and the child spends their money too quickly. If they waste all their money on Pokémon cards on a Friday and have nothing left for a treat on a Saturday when their siblings are eyeing up an ice-cream, let them suffer.
"Don't bail them out!" advises Curtin. "Too often parents don't express that there are limits."
A guide to low-cost banking options for savvy Irish consumers
The best – and worst – performing funds of 2016
Should everyone in Ireland be paid €752 a month for doing nothing?
Sometimes, we as parents take the easy road; when you're busy, stressed, under pressure, isn't it easy (if you have the means) just to buy whatever your child needs rather than make them to wait to save for it, and possibly endure the associated whingeing that comes with it?
Maybe, but it's not always the best option.
This Christmas, Curtin's 12-year-old learned a life lesson when he found a gift under his tree that he may not have dreamed of – his school uniform. Earlier this year, he lost his school tracksuit and, rather than putting her hand in her pocket to buy him a new one, Curtin put it on his Santa list. So, while he may have gotten all the traditional trappings of a 12-year old as presents this year, he also had to sacrifice one of his gifts.
"It's a big lesson for him," she says.
Pleasure of saving
For many kids, the joy of getting money is in spending it. But others will take as much pleasure in saving it. The key is instilling the benefits of delayed gratification and encourage those who are loathe to save to do so.
A nine-year old getting pocket money of €9 a week, for example, won't immediately have enough for a new Barcelona or Leinster jersey. But if they are taught how to save, and manage to do so, the benefits are twofold.
"It's quite satisfying for a child to get something they want to buy with their own money; it's an incredibly important goal," says Curtin, "It's empowering".
Ron Leiber, a New York Times personal finance writer and author of The Opposite of Spoiled, suggests that parents give their children three money banks, rather than the traditional one, with each one labelled "give", "save" and "spend".
To make it even easier for kids to understand the impact their saving has, use transparent jam jars so children can see their money grow. It also introduces the concept of giving something away to charity.
So, if a child gets €9 for example, you could encourage them to put 20 per cent (€1.80) in the "save" jar, 10 per cent perhaps in the "give" jar (which can be donated to a charity of their choice at the end of the year) and the rest in the jar for spending.
When it comes to teaching children about money, many parents may be looking to recreate the days when they got their Henri Hippos and little blue savings book from the bank. But for younger children especially, understanding the link between a bank account and their money may be a step too far.
"It doesn't always make sense to open an account," says Curtin, pointing to the charges and minimal interest. "It can actually cost to have money in the bank."
Instead, keep it simple by adopting the money bank solution outlined above. "I really think the power in teaching children about money is keeping it tangible," she says.
SSIA for the home
So, instead of earning maybe €1 in interest every year, an easier and more concrete way of encouraging your children to save is by running your own family-style SSIA scheme. This could see you offer an extra €1 for every €10 saved, or you could add a €5 to every €20 saved, or some such approach.
Anther option is to encourage children to convert their money into "Cyril Squirrel" savings stamps at the post office. You can buy a stamp for just €1, and younger children will enjoy sticking them into a savings card and watching them grow.
The downside of these stamps is that, to cash them in, you have to lodge them to an existing Post Office deposit account, which you may not want or need. And savings stamps may not be as tangible a sign for a child, in the way a tower of €1 coins in a jam jar is.
For older children, a bank account can be a useful way to introduce them to the formality of finance, or even a safer place for their funds once they start raking it in after their communion.
"I remember vividly I got £29 for my communion and opened an ICS building society bank account with it," recalls Shirley. "It's a good way to gain an understanding of money and get into the savings habit".
When the time comes to buy new football boots, a new swimsuit or school bag for the child, rather than go off and do it yourself, get the child involved in shopping around for the best price. Thanks to online shopping, it doesn't necessarily mean a tortuous expedition to your local shopping centre.
"Take advantage of teachable moments," says Curtin, who adds that the weekly shop is another good place to get children involved in looking for the best value.
For tech-savvy older kids, there are plenty of apps available that they might enjoy using and which will help them track what they're spending their money on.
Financially sheltered
It may be tempting to keep children sheltered from the harsh realities of your family's finances, where you may not have enough money for everything and struggle to stay afloat. After all, why burden them with this knowledge when still so young?
However, a little knowledge, delivered in a child- or teen-friendly way, can offer an important early exposure to adult life.
"In my teenage years, I understood how much my father was earning. The sooner they [children] are exposed to this, the sooner they grasp it," says Curtin, noting that some people may feel ashamed to tell their child that they don't have the money for something.
"We don't want to worry children, but it is okay to say 'we don't have money for this because we're saving for this right now'. The more we talk about decisions, the more our children become aware."
Shirley suggests taking it a step further and equating something the child wants with the amount of work needed to generate it. So, for example, if a Lego set costs €100, then this could mean 11 hours work in a shop.
"Childhood should be carefree," he says. "But a child should have some sense of what the family can afford and not afford."
Cyril Squirrel
Henri Hippos
Marah Curtin
Ron Lieber
Simon Shirley
Cents for Kids
value of money
Where are the incentives for the negative equity generation?
Pension funds finish 2016 on a high after strong final quarter
Is appeals balance tipping against the taxpayer?
120 apply for Help-to-Buy scheme in first few hours
Refunds denied to two taxpayers overcharged by Revenue
Help-to-Buy scheme: how does it work and how do I apply?
S&P 500 eyes ninth year of gains
Hundreds of Boeing aircraft could be unsafe
Management by numbers doesn't add up
Tesla cuts prices in China to help boost sales
Funds Tracker Keep up to date with your investments
Rohan family members share €47.5m dividend payout 20:34
Nama records €41m profit in the first three months of the year 20:32
Hundreds of Boeing aircraft could be unsafe 20:11
Storm Ali blows National Ploughing Championships into €500,000 loss 20:01
Privacy activists sound bum note over new smart nappies 19:54
Minimum wage a tool for equality but no panacea for poverty
Will Boris Johnson send sterling spiralling towards parity – and what would this mean?
Cheap eats: The early bird captures the best deal
Most Read in Business
2 Q&A: What the motor tax changes could mean for you
3 Major changes to motor tax proposed for upcoming budget
4 'We bought a house in 2006 and I still cannot bring myself to mention the price'
5 Privacy activists sound bum note over new smart nappies
6 Rohan family members share €47.5m dividend payout
7 WeWork boss's move to extract cash adds to red flags before IPO
8 Telling the truth may not always be the best career move
9 Dublin Flea Christmas Market to cease operations
10 Will Ardagh's deleveraging be enough to calm market fears about its debt pile?
Save money on international transfers


text:
Youth are beneficiaries of Jupiter professional baseball
It's what Roger Dean Chevrolet Stadium does off the field that carries the most influence on the Jupiter community.
Youth are beneficiaries of Jupiter professional baseball It's what Roger Dean Chevrolet Stadium does off the field that carries the most influence on the Jupiter community. Check out this story on tcpalm.com: https://www.tcpalm.com/story/specialty-publications/jupiter-courier/2018/03/21/youth-beneficiaries-jupiter-professional-baseball/427193002/
Tim Venus, PROVIDED TO THE JUPITER COURIER NEWSWEEKLY Published 7:04 a.m. ET March 21, 2018
Since 1998, the birth year of Roger Dean Chevrolet Stadium, in Jupiter's Abacoa community, the St. Louis Cardinals and Miami Marlins, who replaced the Montreal Expos as co-tenants of the stadium in 2003, made it a precedence to be more than just a baseball stadium, but rather a beneficiary to the youth of the community.(Photo: CONTRIBUTED PHOTO BY ROGER DEAN CHEVROLET STADIUM)
Roger Dean Chevrolet Stadium is the host to the Miami Marlins and St. Louis Cardinals Spring Training, and the Jupiter Hammerheads and Palm Beach Cardinals during the minor league season.
From late February through September, there will be about 160 games played at Roger Dean Chevrolet Stadium, in Jupiter's Abacoa community, but it's what stadium officials do off the field that carries the most influence in the area.
Since 1998, the birth year of RDCS, the St. Louis Cardinals and Miami Marlins, who replaced the Montreal Expos as co-tenants of the stadium in 2003, made it a precedence to be more than just a baseball stadium, rather a beneficiary to the youth of the community.
Cardinals/Marlins Fund
The Cardinals/Marlins Fund seeks to provide financial assistance to local nonprofit organizations that encourage the participation of youth in sports and other physical fitness activities.
Giving people the opportunity to participate when they otherwise might not be unable to is a top priority for the Cardinals/Marlins Fund, an official said.
Each year, $30,000-$50,000 is donated to local youth organizations such as the Jupiter Tequesta Athletic Association, Palm Beach Gardens Youth Athletic Association and Student Athlete Community Service Network Inc., to name a few.
Throughout the years, roughly $1 million has been donated. This money can be used wherever the organization sees best fit, but ranges from building maintenance, updating facility equipment, and scholarships for kids who cannot afford to participate.
"Through our Cardinals/Marlins Fund, we feel that it is important to be an excellent community partner and we take pride in partnering with local nonprofit organizations that help children in our community with the opportunity to participate in athletics," said Roger Dean Chevrolet Stadium general manger Mike Bauer.
From PA announcements during games to charity softball events, silent auctions and in-game birthday recognitions, Roger Dean Chevrolet Stadium is dedicated to promoting the Fund and gathering as many resources as possible. Whether it's donating money, time or other resources, every amount of dedication toward the Cardinals/Marlins Fund is of high value and greatly appreciated.
For more information on how to apply or donate, please call the main stadium office at 561-775-1818. To apply for the Cardinals/Marlins Fund, you must be a 501(c)(3) nonprofit organization.
Tito's Handmade Vodka
Tito's Handmade Vodka is a tremendous sponsor of Roger Dean Chevrolet Stadium.
For every Tito's Handmade Vodka cocktail purchased at Roger Dean Chevrolet Stadium, $1 is donated to the local United Way of Palm Beach County.
Plus, Tito's Handmade Vodka will match your contribution dollar for dollar, up to $15,000. Tito's partners with 6,000 non-profit organizations throughout the country and strives to be a philanthropic company that happens to sell vodka.
The United Way's mission statement is to "improve lives by mobilizing the caring power of communities around the world to advance the common good". United Way believes we are all positively impacted by a child attending school, a new job that helps provide for a family and when individuals are provided with access to quality, affordable health care.
You can find the Tito's Handmade Vodka stand in the main stadium concourse behind the third base dugouts. Each dollar is tracked via a Bluetooth handle that automatically counts each dollar donated, per drink ordered.
For more ways to donate and participate in this season's Tito's Handmade Vodka matching program to benefit the United Way of Palm Beach County, visit the Stadium's ticket office.
Roger Dean Chevrolet Stadium looks forward to continue making an impact in the community through the Cardinals/Marlins Fund and other partnerships such as Tito's Handmade Vodka.
Plenty of progress has been made in the past 20 years, but there will always be nonprofits that can be impacted through the selfless acts of those in the community.
Tim Venus writes for Roger Dean Chevrolet Stadium.
Read or Share this story: https://www.tcpalm.com/story/specialty-publications/jupiter-courier/2018/03/21/youth-beneficiaries-jupiter-professional-baseball/427193002/
Burgers & Brews draws 5,000 to downtown Vero Beach, raises $70,000 for United Against Poverty
Indian River Guild has been helping abused youth at Hibiscus Village since 2004
Benefit for Kim Nobles on July 17 at Big Apple Pizza & Pasta in Fort Pierce
Caribbean American Cultural Group raises scholarship money at High Tea, Fashion Show and Auction
Book Depot in Stuart having half-price sale on July 24, 26, 27, 28
'Have Piano will Duel' concert brings audience to its feet in Vero Beach


About Defy – Colorado | Defy Ventures, Inc.
Defy Colorado was founded in 2017, and the new chapter has already made a significant impact on currently incarcerated people. Working closely with the Colorado Department of Correctional Services, Defy launched its in-prison program CEO of Your New Life in Arkansas Valley Correctional Facility and the Colorado State Penitentiary in December 2017.
Bob currently serves as the serves Defy as the Executive Director in Colorado. Prior to joining Defy, he spent 18+ years in corporate finance and private industry. He earned a BA in Political Science, a JD from Washburn University and an MBA from the Thunderbird School of Global Management.
Stacey believes fiercely in challenging perceptions and in the power of transformation. Growing up in an entrepreneurial household, with a father who took full advantage of his second chance in life after recovering from addiction, Stacey has always been inspired to facilitate transformation in the lives of others. Stacey received a Bachelor degree in Psychology from Colorado State University and a Master in Social Work from the University of Denver. Prior to working for Defy Colorado, Stacey provided mental health and substance use treatment to men on parole and probation. She facilitates classes weekly with our EITs at Colorado State Penitentiary and Arkansas Valley Correctional.
Arkansas Valley Correctional Facility: Arkansas Valley Correctional Facility (AVCF) is a Level III medium security level correctional facility located in Ordway, Colorado. Opened in 1987 AVCF currently houses 1,000 individuals.
Colorado State Penitentiary: Colorado State Penitentiary (CSP) is a Level V maximum security level correctional facility located in Canon City, Colorado. Opened in 1993 CSP currently houses 756 individuals.
The Post-Release Program for Defy Ventures Colorado is currently being built and we anticipate serving our first individuals in the early part of 2018. Not only serving individuals who started the CEO YNL program in the state correctional facilities, Colorado's Post-Release program looks to offer another opportunity for advancement to individuals with criminal histories who have been living in the community for a while. We're building a community of support for our EITs where they will have a strong bond with people who genuinely care about their success and will not remember them for the worst thing they've ever done. Focusing on employment readiness, character development and entrepreneurship training, Defy Ventures Colorado is working with EITs to prepare them for success by connecting them with community resources, mentors and networking opportunities.
Graduated: Inaugural cohort at AVCF scheduled to graduate on August 30, 2018. Inaugural cohort at CSP scheduled to graduate in September 2018.
The employment rate for EITs that have graduated and moved to work release facilities: none currently.
Contact: Bob Omer at [email protected].
Learn more on Defy Colorado's website: https://www.defycolorado.org/.
Find a list of upcoming events here.


text:
(function () {
  'use strict';

  angular.module('BrainPal.theme.components')
         .directive('baWizardStep', baWizardStep);

  /** @ngInject */
  function baWizardStep() {
    return {
      restrict   : 'E',
      transclude : true,
      require    : '^baWizard',
      scope      : {
        form: '='
      },
      templateUrl: 'app/theme/components/baWizard/baWizardStep.html',
      link       : function ($scope, $element, $attrs, wizard) {
        $scope.selected = true;

        var tab = {
          title       : $attrs.title,
          select      : select,
          submit      : submit,
          isComplete  : isComplete,
          isAvailiable: isAvailiable,
          prevTab     : undefined,
          setPrev     : setPrev
        };

        wizard.addTab(tab);

        function select(isSelected) {
          if (isSelected) {
            $scope.selected = true;
          } else {
            $scope.selected = false;
          }
        }

        function submit() {
          $scope.form && $scope.form.$setSubmitted(true);
        }

        function isComplete() {
          return $scope.form ? $scope.form.$valid : true;
        }

        function isAvailiable() {
          return tab.prevTab ? tab.prevTab.isComplete() : true;
        }

        function setPrev(pTab) {
          tab.prevTab = pTab;
        }
      }
    };
  }
})();

redpajama_set_name: RedPajamaGithub


text:
The Merchants' Magazine and Commercial Review, Nide 45
Statement exhibiting the quantity and value of Tobacco exported annually
from the United States from 1821 to 30th June, 1860.
YLARS.
Bales.
Hogsheads.
66,858 83,169 99,009 77,883 75,984 64,098 100,025 96,278 77,131 83,810 86,718 106,806 83,153 87,979 94,353 109,042 100,232 100,593
78,995 119,484 147,828 158,710
94,454 163,042 147,168 147,998 135,762 130,665 101,521 145,729
95,945 137,097 159,853 126,107 150,213 116,962 156,848 127,670 198,846 167,274
6,222,838 6,282,672 4,855,566 6,115,623 5,347,208 6,577,123 5,269,960 4,982,974 5,586,365 4,892,388 5,999,769 5,765,968 6,595,305 8,250,577 10,058,640 5,795,647 7,392,029 9,832,943 9,883,957 12,676,703 9,640,755 4,650,979 8,397,255 7,469,819 8,478,270 7,242,086 7,551,122 5,804,207 9,951,023 9,219,251 10,031,283 11,319,319 10,016,046 14,712,468 12,221,843 20,662,772 17,009,767 21,074,038 16,906,547
1843,.. 1844,... 1845,-• •
1847,...
1848, 1849, 1850, 1851, 1852, . 1853,1854, 1855,.. 1856,.. 1857,.. 1868,
1859,..
Total, 39 years,....
TIE CURRANT TRADE.
ANNUAL REVIEW FOR THE YEAR 1860.
The importation of currants into the United States beginning to become important, it is necessary to give some information concerning its cultivation and consumption, and duties it is submitted to in foreign countries. The sea provinces of Peloponnesus, in the Corinthian Gulf, and the shores of Argolide and Messina, and the Ionian Islands, Zante and Cephalonia, are the sole countries which produce this fruit. Several landholders, considering the great increase of consumption of this article, tried to cultivate it in other parts of Greece, but they were greatly disappointed, because the first year the vine produced currants, but the second it produced grapes.
During the period that Greece was under the dominion of the Turks the cultivation of currants was very inconsiderable, and during the Greek revolution (1821–1827) the vines were destroyed by the Turks, and up to the year 1833 the cultivation of this fruit did not make any material progress. But since that year, when a law of donation of public lands to the inhabitants has been promulgated, the cultivation began to increase steadily, so that to-day the cultivation of currants in the Kingdom of Greece covers an area of land not less than 300,000 stremas.
In the years 1833—1836 the production of currants scarcely amounted to 6,000,000 @ 10,000,000 pounds. But in the year 1851 the production reached the large amount of 70,000,000 pounds. The sickness of the vines destroyed the crops of the years 1852, 1853 and 1854, so that in the year 1855 the crop amounted to 8,000,000 pounds of excellent quality, produced principally from young branches touching the soil; this experiment and the use of brimstone improved the culture, and in 1856 the crop amounted to 40,000,000 pounds. If heavy rains had not occurred during the collection of the fruit in 1857, the crop of that year would have reached 60,000,000 pounds. Without the ravages of the oidium and the weather the vines of Greece may produce annually 120,000,000 pounds; to this amount, if we add 30 @ 35,000,000 pounds capable of production in the Ionian Islands, we have an annual production of 150,000,000 pounds, which amount, if ever produced in one year, prices will certainly decline to a point not even covering the expenses of the cultivation, and in that case many of the plantations will be abandoned. For this emergency a company has been formed in the city of Patras for the promulgation of the consumption of currants by exporting them to every possible place where there is a probability of consumption, and another company went into operation for the manufacture of wine out of currants. But both these companies have failed in their endeavors to promote the interest of the cultivators of currants.
Prices. Although Greece has the monopoly of the production of currants, prices are very irregular, being based on the quantity and quality of the crop and the general demand. During the Greek revolution currants, being exported with difficulty and paying irregular duties, were sold at prices varying from $60 @ $120 per 1,000 pounds. In the years
1829–1833 prices were between $25 and $35, owing to the poor quality of the crop. Since 1834, when the import duties in England were reduced, and up to the year 1841, prices were varying from $50 @ $80. In the year 1844, the import duty in England being again reduced, currants in that year sold at $40, in 1845 at $45, and in 1846 and 1847 at a little above $50. About that time, the production having reached a high figure, and the consumption not being in proportion, prices fell considerably, the fruit selling in 1851 as low as $10. That year the sickness in the vines made its appearance and prices went up again, so that in the years 1852 to 1855 from $80 @ $110 were paid. In 1856, the crop being more abundant, prices ranged from $70 to $80; in 1857 they were $63, and in 1858–59, $35. In 1860 prices opened at $32 per 1,000 pounds, but drooped down to $16, and went up again to $25. "We have no correct return of the last year's crop, but it is said to amount to 80,000,000 pounds from Greece alone. It is calculated that the price of $25 covers all the expenses of the cultivator and even leaves a small profit.
Export. The principal market for currants is England, where all classes eat them, and the importation there reaches, on an average, annually, 50,000,000 of pounds; and this year, on account of the reduction of duty to seven shillings per 112 lbs., it is supposed that England will consume about 80,000,000 lbs. Germany comes next to England, taking about 12 @ 18,000,000 lbs. The United States come after, having imported, for the year ending 31st March, 1861, 4,225,385 lbs. The importation of the year 1859 was nearly double that of the present one, and enough to last for the consumption of two years; but in the month of February, 1860, England having reduced the duty from 15s. 9d. to 7s. per 112 lbs., and therefore the consumption there being on the increase, several importers were induced to export to England, and about 3,000,000 lbs. were exported there, so that it is apparent that the United States cannot consume much above 4,000,000 lbs.
In Russia currants are almost unknown.
Duties. The duty in England has been reduced from 15s. 9d. to 7s. per 112 lbs.
In Austria the duty is five florins per quintal, (say 120 lbs.,) or $23 per 1,000 lbs.
In Holland, where two to three millions lbs, are imported annually, the duty is only $1 83 per 1,000 lbs.
In Greece the export duty, up to 1857, was $2 per 1,000 lbs.; in 1858 it was reduced to 83 cents; but last year it was raised to 19 drachms, or $3 16 per 1,000 lbs.
Importation of Currants into the United States.-About twenty-two years ago currants began to be imported into the United States, and the cheap prices prevailing for a long time made this fruit to be within the reach of all classes, and between 3,000,000 @ 4,000,000 lbs. were annually consumed, the price being about 4} @ 5 cents per lb.; but since the year 1851, when the sickness of the vines prevailed, the prices were pushed up from 5 to 25 cents per lb., and the importation into this country was almost stopped, so that in the year 1854 we find that the importations amounted only to 219,118 lbs., which was sold at an average price of 20 cents per lb.
DRY GOODS TRADE OF NEW-YORK,
FOR THE YEAR 1860.
From the U.S. Economist and Dry Goods Roporter.
Coltons.
On pp. 154—156 our readers will find a detailed statement of the imports of dry goods at the port of New-York for the closing year, as compared with the years 1857, 1858 and 1859. The following table shows the comparative receipts for the last twelve years :
IMPORTS OF Dry GOODS INTO THE UNITED STATES.
Woollens.
Silks.
Flac. Miscellaneous Total. 1549, $ 11,953,279 $ 6,5:9,972 .. $ 15,295,753 * 4,756,561 $ 3,959,210 $ 45,514,776 1850, 16,565,016 11,038,595 20,281,034 7,562,941 2,282,487 58,329,828 1851,...... 15,252,028 11,027,988 23,456,456 6,749,818 4,110,163 60,626,400 1852,...... 16,172,991 11,889,858 22,944,503 7,103,887 4,614,017 62,804,261 1853, 28,204,146 16,808,353 84,128,519 8,790,185 5,766,964 93,499,086 1854. 21,881,346 15,610,143 27,599,393 7,258,052 5,805,939 78,157,878 1855,..
19,157,015 11,274,221 23,478,460 6,924,635 6,968,365 66,602,697 1856,.. 26,185,825 10,901,135 28,780,519 8,772,822 7,205,592 88,927,458 1857,...... 24,938,403 17,480,962 27,691,987 6,938,787 6,676,836 82,676,528 1858,...... 21,124,303 13,567,943 20,881,736 7,008,686 4,914,523 69,093,766 1859,...... 87,329,041 27,781,264 33,652,647 11,120,484 6,266,052 112,970,944 1860,...... 34,582,922 17,721,725 34,998,710 7,914,152 .. 6,674,497 101,850,406
It will be observed, from the above statement, that the whole importation of dry goods at this port for the past year amounts to $101,880,406. The amount, though considerable, is yet less than that of 1859 by $11,090,538, a decrease of about ten per cent. The only other year approaching this sum is 1853, when the receipts reached the then extraordinary figure of $93,500,000. It does not appear that the importation has been in excess of the wants of the country. Judging from the fact that during both the spring and fall seasons importers have been enabled to clear out their stocks quite satisfactorily, and that the general result of the year's business has been favorable, we should conclude that a hundred million dollars worth of dry goods may be safely imported yearly, when the general trade of the country is in a wholesome condition. On comparing the amounts of the several kinds of manufactures with the corresponding items of previous years, some important fluctuations will be observed.
Manufactures of wool have not varied very materially from 1859, there having been a decrease under that head of $2,796,119, which is about a due proportion of the total decrease on all kinds of goods. In cotton goods, however, there has been a very significant decrease. In 1859 the receipts were $27,781,264 ; this year they have been $17,721,725; showing a falling off of $10,059,539, or thirty-five per cent. This is a very important fluctuation, and would seem to be attributable less to the competition of domestic goods than the reaction of an excessive supply during last year. Large as is the decrease compared with 1859, yet the importation has been larger than during any other former year. In 1857 nearly an equal amount was imported; in 1856 the receipts were less
by $6,800,000; and in 1855 by $6,400,000; so that the importation for this year even exceeds an average.
Silk manufactures show an increase on last year, although that was one of the largest years in the annals of the trade. The four years of largest importations of silk goods since 1849 have been as follows: 1853,
$ 34,128,519 1856,
28,730,519 1859,
84,988,710 The receipts of last year, therefore, exceeded those of all former periods. Few have been prepared to expect such a fact; for the heavy losses made on silk goods, of almost every class, in 1859, had produced an impression that a considerable reaction would appear this year. Thirty-five million dollars worth of silk goods is certainly an enormous value for one year's consumption; yet it appears to be no more than the people are prepared to buy, for the close of the season finds importers with a lighter balance than they have held for several seasons. The fact that thirty-five per cent. of the entire value of dry goods imported consists of silk fabrics affords some idea of the freedom with which our population spend their money on costly articles of dress; perhaps no other country in the world. can show such a proportion of silk goods in its consumption of textile fabrics.
The importation of flax goods has been about equal to the average of late years, though much below that of 1859. Last year the receipts were $11,120,484; this year they have been $7,914,152—showing a decrease of $3,206,332, or about twenty-seven per cent. When it is considered that last year's imports were nearly twenty-five per cent. in excess of
it is apparent enough that such a balance of goods must have been brought over into the present year as to materially limit the requirements of the past twelve months.
those of any
former year,
REVIEW OF THE FOREIGN Dry Goods TRADE OF NEW-YORK. The year 1860 has been one of varied fortunes with the dry goods importer. The spring business was generally unsatisfactory in its results, whilst that of the fall has been equally favorable; although there appears to have been no sufficient cause why the former should not have been as satisfactory as the latter season. The experience of the spring trade shows how easily our importers may lose a few million dollars by bad management; and that of the fall how great control over the value of their property they actually possess. The spring importation happened to be received earlier than usual, which naturally raised an expectation early in the season that the market would be heavily stocked. On the 1st of January a larger amount of stock was in bond than is usually held at that period; during that month the receipts continued to increase on the previous year's until
, at the beginning of February, the imports showed an excess over January of 1859 amounting to $1,200,000; during February, also, the increase was maintained, so that the customs returns for the two months exhibited an aggregate gain on the same period of 1859 amounting to $3,360,000, or about fifteen per cent. This was the bugbear of the market. Importers took fright at the figures, and


You asked and we answered! Hampton's style furniture is currently our most popular search term; it is taking the internet and interior design enthusiasts by storm this spring and summer. It's so popular that we have actually coined our very own term for this: Aussie Hampton's. Here at VAVOOM we adore the airy, classy and coastal feeling of the Hampon's and Coastal design which brings a relaxed holiday home and farmhouse feel in a classy and cosy decorating theme. Think white washed and timber furniture, louvred sideboards, substantial raw timber island benches, cross-back dining chairs and oversized linen sofas and you have the starts of a beautiful, breezy palette that oozed al fresco luxury.
This timeless design is inspired by the architecture and coastal decorating of holiday homes, boardwalks and piers in the the celebrity seaside communities along the eastern beaches of upstate New York's neighbouring Long Island. If you've watched a movie with the urban New Yorkers lounging on deck chairs on expansive beaches then you will know exactly what we mean, it is how the New Yorkers let their hair down! The interior decorating style creates a relaxed coastal atmosphere with generous proportions of sofas for relaxing, substantial kitchens with oversized island benches for gathering and entertaining, and crisp blue-striped awnings over decks, pools and outdoor entertaining areas.
How can I decorate in a Hampton's Style?
With Hampton's and Coastal styling you can't go wrong with the purest shades of white. This clean, crisp and elegant shade allows the space to flow beautifully and it creates open and expansive depth and freshness to the interior decoration. The use of white-washed plantation shutters, sheer and linen curtains, louvered and large windows with white panels and frames all add to the base of this breathtaking style.
With a base of white, white and more white you can add natural earthy textures of timbers in oak and light woods. Exposed hardwood floors, chunky oak benchtops and raw and recycled timbers all add warmth to the coolness of the white. If you do still want to add colour to the space then take inspiration from the natural world with powder blues, sage green and colours of the ocean. Above all else, the Hampton's look is more about natural texture and pattern rather than a variety of colours. One shade of blue or one shade of green combined with the white and natural woods is more than enough to make this design style work for you.
What Furniture is Hampton's Style?
This is a great question as the Hampton's Style furnishing can wear many hats. It can be a little rustic French Farmhouse with thick oak dining tables, massive bookshelves and display cabinets and chunky wooden benches. It can be slightly industrial with oversized pendant lights and cross-back dining chairs combined with distressed and recycled timbers. It can be Classical with linen sofas, mirrored consoles with lattice patterns, iron furniture and upholstered high-back chairs. It can also be a bit Bohemian with rattan, cane and natural textures. A common theme is the idea of an 'X' or louvered designs in the furniture and geometric lattice shapes. Our range of Louvered buffets, headboards and Manto consoles are great examples of Hampton's Style Furnishings.
Comfortable linen armchairs are also a simple way to create a central feature to this look, pair it with our white Bamileke tables and beautiful design books to create the ultimate Aussie Hampton's nook.
The beautiful natural elements that bring this design style together are chrome pendant lights, candles, massive lanterns, seaside decorations and ocean motifs, linen table lamps and china blues, chintz and Chinoiserie. Monochrome rugs in neutral tones with simple geometric lattice patterns as well as cushions with piping details in thick linens all piled comfortably on oversized sofas is the perfect combination of comfort and class. The white walls are best adorned with wood framed round or arched mirrors, clocks and abstract paintings. Just remember to keep it simple and the colour palette minimal and you've nailed it.


text:
kir-logo
Startup 425 aims to help small businesses on the Eastside
The program is a partnership between the cities of Bellevue, Issaquah, Kirkland, Redmond, Renton and the Port of Seattle.
by Aaron Kunkler
Wednesday, April 4, 2018 8:30am
Kirkland City Hall
Potential small business owners looking to take the plunge have new tools available to them with the ramping up of a collaboration between five Eastside cities.
Startup 425 is a partnership between Bellevue, Issaquah, Kirkland, Redmond, Renton and the Port of Seattle that focuses on connecting would-be startup entrepreneurs with resources. The program was started more than a year ago, but it is ramping up for another round of seminars and workshops this year.
Jesse Canedo is the economic development manager for Bellevue and said the programs are focused on getting startups off the ground.
"Making sure that they focus on the ideation portion," he said.
In his view, Canedo said Seattle has a monopoly on younger tech industry workers and startups, but the Eastside has more seasoned professionals who are further along in their career and may have families or other commitments. That alters their risk analysis when deciding whether to start a business, he said.
One of the focuses of the program is helping entrepreneurs develop their business idea and figure out if there's enough substance to survive in today's startup economy. Around half of those who utilize Startup 425 make less than $50,000 annually and many are already fully employed.
Helping startups succeed is beneficial to the local economy, said Redmond economic development manager Jill Smith.
"It's our goal to have healthy businesses in our cities and the Eastside," she said.
While the programs aren't limited to serving just residents from Eastside cities, it is marketed here.
Programs aren't just for beginners though. One of the services offered is called Global Passport which helps businesses prepare for selling internationally. This includes workshops but also a delegation trip to the Mobile World Congress in Barcelona. All 2018 slots are filled, but more information about a 2019 trip will be available later this summer.
The six workshops currently offered by Startup 425 include topics such as ideation, helping people develop and assess business ideas, business licensing, developing a business plan, exploring financing options, marketing strategies and networking and mentoring.
During the first year, Startup 425 served more than 150 residents during 16 workshops. A press release from the organization said more than 60 percent of attendees identified as women and nearly two-thirds were people of color.
More information can be found at www.Startup425.org.
Eastside cities launch free resources for entrepreneurs
Wolff Company announces senior living community in Kirkland
Selection and steady sales characterize local market
Buyers can enjoy additional selection this summer as they look for the home of their choice.
Choi joins staff at Kirkland Family Dentistry
Kirkland Family Dentistry has added a new dentist to the staff, Dr.… Continue reading
Tutta Bella to partner with QFC and open in-store location at Kirkland Urban
The smaller location will open this summer.
Evergreen Market opens fourth shop in Kirkland
The ribbon cutting ceremony was held on April 25.
Microsoft reveals project criteria for $500 million affordable housing funds
The company will soon accept applications for projects related to affordable housing on the Eastside.
Second out-of-hospital birth center comes to Kirkland
Community welcomed Empowered Pregnancy Birth Center and Women's Wellness Clinic on May 9.
'Busy' housing market enters pre-summer phase
As the pre-summer market begins, standing out from the crowd is crucial for buyers.
Eastside rental market could balance out with the region
Eastside rent medians increased by 2.8 in the past year, a decrease in growth from previous years.
Boeing probe reaches Kirkland local after deadly crashes
The criminal investigation into Boeing's 737 MAX certification seeks information from a local expert.
Shake Shack to open in Kirkland
The East Coast burger chain will open in Kirkland Urban, the nearly completed mixed-use development.
123,000-plus square feet of retail tenants committed to Kirkland Urban
The 12-acre development is off to a successful start.
Greater Kirkland Chamber of Commerce celebrates centennial
The 100-year celebration will take place during the chamber's annual gala.
© 2019, Kirkland Reporter and Sound Publishing, Inc.


text:
Mark Stephen Meadows
Mark Stephen Meadows (aka Pighed) is an artist and writer with over 15 years experience in interactive media. Founder of HeadCase Humanufacturing he has also spent time at Xerox-PARC, Stanford Research Institute, Construct, and The Waag. The author of Pause & Effect, The Art of Interactive Narrative, he helped build the third commercial web server (1992), the first open-protocol 3D multi-user environment (1997), and has won awards such as the Ars Electronica Golden Nica and the Cooper-Hewitt National Design Museum's highest honors. Currently writing a book on avatars titled "I, Avatar" he is based in Los Angeles where he lives on his boat, paints, writes, and occasionally plays accordion.
I, Avatar: The Culture and Consequences of Having a Second Life
By Mark Stephen Meadows
The Three White Girls from YouTube: A Modern Day Fable
Pause & Effect: The Art of Interactive Narrative


text:
package generator

import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"path"
	"path/filepath"
	"regexp"
	goruntime "runtime"
	"sort"
	"strings"

	"github.com/go-openapi/swag"
	"golang.org/x/tools/imports"
)

var (
	// DefaultLanguageFunc defines the default generation language
	DefaultLanguageFunc func() *LanguageOpts

	moduleRe *regexp.Regexp
)

func initLanguage() {
	DefaultLanguageFunc = GoLangOpts

	moduleRe = regexp.MustCompile(`module[ \t]+([^\s]+)`)
}

// LanguageOpts to describe a language to the code generator
type LanguageOpts struct {
	ReservedWords        []string
	BaseImportFunc       func(string) string               `json:"-"`
	ImportsFunc          func(map[string]string) string    `json:"-"`
	ArrayInitializerFunc func(interface{}) (string, error) `json:"-"`
	reservedWordsSet     map[string]struct{}
	initialized          bool
	formatFunc           func(string, []byte) ([]byte, error)
	fileNameFunc         func(string) string // language specific source file naming rules
	dirNameFunc          func(string) string // language specific directory naming rules
}

// Init the language option
func (l *LanguageOpts) Init() {
	if l.initialized {
		return
	}
	l.initialized = true
	l.reservedWordsSet = make(map[string]struct{})
	for _, rw := range l.ReservedWords {
		l.reservedWordsSet[rw] = struct{}{}
	}
}

// MangleName makes sure a reserved word gets a safe name
func (l *LanguageOpts) MangleName(name, suffix string) string {
	if _, ok := l.reservedWordsSet[swag.ToFileName(name)]; !ok {
		return name
	}
	return strings.Join([]string{name, suffix}, "_")
}

// MangleVarName makes sure a reserved word gets a safe name
func (l *LanguageOpts) MangleVarName(name string) string {
	nm := swag.ToVarName(name)
	if _, ok := l.reservedWordsSet[nm]; !ok {
		return nm
	}
	return nm + "Var"
}

// MangleFileName makes sure a file name gets a safe name
func (l *LanguageOpts) MangleFileName(name string) string {
	if l.fileNameFunc != nil {
		return l.fileNameFunc(name)
	}
	return swag.ToFileName(name)
}

// ManglePackageName makes sure a package gets a safe name.
// In case of a file system path (e.g. name contains "/" or "\" on Windows), this return only the last element.
func (l *LanguageOpts) ManglePackageName(name, suffix string) string {
	if name == "" {
		return suffix
	}
	if l.dirNameFunc != nil {
		name = l.dirNameFunc(name)
	}
	pth := filepath.ToSlash(filepath.Clean(name)) // preserve path
	pkg := importAlias(pth)                       // drop path
	return l.MangleName(swag.ToFileName(prefixForName(pkg)+pkg), suffix)
}

// ManglePackagePath makes sure a full package path gets a safe name.
// Only the last part of the path is altered.
func (l *LanguageOpts) ManglePackagePath(name string, suffix string) string {
	if name == "" {
		return suffix
	}
	target := filepath.ToSlash(filepath.Clean(name)) // preserve path
	parts := strings.Split(target, "/")
	parts[len(parts)-1] = l.ManglePackageName(parts[len(parts)-1], suffix)
	return strings.Join(parts, "/")
}

// FormatContent formats a file with a language specific formatter
func (l *LanguageOpts) FormatContent(name string, content []byte) ([]byte, error) {
	if l.formatFunc != nil {
		return l.formatFunc(name, content)
	}
	return content, nil
}

// imports generate the code to import some external packages, possibly aliased
func (l *LanguageOpts) imports(imports map[string]string) string {
	if l.ImportsFunc != nil {
		return l.ImportsFunc(imports)
	}
	return ""
}

// arrayInitializer builds a litteral array
func (l *LanguageOpts) arrayInitializer(data interface{}) (string, error) {
	if l.ArrayInitializerFunc != nil {
		return l.ArrayInitializerFunc(data)
	}
	return "", nil
}

// baseImport figures out the base path to generate import statements
func (l *LanguageOpts) baseImport(tgt string) string {
	if l.BaseImportFunc != nil {
		return l.BaseImportFunc(tgt)
	}
	debugLog("base import func is nil")
	return ""
}

// GoLangOpts for rendering items as golang code
func GoLangOpts() *LanguageOpts {
	var goOtherReservedSuffixes = map[string]bool{
		// see:
		// https://golang.org/src/go/build/syslist.go
		// https://golang.org/doc/install/source#environment

		// goos
		"aix":       true,
		"android":   true,
		"darwin":    true,
		"dragonfly": true,
		"freebsd":   true,
		"hurd":      true,
		"illumos":   true,
		"js":        true,
		"linux":     true,
		"nacl":      true,
		"netbsd":    true,
		"openbsd":   true,
		"plan9":     true,
		"solaris":   true,
		"windows":   true,
		"zos":       true,

		// arch
		"386":         true,
		"amd64":       true,
		"amd64p32":    true,
		"arm":         true,
		"armbe":       true,
		"arm64":       true,
		"arm64be":     true,
		"mips":        true,
		"mipsle":      true,
		"mips64":      true,
		"mips64le":    true,
		"mips64p32":   true,
		"mips64p32le": true,
		"ppc":         true,
		"ppc64":       true,
		"ppc64le":     true,
		"riscv":       true,
		"riscv64":     true,
		"s390":        true,
		"s390x":       true,
		"sparc":       true,
		"sparc64":     true,
		"wasm":        true,

		// other reserved suffixes
		"test": true,
	}

	opts := new(LanguageOpts)
	opts.ReservedWords = []string{
		"break", "default", "func", "interface", "select",
		"case", "defer", "go", "map", "struct",
		"chan", "else", "goto", "package", "switch",
		"const", "fallthrough", "if", "range", "type",
		"continue", "for", "import", "return", "var",
	}

	opts.formatFunc = func(ffn string, content []byte) ([]byte, error) {
		opts := new(imports.Options)
		opts.TabIndent = true
		opts.TabWidth = 2
		opts.Fragment = true
		opts.Comments = true
		return imports.Process(ffn, content, opts)
	}

	opts.fileNameFunc = func(name string) string {
		// whenever a generated file name ends with a suffix
		// that is meaningful to go build, adds a "swagger"
		// suffix
		parts := strings.Split(swag.ToFileName(name), "_")
		if goOtherReservedSuffixes[parts[len(parts)-1]] {
			// file name ending with a reserved arch or os name
			// are appended an innocuous suffix "swagger"
			parts = append(parts, "swagger")
		}
		return strings.Join(parts, "_")
	}

	opts.dirNameFunc = func(name string) string {
		// whenever a generated directory name is a special
		// golang directory, append an innocuous suffix
		switch name {
		case "vendor", "internal":
			return strings.Join([]string{name, "swagger"}, "_")
		}
		return name
	}

	opts.ImportsFunc = func(imports map[string]string) string {
		if len(imports) == 0 {
			return ""
		}
		result := make([]string, 0, len(imports))
		for k, v := range imports {
			_, name := path.Split(v)
			if name != k {
				result = append(result, fmt.Sprintf("\t%s %q", k, v))
			} else {
				result = append(result, fmt.Sprintf("\t%q", v))
			}
		}
		sort.Strings(result)
		return strings.Join(result, "\n")
	}

	opts.ArrayInitializerFunc = func(data interface{}) (string, error) {
		// ArrayInitializer constructs a Go literal initializer from interface{} literals.
		// e.g. []interface{}{"a", "b"} is transformed in {"a","b",}
		// e.g. map[string]interface{}{ "a": "x", "b": "y"} is transformed in {"a":"x","b":"y",}.
		//
		// NOTE: this is currently used to construct simple slice intializers for default values.
		// This allows for nicer slice initializers for slices of primitive types and avoid systematic use for json.Unmarshal().
		b, err := json.Marshal(data)
		if err != nil {
			return "", err
		}
		return strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(string(b), "}", ",}"), "[", "{"), "]", ",}"), "{,}", "{}"), nil
	}

	opts.BaseImportFunc = func(tgt string) string {
		tgt = filepath.Clean(tgt)
		// On Windows, filepath.Abs("") behaves differently than on Unix.
		// Windows: yields an error, since Abs() does not know the volume.
		// UNIX: returns current working directory
		if tgt == "" {
			tgt = "."
		}
		tgtAbsPath, err := filepath.Abs(tgt)
		if err != nil {
			log.Fatalf("could not evaluate base import path with target \"%s\": %v", tgt, err)
		}

		var tgtAbsPathExtended string
		tgtAbsPathExtended, err = filepath.EvalSymlinks(tgtAbsPath)
		if err != nil {
			log.Fatalf("could not evaluate base import path with target \"%s\" (with symlink resolution): %v", tgtAbsPath, err)
		}

		gopath := os.Getenv("GOPATH")
		if gopath == "" {
			gopath = filepath.Join(os.Getenv("HOME"), "go")
		}

		var pth string
		for _, gp := range filepath.SplitList(gopath) {
			// EvalSymLinks also calls the Clean
			gopathExtended, er := filepath.EvalSymlinks(gp)
			if er != nil {
				log.Fatalln(er)
			}
			gopathExtended = filepath.Join(gopathExtended, "src")
			gp = filepath.Join(gp, "src")

			// At this stage we have expanded and unexpanded target path. GOPATH is fully expanded.
			// Expanded means symlink free.
			// We compare both types of targetpath<s> with gopath.
			// If any one of them coincides with gopath , it is imperative that
			// target path lies inside gopath. How?
			// 		- Case 1: Irrespective of symlinks paths coincide. Both non-expanded paths.
			// 		- Case 2: Symlink in target path points to location inside GOPATH. (Expanded Target Path)
			//    - Case 3: Symlink in target path points to directory outside GOPATH (Unexpanded target path)

			// Case 1: - Do nothing case. If non-expanded paths match just generate base import path as if
			//				   there are no symlinks.

			// Case 2: - Symlink in target path points to location inside GOPATH. (Expanded Target Path)
			//					 First if will fail. Second if will succeed.

			// Case 3: - Symlink in target path points to directory outside GOPATH (Unexpanded target path)
			// 					 First if will succeed and break.

			// compares non expanded path for both
			if ok, relativepath := checkPrefixAndFetchRelativePath(tgtAbsPath, gp); ok {
				pth = relativepath
				break
			}

			// Compares non-expanded target path
			if ok, relativepath := checkPrefixAndFetchRelativePath(tgtAbsPath, gopathExtended); ok {
				pth = relativepath
				break
			}

			// Compares expanded target path.
			if ok, relativepath := checkPrefixAndFetchRelativePath(tgtAbsPathExtended, gopathExtended); ok {
				pth = relativepath
				break
			}

		}

		mod, goModuleAbsPath, err := tryResolveModule(tgtAbsPath)
		switch {
		case err != nil:
			log.Fatalf("Failed to resolve module using go.mod file: %s", err)
		case mod != "":
			relTgt := relPathToRelGoPath(goModuleAbsPath, tgtAbsPath)
			if !strings.HasSuffix(mod, relTgt) {
				return filepath.ToSlash(mod + relTgt)
			}
			return filepath.ToSlash(mod)
		}

		if pth == "" {
			log.Fatalln("target must reside inside a location in the $GOPATH/src or be a module")
		}
		return filepath.ToSlash(pth)
	}
	opts.Init()
	return opts
}

// resolveGoModFile walks up the directory tree starting from 'dir' until it
// finds a go.mod file. If go.mod is found it will return the related file
// object. If no go.mod file is found it will return an error.
func resolveGoModFile(dir string) (*os.File, string, error) {
	goModPath := filepath.Join(dir, "go.mod")
	f, err := os.Open(goModPath)
	if err != nil {
		if os.IsNotExist(err) && dir != filepath.Dir(dir) {
			return resolveGoModFile(filepath.Dir(dir))
		}
		return nil, "", err
	}
	return f, dir, nil
}

// relPathToRelGoPath takes a relative os path and returns the relative go
// package path. For unix nothing will change but for windows \ will be
// converted to /.
func relPathToRelGoPath(modAbsPath, absPath string) string {
	if absPath == "." {
		return ""
	}

	path := strings.TrimPrefix(absPath, modAbsPath)
	pathItems := strings.Split(path, string(filepath.Separator))
	return strings.Join(pathItems, "/")
}

func tryResolveModule(baseTargetPath string) (string, string, error) {
	f, goModAbsPath, err := resolveGoModFile(baseTargetPath)
	switch {
	case os.IsNotExist(err):
		return "", "", nil
	case err != nil:
		return "", "", err
	}

	src, err := ioutil.ReadAll(f)
	if err != nil {
		return "", "", err
	}

	match := moduleRe.FindSubmatch(src)
	if len(match) != 2 {
		return "", "", nil
	}

	return string(match[1]), goModAbsPath, nil
}

// 1. Checks if the child path and parent path coincide.
// 2. If they do return child path  relative to parent path.
// 3. Everything else return false
func checkPrefixAndFetchRelativePath(childpath string, parentpath string) (bool, string) {
	// Windows (local) file systems - NTFS, as well as FAT and variants
	// are case insensitive.
	cp, pp := childpath, parentpath
	if goruntime.GOOS == "windows" {
		cp = strings.ToLower(cp)
		pp = strings.ToLower(pp)
	}

	if strings.HasPrefix(cp, pp) {
		pth, err := filepath.Rel(parentpath, childpath)
		if err != nil {
			log.Fatalln(err)
		}
		return true, pth
	}

	return false, ""

}


text:
South Korean Tuna Company Charged with Defrauding US Government
Economics Sustainability Environment
by Lucy Towers
US and SOUTH KOREA - A whistleblower has charged Dongwon Industries, owner of StarKist Tuna and South Korea's largest fishing company, with defrauding the US Government and violating the False Claims Act.
Dongwon is accused of making false and fraudulent statements in order to obtain US vessel documentation and tuna fishing licenses for two Korean owned and operated vessels in the South Pacific.
"The accusations against StarKist's owner Dongwon Industries suggest a company in dire need of reforming its business practices," said Casson Trenor, Greenpeace Oceans Campaigner.
"Evidence has already linked Dongwon to environmental scandals and illegal fishing practices. American consumers deserve better when they buy canned tuna - and so do our oceans."
The legal complaint states that a former Dongwon executive used his daughters' acquired US citizenships to establish "paper companies" - companies with no operations that exist exclusively for a financial reason - in the state of Delaware under their names. Yet at all times, the "paper companies" were allegedly controlled by Dongwon Industries.
The whistleblower claims that the aim was to obtain US vessel documentation for Korean-owned tuna purse seine ships, which then allowed Dongwon to obtain fishing licenses reserved only to US registered vessels under the South Pacific Tuna Treaty. US taxpayers pay $18 million per year for these licences, which are meant to ensure the US fishing industry gets its share of the catch. Dongwon is even alleged to have created the American-sounding pseudonym "William Phil," a fictitious person that purported to be a manager when corresponding with US government officials.
Furthermore, the lawsuit also cited Dongwon's failure to report oil discharge and dumping at sea with the intent to avoid or decrease civil penalties for such illegal acts – a possible violation of the Act to Prevent Pollution from Ships. If found guilty, Dongwon could face incidental, civil, and treble (triple) damages for each violation.
"This case again reaffirms Greenpeace's call on the Korean government to urgently reform its fisheries regulations to combat overfishing," said Jie-Hyun Park Greenpeace East Asia Oceans Campaigner.
In early 2013, Korea was identified by the US as an illegal, unreported and unregulated (IUU) fishing nation due to its failure to regulate the continuous IUU fishing of Korean vessels. If Korea fails to address the illegal practices of its distant water fishing industry by the end of 2014, sanctions under this listing may include a ban on the imports of certain fish or fish products into the US. The EU followed suit with the pre-identification of Korea into its list of fishing law violators.
Dongwon commands the Korean canned tuna market with a 70 per cent market share. In 2008, it entered the the US canned tuna market with the acquisition of StarKist. When combined, the two entities form the world's largest canned tuna conglomerate with yearly revenue of 1.5 trillion KRW (approximately $1.4 billion).
Lucy Towers
More articles on marine fish
Women in aquaculture: Lara Barazi
Lara Barazi has been CEO of Kefalonia for 22 years, in the process growing production volumes of certified organic seaba…
The mutant plankton that could improve juvenile farmed finfish survival
The survival rate of juvenile marine finfish in aquaculture hatcheries could be on the cusp of improvement following a n…
How to improve fish welfare in the Philippines?
The time is ripe for initiatives that aim to improve the welfare of the 2 billion* farmed fish that are harvested in the…
Why Europe should be taking seaweed aquaculture seriously
How and why seaweed aquaculture should be promoted in Europe is the subject of a new recommendation from the EU's Aquaculture Advisory Council.
Initiative launched to develop Lake Victoria's aquaculture sector
In a move to guide the development of sustainable aquaculture in East Africa, WorldFish has strengthened its research partnership with the Lake Victoria Fishing Organization (LVFO).
Mangrove aquaculture to be supported by state-of-the-art environmental monitoring
A new environmental monitoring initiative that aims to support shrimp and crab aquaculture in mangrove forests has officially been launched in Vietnam's Mekong Delta province.
How a shrimp farming "mafia" is displacing Indian fishing communities
The increase in shrimp farming around Chilika Lake in India's Odisha state has not only been destroying the area's ecology but also affecting the livelihoods of several thousand fishermen.