Liverpool will not sell Raheem Sterling, even if he does not sign a new deal in the summer. The England international, whose contract expires at the end of next season, has so far stalled on a new big-money deal, leading to speculation that the Reds may cash in this summer rather than lose him for nothing. But manager Brendan Rodgers insists that is not the case, adding that Anfield is the best place for Sterling to continue his development. "Raheem won't be going anywhere this summer, even if there's not a deal agreed," Rodgers said. "We've made that clear from the beginning. I think Raheem looks a lot more relaxed now than he has done for a while. We had a couple of good meetings. He came to the house and had a good chat on a personal level as well. It's not just about the football side, it's also about his welfare because he's still young and he's been through a lot in the last couple of years so I talked to him generally and I think he's in a good place at the moment. "The club will meet up again with Raheem's representatives and we'll reinforce [the message]. Look, everyone wants to win trophies, everyone wants to play in the big competitions, but it's also important that you have the opportunity to do that so we'll just be reinforcing our stance that's been in place all the way along — that this is the best club for him at this moment."
Bayern Munich star Arjen Robben has been ruled out for the rest of the season with a calf injury. The Dutch winger had missed Bayern's last four League matches, yet was a second-half substitute in Tuesday night's German Cup semi-final clash against Borussia Dortmund. Yet the 31-year-old had to be taken off the field just 16 minutes after coming on as the Bundesliga leaders lost the tie, with the club confirming the full extent of Robben's injury woes. "Arjen Robben has a tear in his left calf muscle. His season is over," the club tweeted from their official account. The club's misery was further compounded as Polish striker Robert Lewandowski was rushed to hospital after the match following an extra-time collision with Dortmund goalkeeper Mitchell Langerak. "Robert Lewandowski has broken his upper jaw and his nose. He also has a concussion. It doesn't get much worse than that," a club statement read. It remains to be seen how long the 26-year-old will be out for, with the club sweating over his fitness ahead of the first-leg Champions League semi-final against Barcelona. Robben and Lewandowski are Bayern's top two scorers in the League this season with 17 and 16 goals respectively.
Arsenal manager Arsene Wenger feels opposition coach Jose Mourinho needs to learn more respect. The duo have always enjoyed a feisty relationship, with the Chelsea boss most recently fuelling the fire by mocking his opponents for the Champions League exit to Monaco before taunting the Gunners on their lack of League honours in recent years. And although Wenger did not directly respond to Mourinho's taunts, he clearly aimed his answer towards the Portuguese coach when asked about the recent comments made by the Blues boss. "The biggest thing of managers is to respect each other and some people have to improve on that," Wenger said. "Everybody lives with his own internal problems and I live with mine and that is enough."
Brazilian midfielder Ricardo Kaka is hoping to earn a spot in his national team for the upcoming Copa America competition. The midfield maestro, who now turns out for MLS club Orlando City, missed out on selection for the Selecao squad for last year's World Cup, yet was called up by new coach Dunga for two friendlies against Argentina and Japan in October last year. Dunga is unbeaten as coach in his second stint in charge since Brazil's exit from the World Cup on home soil, and Kaka hopes the national boss will look favourably upon him when selecting his squad for June's continental showpiece. "If Dunga thinks I can fit in this team, I'll be ready," the former AC Milan and Real Madrid star said. "I think I can still play for Brazil and help with my skills and experience, but it does not depend on me." The 2007 World player of Year, who has scored four goals in 13 appearances for his new American club, has praised Dunga for his approach following Brazil's 7-1 humiliation against Germany in the World Cup semi-final last year. "We lost our confidence in the last World Cup but Dunga is doing a very good job now," Kaka said. The 33-year-old, who has 29 goals in 88 games for the Selecao, will be hoping to join his national team mates, who are gunning for glory in this year's Copa America, set to begin on 5 June in Chile. The five-time World Cup winners have been drawn alongside Venezuela, Peru and Colombia in Group C.
Liverpool coach Brendan Rodgers feels under-fire striker Mario Balotelli is "doing his best", yet admits that the Reds attack in general needs to improve. The Italian striker was given his tenth start of the season against Hull last Tuesday night, yet failed to make the desired impact, having just 22 touches the whole game as he was brought off early in the second half as the Reds suffered a 1-0 defeat. The former AC Milan frontman has scored just four goals in 28 appearances since his arrival from Italy, and although being brought off for what looked like a foot injury, Rodgers feels the forward has been doing his best at the club. "Mario's doing his best. He's obviously come off [in the second half] with a foot injury," the Liverpool boss told reporters, before calming talk of an early exit from the striker who only joined this season. He's still got a few years left on his contract. Every single player, every single day you come in at Liverpool, you're working for your future." An injury-plagued season for star frontman Daniel Sturridge has left Liverpool's strikeforce lacking much-needed sharpness in attack, with youngster Raheem Sterling the club's current top-scorer with just seven goals, and Rodgers admits this is an area of concern. "I think it's clear over the course of the season, not just this game, that [attack] is an area we've struggled in," he said.
The wife of former Manchester United and England captain Rio Ferdinand has died from cancer. The QPR defender, 36, released a statement saying his "wonderful wife and soul mate" Rebecca Ellison had "passed away peacefully" at a London hospital. Ms Ellison, 34, who married Ferdinand in 2009, had breast cancer. She leaves behind three children, Lorenz, nine, Tate, six, and four-year-old Tia.
Reports emanating from Spain suggest that Spanish giants Real Madrid and Atletico Madrid could face a similar transfer ban imposed on Barcelona for the improper signing of youth players. According to two separate Spanish radio stations Cadena SER and Cadena COPE, Fifa is set to ban the two capital clubs from all transfer activity for the next two windows over 'irregularities in the signing of minors'. Fifa rules state that the transfer of players under the age of 18 can only occur if the following criteria are met: "Under-18s can move to a club in a different country if their parents move there for non-footballing reasons, if they are from another nation within the European Union or European Economic Area and aged between 16 and 18, or if they live within 100km of the club." Reports suggest that the Madrid clubs were notified of the investigation towards the end of Barcelona's appeal for the very same crime, which is why Los Blancos spent €51 million in the last four months on players including Martin Odegaard, Danilo, Lucas Silva and Asensio as they prepared for a possible upcoming ban. Another report reveals that Spanish Football Federation's president Angel María Villar attempted to plead with Sepp Blatter to drop the ban, yet the president refused. Should Atletico and Real receive a ban, they will likely appeal the punishment which could see the ban suspended, allowing the clubs to partake in transfer activity just as rivals Barcelona did when under investigation, bringing in the likes of Luis Suarez, Thomas Vermaelen, Ivan Rakitic and Claudio Bravo. Barcelona are banned for the next transfer window as they serve out punishment for the same offence, and will only be allowed to bring in new players again in January 2016. The ban could affect on-form striker Javier Hernandez's possible permanent move to the Bernabeu, after Louis van Gaal has revealed he does not wish to bring back the forward to Old Trafford.
AC Milan midfielder Nigel De Jong has hit back at media speculation labelling him as the instigator in an argument with coach Filippo Inzaghi. The Rossoneri suffered their ninth loss of the season in a disappointing 2-1 loss to Udinese on Saturday, with coach Inzaghi allegedly blasting his players in the bus after the match. It is reported that Inzaghi told his players that they were "unworthy of this shirt" before one of the senior players replied, "We may be unworthy, but you're not up to coach Milan." Leading Italian publications La Repubblica and Corriere dello Sport report that it was Nigel De Jong who had made the hostile remarks towards the coach, yet the Dutchman has refuted such claims, hitting back via social media. "Press is the press for a reason," he tweeted from his personal account. "Always looking for a hype. Don't assume the first thing you are reading is the truth. You can have an argument as adults, but always with respect." The Dutch midfielder, who has been a standout performer in a season to forget for the Italian club, then defended the Milan coach, before urging his side to focus on matters on the pitch. "If there is one who knows the value of this shirt it is our coach," he continued. "As that being said, let's move on to what's important. Leaving this issue for what it is and do the talking on the pitch together." The seven-time European champions have endured a dismal season, and currently lie tenth in the Serie A standings, 30 points behind leaders Juventus.
Chelsea captain John Terry said he has proved Rafael Benitez wrong by continuing to be a key player for the newly crowned Premier League champions. Terry, 34, has played every minute of his side's triumphant campaign, having been told by Benitez he could not be guaranteed game-time at Stamford Bridge two seasons ago. Terry told Sky Sports: "One person said I couldn't play twice in a week. He knows who he is. I have proved him wrong as I'm still fighting, still in the side and feeling great."
Egyptian giants Al Ahly have fired their Spanish coach Juan Carlos Garrido after the Cairo club were knocked out of the African Champions League at the weekend. Al Ahly, who have won the continent's top club competition a record eight times, failed for a second successive year to get to the group phase and instead drop down to the African Confederation Cup after their post-match penalty shootout loss to Moghreb Tetouan in Cairo on Saturday. They are one of the teams that Orlando Pirates could be pitted against in Sunday's play-off round draw in the Confederation Cup. "The Director of Football verbally informed me that I will not be continuing as the Coach. I am very disappointed to not be able to conclude this project and to deliver this bad news to you," wrote the 46-year-old coach on his website (juancarlosgarrido.com). "I will update you once the terms of the conclusion of my contractual relationship have been agreed and I am no longer officially the coach." Garrido signed a two-year deal in July last year and won the Confederation Cup with the club in November. But they trail arch rivals Zamalek in the league by 11 points. Garrido was coach of Spain's Villarreal when they participated in the Champions League in Europe in the 2011-12 season. He has also coached at Club Brugge in Belgium and Real Betis in his homeland.


The 12th Tehran International Tourism Exhibition (TITE) which opened on Tuesday aims to introduce less known tourist attractions in Iran.
Organized by Iran's Cultural Heritage, Handicrafts and Tourism Organization (ICHHTO), the four-day event is hosting 660 domestic and 57 companies from 12 countries.
Deputy Director of ICHHITO in Ilam Province Judi Kalantari told Iran Daily that Ilam is a virgin tourist attraction which has high potentials in terms of eco-tourism and mineral water fountains.
The western province enjoys several mineral fountains which have been registered on the National Heritage List.
In view of its location in the Zagros mountain range, Ilam has picturesque views, natural lakes and spectacular mountains, she said.
Touching upon the number of tourists visiting the province, she said that it hosted two million pilgrimage tourists since it was en route to holy sites in Iraq.
"In the last Iranian calendar year (ended on March 20, 2018), it hosted more than three million people of whom 500,000 were lodged in residential locations," she added.
The director of ICHHTO for tourism development in Chaharmahal-Bakhtiari Province Mohammadreza Abbasi said that the province boasts rivers, valleys, waterfalls and scenic views which led the provincial officials to provide tourism facilities such as rafting, bungee jumping and zip-line.
Speaking about protected areas in the province, Abbasi said that Tang-e-Sayad and Sabz-Kooh protected areas include oak forests and rivers for whitewater rafting.
Fritillaria plain, Zard kooh, Sheikh Alikhan waterfall in Koohrang are among the particular tourist attractions in the province, he added.
Monuments including Zamankhan Bridge in Saman Village and Duplan Bridge have the ability also attract several tourists, he said.
Some of the roads in the province are more than 300 years old. The most important road which was considered as the main route for nomads' immigration is Dez-Part which connects the central plateau of Iran to Iran's ancient capital of Pars.
South Khorasan tourism official Ali Kazemi said that the province is located along a road called 'Asian Road' connecting the holy city of Mashhad to the northern province of Mazandaran and can draw so many tourists.
Each year 15 million people visit Khorasan Province or will traverse through it to reach other destinations, he said.
Turning to the various ethnicities living in Khorasan, he said that Fars, Kurd, Torkaman, Baluch and Arab are among the ethnic groups in the province and due to this it enjoys a diversity in music, handicrafts and local cuisines.
More than 45 types of handicrafts are being made in the province which are mainly based on loom, he said, pointing to Kurdish tablecloth, Gilim, Jajim, cushion and Torkaman rugs.


Anooptech offers best SAP HANA Administration course in Marathahalli, Bangalore with most experienced professionals. Our Instructors are working in SAP HANA and related technologies for more years in MNC's.
All the SAP HANA Admin Operations like Details, Configuration & Transaction will be trained by our Expert Trainer/Consultant.
Objective of our SAP Training Institute in Bangalore is at the end of this course is to enable students understanding and applying the peculiar configuration tasks required to operate & administer the SAP HANA database.


text:
Republicans win U.S. House majority, setting stage for divided government
The party's current House leader, Kevin McCarthy, may have a challenging road ahead as he will need his restive caucus to hold together on critical votes, including funding the government and military at a time when former President Donald Trump has launched another run for the White House. "Americans are ready for a new direction, and House Republicans are ready to deliver," McCarthy said on Twitter.
Republicans were projected to win a majority in the U.S. House of Representatives on Wednesday, setting the stage for two years of divided government as President Joe Biden's Democratic Party held control of the Senate. The victory gives Republicans the power to rein in Biden's agenda, as well as to launch potentially politically damaging probes of his administration and family, though it falls far short of the "red wave" the party had hoped for.
The final call came after more than a week of ballot counting, when Edison Research projected Republicans had won the 218 seats they needed to control the House. Republican victory in California's 27th Congressional district took the party over the line. The party's current House leader, Kevin McCarthy, may have a challenging road ahead as he will need his restive caucus to hold together on critical votes, including funding the government and military at a time when former President Donald Trump has launched another run for the White House.
"Americans are ready for a new direction, and House Republicans are ready to deliver," McCarthy said on Twitter. The loss takes away some of Biden's power in Washington but on Wednesday he congratulated McCarthy and said he would work across the aisle to deliver results.
"The American people want us to get things done for them," Biden said in a statement. House Speaker Nancy Pelosi said in a statement House Democrats "will continue to play a leading role in supporting President Biden's agenda - with strong leverage over a scant Republican majority."
Democrats have been buoyed by voters' repudiation of a string of far-right Republican candidates, most of them allies of Trump, including Mehmet Oz and Doug Mastriano in Pennsylvania's Senate and governor's races respectively, and Blake Masters in Arizona's Senate contest. Even though the expected "red wave" of House Republicans never reached shore, conservatives are sticking to their agenda.
In retaliation for two impeachment efforts by Democrats against Trump, they are gearing up to investigate Biden administration officials and the president's son Hunter's past business dealings with China and other countries - and even Biden himself. On the international front, Republicans could seek to tamp down U.S. military and economic aid to Ukraine as it battles Russian forces.
THE TUG OF INFLATION AND ABORTION The United States returns to its pre-2021 power-sharing in Washington, with voters tugged in opposite directions by two main issues during the midterm election campaigns.
High inflation gave Republicans ammunition for attacking liberals, who won trillions of dollars in new spending during the COVID-19 pandemic. With voters seeing their monthly grocery, gasoline and rent bills rising, so rose the desire for punishing Democrats in the White House and Congress. At the same time, there was a tug to the left after the Supreme Court's June ruling ending the right to abortion enraged a wide swath of voters, bolstering Democratic candidates.
Edison Research, in exit polls, found that nearly one-third of voters said inflation topped their concerns. For one-quarter of voters, abortion was the primary concern and 61% opposed the high-court decision in Roe v. Wade. In the Los Angeles mayoral contest, Edison projected that Democrat Karen Bass, a top progressive in Congress, had defeated Rick Caruso, a billionaire former Republican who ran on a platform of reducing crime and homelessness in the city. She stood at 53% of the vote so far.
EYES ON THE PRESIDENTIAL RACE While the midterms were all about elections for the U.S. Congress, state governors, and other local offices, hovering over it all was the 2024 U.S. presidential race.
Trump, who still polls as the top choice among Republicans for the party's presidential nomination, nevertheless suffered a series of setbacks as far-right candidates he either recruited or became allied with performed poorly on Nov. 8. Some conservative Republican voters voiced fatigue with Trump. At the same time, Ron DeSantis coasted to a second term as governor of Florida, defeating Democratic opponent Charlie Crist by nearly 20 percentage points. Trump reportedly was seething over the high marks political pundits were doling out to DeSantis, seen as a potential challenger to Trump in the 2024 field of Republican presidential candidates.
The 2024 election will immediately influence many of the legislative decisions House Republicans pursue as they flex their muscles with a new-found majority, however narrow. They have publicly talked about seeking cost savings in the Social Security and Medicare safety-net programs and making permanent 2017-enacted tax cuts that are due to expire.
Conservatives are threatening to hold back on a needed debt-limit increase next year unless significant spending reductions are achieved. "It's critical that we're prepared to use the leverage we have," far-right House Freedom Caucus Chairman Scott Perry told Reuters last month.
First, the House must elect a speaker for the next two years. McCarthy on Tuesday won the support of a majority of his caucus to run for the powerful position to succeed Pelosi. With such a narrow majority, McCarthy was working to get commitments from nearly every member of his unruly Republican members, having failed in just such an endeavor during a 2015 bid. Freedom Caucus members, about four dozen in all, could hold the keys to his winning the speakership and the viability of his speakership writ large.
Freedom Caucus
U.S. House
California is deluged by record rain with more storms coming
Storm-weary Californians clean up, brace for another torrent
EXPLAINER-Why weeks of rain in California will not end historic drought
US Domestic News Roundup: At trial, U.S. prosecutors to accuse Proud Boys of sedition in Jan. 6 Capitol assault; California is deluged by record rain with more storms coming and more
California picks up debris from latest storm, braces for the next
Called off walk today because police arrangements completely collapsed: Rahul in J-K
New blood test can detect Alzheimer's 3.5 years before diagnosis
Never take shortcut, cheating won't help in long run: PM Modi to students

redpajama_set_name: RedPajamaCommonCrawl


Holiday let House to rent in Magganies, Soros, Antiparos, Greece. A complex of 5 traditional houses, close to the sea. Located in a very quiet area. Each house can accommodate 4 people.. A complex of 5 traditional houses, close to the sea.
Located in a very quiet area. Each house can accommodate 4 people.
A complex of 5 houses of 54m2, 69m2 and 74m2 next to the sea. They have 2 bedrooms with air-con, one bedroom has a double bed and the other one has two single beds. There is a bathroom with shower, a fully equipped kitchen with with modern appliances and an oven. The houses also have a living room with a TV .
Outside of each house there is a large, furnished veranda overlooking the Aegean sea.
The complex located in a very quiet area in front of a beach which has very few visitors.
Twice weekly cleaning and linen change.
The island's seashore is 57 kilometres long and the population is about 900, most of whom live in the capital and are employed in agriculture and fishing.
A complex of 5 traditional houses, close to the sea.


Manager for a fixed term contract linked to our new Enterprise Arts programme which is funded by the Skills and Opportunities Fund. This post is for a fixed term and will be paid at £30,000 pa pro rata (15 hours per week).
It is a management role and therefore reports directly to the Managing Director and Trustees. The post holder will work with the emerging disabled artists in the programme to develop their art into saleable product and secure routes to market for these products.
Interested candidates should contact info@artshape.co.uk to request an application pack.
Closing date for applications is 18th April 2018.


It seems every time we open the paper we are given another devastating blow that is downright depressing. This weeks news that Germany is scrapping their 2020 climate targets, and that turtles are being born mostly female due to increased temperatures as well as that Iran's protests are thought to be spurred by extreme droughts caused by climate change is not surprising. We have all heard the news about droughts, wars, illness, environmental destruction but what do we do as individuals. It is obvious we can't hide from climate change but what seems less obvious is how to address it on an individual basis and not get overwhelmed. Simply living by example and finding joy in that balance, attracts more people to live in the same way.


Advocating for veterans has always been a priority for President Emeritus James Wright '64a. Now, his new book, Enduring Vietnam: An American Generation and Its War, is opening up a dialogue about the Vietnam War and its impact on a generation of servicemen and women. A former Marine Corps lance-corporal, Wright has focused on research and supporting veterans in education since stepping down as president in 2009.
Enduring Vietnam puts a human face on the young Americans who fought in Vietnam and on the families who grieved those who did not return. The book describes the baby boomers' 1950s childhoods, reasons for going into the military, and what it was like to serve and eventually come home. Wright took on substantial interviews with those who served and as a result, Enduring Vietnam depicts the cruelty of the war and its quiet acts of courage in rich detail.
During his Dartmouth presidency from 1998 to 2009, Wright built upon the academic strength of the College by expanding the faculty, strengthening the College's finances, and renovating a number of facilities on campus. During this time, he also began a series of visits to U.S. military medical facilities, established an educational counseling program for wounded U.S. veterans, and worked with Senators Jim Webb, John Warner, and Chuck Hagel on language for a GI Bill that was passed by Congress and signed by President George W. Bush.
Enduring Vietnam will be released on April 4, and President Emeritus Wright will begin a book tour across the country, including a stop in Hanover. Read an excerpt of the book in the Dartmouth Alumni Magazine and then visit a book tour stop or signing in a city near you.
Wright will lead a Dartmouth Alumni Travel trip to Southeast Asia this fall, sharing his vast knowledge of Vietnam to help alumni better understand the country and its history as they visit sites like Ha Long Bay, Hanoi, and Ho Chi Minh City. To learn more, please visit Pearls of Southeast Asia: from Hong Kong to Saigon.
Burbank, CA—Thursday, April 6, 7 p.m.
San Francisco, CA—Tuesday, April 11, 6 p.m.
Palo Alto, CA—Wednesday, April 12, 7 p.m.
Boulder, CO—Tuesday, April 18, 6:30 p.m.
Denver, CO—Wednesday, April 19, 7 p.m.
Norwich, VT—Wednesday, April 26, 7 p.m.
Concord, NH—Thursday, May 4, 5:30 p.m.
Washington, DC—Monday, May 8, 7:00 p.m.
Washington, DC—Tuesday, May 9, 12:00 p.m.
New London, NH—Thursday, May 18, 4 p.m.
Philadelphia, PA—Tuesday, May 30, 5 p.m.
Cambridge, MA—Wednesday, May 31, 7 p.m.
New York, NY—Monday, June 5, 7 p.m.
Hanover, NH—Friday, June 9, 4 p.m.


text:
Q: Drop down menu with defaults using dash in python I am new to pycharm/dash. I have two files:
File 1: default temperature and climate for each city:

and File 2: The options available for temperature and climate:

Desired output: I want to create a drop down menu for temperature and climate, city is fixed. Note:The output should have two rows for city with 4 options in the drop down for climate and 5 options in the drop down for temperature.
I tried to combine the two tables and create drop down menus for temperature and climate but it does not work. However, if I try it with temperature and climate having the same length, it works. I'm not sure if I missed out something for different length columns, and also I still have yet to figure out how to set the default...
below is my code:
import dash
import dash_html_components as html
import dash_table
import pandas as pd
from collections import OrderedDict

app = dash.Dash(__name__)

df1 =  pd.read_excel('C:\\Users\\xxx\\Downloads\\test_climate.xlsx')
df2 =  pd.read_excel('C:\\Users\\xxx\\Downloads\\climate_options.xlsx')
df= df1.append(df2, sort = False)

app.layout = html.Div([
    dash_table.DataTable(
        id='table-dropdown',
        data=df.to_dict('records'),
        columns=[
            {'id': 'climate', 'name': 'climate', 'presentation': 'dropdown''},
            {'id': 'temperature', 'name': 'temperature', 'presentation': 'dropdown'},
            {'id': 'city', 'name': 'city'},
        ],

        editable=True,
        dropdown={
            'climate': {
                'options': [
                    {'label': i, 'value': i}
                    for i in df['climate'].unique()
                ]
            },
            'temperature': {
                 'options': [
                    {'label': i, 'value': i}
                    for i in df['temperature'].unique()
                ]
            }
        }
    ),
    html.Div(id='table-dropdown-container')
])

if __name__ == '__main__':
    app.run_server(debug=True)

Pls advise and Thanks in advance!
Regards,

redpajama_set_name: RedPajamaStackExchange


text:
The Entrepreneur Electrician
Pete has already achieved a lot. Leaving school at 18, he was inspired by a family friend to get into the electrical trade and started his training at North Sydney TAFE, joining the Somerville Group to allow him to complete his 4 year apprenticeship.
Pete says he enjoyed the challenges of his apprenticeship and values all the skills he learned. He especially liked the fact that he was earning money while he trained. The skills he picked up with the Somerville Group stood him in good stead when he took and passed a skills knowledge test over in the UK, where he moved a year or so after completing his apprenticeship. Pete stayed in England for three and a half years, using his electrical trade to earn him a very decent living.
Pete has since come back to Australia and has started his own business: Enviro Electrical, which is based in the Northern Beaches. At the moment, while he establishes himself, he is happily working 6 days a week, he says that's its important to take on as many contracts as he can, and there seems to be a big demand for his skills.
Pete hopes Enviro Electrical will be well known within a year, and he will start to develop and expand his business. With the explosion in homes and businesses switching over to a more sustainable and environmentally aware use of power he has no doubt there will be plenty of projects in the future.
Australian Apprenticeships Job Pathways Service
VJ Liam Mackenzie
Keeping Your Cool
Maxi magic
Incat
The Water Saviours
Singer/Songwriter Rebecca Henry sings the music industry's praises
Worldskills: The Manufacturing Team
The Truth about Electricians
Victoria University at WorldSkills Nationals – Brisbane 2010
CAD @ WorldSkills
Skills & Sustainability – Electrical Control
Kickstarting the Illawarra – Part One
The Capitol Theatre: Electrical


text:
package it.finsiel.siged.mvc.presentation.actionform.amministrazione;

import it.finsiel.siged.mvc.presentation.actionform.protocollo.AlberoUfficiUtentiForm;
import it.finsiel.siged.mvc.presentation.actionform.report.ReportCommonForm;
import it.finsiel.siged.util.DateUtil;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public final class RegistroModificheForm extends ReportCommonForm implements
        AlberoUfficiUtentiForm {
    public ActionErrors validate(ActionMapping mapping,
            HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();

        if ((getBtnStampa() != null) || (getBtnVisualizza() != null)) {
            if (getDataInizio() == null || "".equals(getDataInizio())) {
                errors.add("dataInizio", new ActionMessage(
                        "campo.obbligatorio", "data inizio", ""));
            } else if (!DateUtil.isData(getDataInizio())) {
                errors.add("dataInizio", new ActionMessage(
                        "formato.data.errato", "data inizio", ""));
            }
            if (getDataFine() == null || "".equals(getDataFine())) {
                errors.add("dataFine", new ActionMessage("campo.obbligatorio",
                        "data fine", ""));
            } else if (!DateUtil.isData(getDataFine())) {
                errors.add("dataFine", new ActionMessage("formato.data.errato",
                        "data fine", ""));
            } else if (getDataInizio() != null
                    && !"".equals(getDataInizio().trim())
                    && DateUtil.toDate(getDataFine()).before(
                            DateUtil.toDate(getDataInizio()))) {
                errors
                        .add("dataInizio", new ActionMessage(
                                "date_incongruenti"));
            }
            if (errors.size() > 0) {
                setBtnStampa(null);
                setBtnVisualizza(null);
            }
        }
        return errors;
    }

}

redpajama_set_name: RedPajamaGithub


text:
Q: rpois generates NA with large means (lambda) in R I am debugging a larger set of nested models that only run into problems during optimization. During the process of zeroing on what I believe is causing the errors I've come across unusual behavior in the rpois() function.
It seems that with very large mean values, rpois() returns NA instead of a value. This problem does not generate a warning. See below for a reproducible set of code.
> rpois(1,3000000000)
[1] NA

My question is two fold:
1 - why is it showing this behavior (is there a max limit on the size of an integer for the rpois function?) and
2 - is there a work around to prevent the generation of NA (even if that's to limit the size of the mean input to some smaller value)?
I am running 32x R version 3.0.2 in 64x Windows 7.

A: The problem is that rpois returns an integer, and it converts the value to NA if the value is greater than the maximum possible integer value (.Machine$integer.max).
rpois(1,.Machine$integer.max/1.00001)
## [1] 2147428954
rpois(1,.Machine$integer.max/1)
## [1] NA

The Normal approximation should be insanely precise in this case (it's generally extremely good if the mean is greater than 100!): if your mean is greater than (say) 0.999*.Machine$integer.max, you can use round(rnorm(1,mean=lambda,sd=sqrt(lambda)))


text:
bwin Grand Slam of Darts - Saturday Round-Up
GREAT rivals Phil Taylor and Michael van Gerwen will clash in the bwin Grand Slam of Darts semi-finals following their brilliant victories over Daryl Gurney and Rob Cross at the Wolves Civic on Saturday.
Six-time champion Taylor's bid to claim a seventh, and farewell, triumph in the Grand Slam of Darts continued with a 16-4 quarter-final romp against world number four Gurney.
The World Grand Prix champion was aiming to claim his first-ever victory over the 16-time World Champion, but saw Taylor finish 67 percent of his darts at a double and average 104 in a ruthless display.
Gurney opened the game with a 115 finish, but Taylor finished 68 and 58 to move ahead and 115 to open up a 3-1 lead.
The Northern Irish ace hit back to level after eight legs, but an incredible surge from Taylor saw him claim 12 successive legs in a relentless charge into the last four.
The run began with double 12 to break throw before he took out 73, 126, 64 and 81 to gain breathing space, followed a 13-darter with a 132 checkout and then punished four missed doubles from Gurney to create a 13-4 cushion.
Taylor then fired in a fourth ton-plus checkout of the game, with a 137 combination, and took out 84 to lead 15-4 before wrapping up a comprehensive win with the aid of a seventh 180 and tops.
"I'm delighted to be through and I can get ready for Sunday now," said Taylor. "My finishing was brilliant tonight - I put him under pressure and that was the intention.
"I thought I might give him a game because he's younger, he's fresher and at the minute he's probably playing better than I am. I did a couple of good finishes there against him and put him under pressure.
"It won't do him any harm, he needs to learn. He needs to re-evaluate what he's doing, re-evaluate his career.
"He's a cracking player and if I managed him he would win everything because he's one hell of a dart player, but his attitude is wrong. He needs to enjoy it more."
The night's second quarter-final proved highly dramatic and tense as newcomer Cross pushed Van Gerwen all the way for 22 legs before the reigning champion pulled clear to complete a 16-13 win.
Despite Van Gerwen opening the contest with 180 and 177 as he landed six perfect darts, Cross took out 127 for a 12-darter to break throw immediately and then took out 112 to move 2-0 up.
Van Gerwen stormed back to level before an 11-darter moved the Dutchman 3-2 up, and the next nine legs went with throw as the players maintained ton-plus averages to remain locked at seven-all.
Cross, though, produced an outstanding 131 checkout to break throw in leg 15, before finishing double four to move 9-7 up, only for Van Gerwen to claim a break back in leg 20 to square the game once more.
The next two were shared before finishes of 122 on the bull and 108 to break gave Van Gerwen a two-leg gap once more, before double four created a 14-11 cushion.
Cross hit back to win his 12th leg, but Van Gerwen landed two 180s to his rival's one as a 12-darter moved him 15-12 up and, though the Englishman responded with a 72 finish, a pair of missed doubles in the next allowed the world number one to seal victory with a 110 checkout.
"I'm really happy with this win," said Van Gerwen. "I played really well at the beginning of the game and I think he also played a phenomenal game.
"I can do better and I will need to tomorrow. I don't want to let myself down and tomorrow is going to be a big game and I want to beat Phil. It's one of the last chances and I want to take it with two hands.
"Phil doesn't have anything to lose. I'm the favourite and I have to do it, but I know I can handle the pressure and I've handled it for the last three years so why not now.
"He's the greatest who ever played and I've got a lot of respect for that man, but not tomorrow. I want to perform well - I don't want to give him a finger because he takes your hand."
Sunday afternoon's other semi-final will see Scottish pair Peter Wright and Gary Anderson - the players ranked second and third in the world - clash for a spot in the final.
The tournament then concludes with the final in Sunday's evening session, where a £110,000 top prize is on offer.
Tickets for the bwin Grand Slam of Darts are available through www.wolvescivic.co.uk or by calling 0870 320 7000.
2017 bwin Grand Slam of Darts
Sunday November 19
Afternoon Session (1pm)
Peter Wright v Gary Anderson
Michael van Gerwen v Phil Taylor
Evening Session (7pm)
Van Gerwen/Taylor v Wright/Anderson


Hello and welcome to a popular Australian dating site which is an excellent way for singles from Australia to meet their partners. Join us right now if you wish to meet people from various countries and Australian women - free of charge! Dating-australia.asia meets expectations of every single person, especially when it comes to singles from Australia. This dating site is moderated as well as updated every day: new profiles, new photos of members and more! By joining our site, you are able to gain instant access to the list of Australian people which also allows you to look for a girlfriend, wife, boyfriend and foreign partners. Do not worry because when it comes to finding love, the members get pretty serious. We provide our members with safe, friendly as well as understandable environment in order to make sure that everyone can easily communicate with the people they are interested in. Sign up now for absolutely free and gain your access to our upgraded search engine. Keep in mind that it will only take a few minutes to create your profile page!


text:
TV Review: TEEN WOLF – Season 2 Premiere – "Omega"
Stars: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Writer: Jeff Davis Director Russell Mulcahy Network: MTV, airs Monday nights Original Telecast: June 3, 2012 If you thought the greatness that was Season 1 of TEEN WOLF was a fluke, wait until you watch the Season 2 premiere "Omega." MTV and executive producer Jeff Davis have crafted a canny, smart reboot of the 1985 teen comedy which starred Michael J. Fox and found a way to make it the coolest high school monster show this side of BUFFY THE VAMPIRE SLAYER. Season […]Read On »
Exclusive Photos from TEEN WOLF Paley Center Event
The Paley Center for Media held a special event for MTV's hit series TEEN WOLF in celebration for the second season premiere of the show on May 23rd in Beverly Hills. The event was sold out and the fans of the show were treated to the opening episode, followed by a panel discussion with the show's cast and creative team. I overheard Tyler Posey telling one of the electronic press that he was excited to see the episode as he hadn't seen it as yet. As a matter of fact Tyler went on to tell them that his wardrobe was […]Read On »
Exclusive Photos from the FOX 2011 TEEN CHOICE AWARDS – Part 2
The FOX 2011 TEEN CHOICE AWARDS were recently held at The Gibson Amphitheatre in Universal City and stars from music, television and movies walked the blue carpet. Some will win the Surfboard, which is the award and some just came to party and be a part of this year's celebration. This year the host for the awards was Kaley Cuoco. There were so many that we decided to split the coverage into three parts…hope you enjoy it! The winner's photos will be coming soon! Part 2 – Seen walking the carpet: Raven Symone, Christopher Mintz-Plasse, Fivel Stewart, BooBoo Stewart, Sean […]Read On »
TV Review: TEEN WOLF – Season 1 finale – "Code Breaker"
Cast: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Writer: Jeff Davis Director: Russell Mulcahy Network: MTV, airs Monday nights Original Telecast: August 15, 2011 When TEEN WOLF began this year on MTV, there were many naysayers who were skeptical that a 1980s teen comedy featuring Michael J. Fox as basketball-playing werewolf could be turned into a scary, darkly humored television series. AX knew better, having seen the pilot and the potential the series had, and now as the show concludes its first season, it stands tall as one of TV's best […]Read On »
TV Review: TEEN WOLF – Season 1 – "Formality"
Stars: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Writer: Monica Macer Director: Russell Mulcahy Network: MTV, airs Monday nights Original Telecast: August 8, 2011 The problem with having 12 episodes to tell a complex story is that some times 12 episodes isn't enough. Ironically, there are many shows that have short seasons, some even shorter (eight and ten), that have no idea how to make those episodes count (even padding them with episodes that literally stop the story cold). Thankfully, that isn't the case with TEEN WOLF – a series that's […]Read On »
TV Review: TEEN WOLF – Season 1 – "Co-Captain"
Stars: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Writer: Jeff Vlaming Director: Russell Mulcahy Network: MTV, airs Monday nights Original Telecast: August 1, 2011 With only two more episodes to go before the Season 1 finale, TEEN WOLF continues to kick things into gear with more action and thrills in its latest one-hour than many shows manage to squeeze in during half a season. With "Co-Captain", Scott (Tyler Posey) finds himself still being taunted by Jackson (Colton Haynes) who continues to demand he be turned into a werewolf, even though Scott […]Read On »
TV Review: TEEN WOLF – Season 1 – "Wolf's Bane"
Stars: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Writer: Jonathon Roessler Director: Tim Andrew Network: MTV, airs Monday nights Original Telecast: July 26, 2011 When a genre show is good, and we mean really good, it opens up the doors for all kinds of possibilities with characters, plot developments and amazing surprises. With TEEN WOLF, it's three-quarters of the way through its first season on MTV, and all the characters and mythology that has been paved during the first half has finally come together in so many rewarding ways, particularly in […]Read On »
TV Review: TEEN WOLF – Season 1 – "Lunatic"
Stars: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Director: Tim Andrew Network: MTV, airs Monday nights Original Telecast: July 18, 2011 Anyone looking to create a successful genre show on network or cable television, needs only to look as far as the exceptional TEEN WOLF. What it accomplishes on a weekly basis is phenomenal. From how it creates likable characters and dialogue that isn't too meta and not too jokey to how the look of the show, courtesy of Director of Photography […]Read On »
TV Review: TEEN WOLF – Season 1 – "Night School"
Stars: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Writer: Jeff Vlaming Director: Tim Andrew Network: MTV, airs Monday nights Original Telecast: July 12, 2011 Now this is more like it. TEEN WOLF, after splashing around in the teen angst drama pool for awhile, has started to get its scary on. In "Night School," the show goes for its most horror movie-like episode yet, with lots of good atmospheric tension and upping the stakes for our beleaguered, newly lycanthropic hero Scott (Tyler Posey). Beginning the instant the previous episode, "Heart Monitor," ended, […]Read On »
TV Review: TEEN WOLF – Season 1 – "Heart Monitor"
Stars: Tyler Posey, Crystal Reed, Dylan O'Brien, Tyler Hoechlin, Holland Roden, Colton Haynes, Linden Ashby, JR Bourne Writer: Daniel Sinclair Director: Toby Wilkins Network: MTV, airs Monday nights Original Telecast: July 4, 2011 It's clear that "Heart Monitor", the latest episode of MTV's great new genre series TEEN WOLF is just the set-up for some major badass-ness going into next week. And it's about time. With the full moon on the horizon, and the Alpha Wolf wanting Scott (Tyler Posey) to become part of his pack, time is of essence for Scott to understand and control being a werewolf. On […]Read On »


text:
Thoughts Arguments and Rants
Posted on 11 May, 2018 by Brian Weatherson
Value and News in Evidential Decision Theory
In "Desire as Belief, Lewis Notwithstanding", Ruth Weintraub argues that Lewis's refutation of Desire as Belief rests on an implausible theory of desirability. In particular, she argues that the additivity principle Lewis uses in the proof is implausible. After a bit of algebra, she concludes with this (correct) theorem in the logic of desirability Lewis uses, and an argument against Lewis's interpretation of it.
So if \(D(A) = D(B)\) and \(D(\neg A) = D(\neg B)\), \(A\) and \(B\) have the same probability. But this shows that D isn't a measure of the goodness of propositions (prospects). For there can be equally good prospects whose probabilities differ. Suppose, for instance, I have two lottery tickets, for two different lotteries. The (single) prize in both lotteries is $1,000, but there are twice as many tickets in the second one. The two prospects (winning in the first lottery and winning in the second) seem equally good, as do the prospects of not winning. But if 'I win in the first lottery' has the same desirability as 'I win in the second lottery', the desirability of 'I do not win in the first lottery' cannot equal that of 'I do not win in the second lottery'. The more probable outcome, not winning in the second lottery, is less undesirable. If, alternatively, not winning in the lotteries is equally (un)desirable, then winning in the second is more desirable. (Weintraub 2007, 120, notation slightly altered).
But this isn't quite right. Let \(A\) be that I win the first lottery, and \(B\) be that I win the second lottery. Then although the prize for each lottery is the same, \(D(B) > D(A)\). That's because \(B\) means that I win $1,000, and have a ticket in a lottery I have a good chance of winning. But \(A\) means that I win $1,000, and have a ticket in a lottery I have a bad chance of winning. And the first is better for me than the second.
Weintraub has a second argument against the additivity principle. Assume \(P(A) = 1\), and \(T\) is a tautology.
$$D(T) = \frac{D(A)P(A) + D(\neg A)P(\neg A)}{P(A) + P(\neg A)} = D(A)$$
She comments
But this is absurd. When I win the lottery and am certain that I have won, I find my winning as good as I did when it seemed very unlikely. But according to its desirability (that of a tautology), I am indifferent to it! (Weintraub 2007, 120, emphasis in original)
This assumes that I am indifferent to tautologies. And on the correct way to understand Jeffrey's theory, this isn't quite right. After all, if things are going very very well for me, then \(D(T)\) will be extremely high. In general, the value of \(D(T)\) at a time is a reflection of how well things are going for me at that time.
Of course, at any given time it is possible to use \(D(T)\) as a baseline, and say that how good something is is given by the difference between its desirability and \(D(T)\). But we should remember that across time on Jeffrey's theory, \(D(T)\) can change dramatically. And those changes have meaning; they reflect changes in the value the agent assigns to their current overall state.
So there isn't anything absurd about \(D(T) = D(A)\) after I win the lottery. Both of them are high. 'Learning' either of them doesn't improve things for me. But that doesn't mean I'm indifferent to them; I'm rather happy that both of them are true.
There is something very funny about this view, though it's not that \(D(T) = D(A)\). Imagine that a good thing, \(A\), and a bad thing \(B\) both happen, and I know they've both happened. Then we have \(D(A) = D(B)\), which seems odd. This is why I'd like to have some kind of theory of value like the proposal by Stephen Daskall I discussed in the previous post. Things now, with \(A \wedge B\) true, are as they are. But they'd be worse if \(A\) were false, and better if \(B\) were false. And there should be a way of turning that into a theory of 'absolute value'. But I don't see how one could do that consistent with any kind of Desire as Belief theory.
Previous PostPrevious Absolute Value
Archives Select Month May 2018 (2) May 2017 (6) April 2017 (2) December 2016 (1) April 2014 (4) March 2014 (3) December 2013 (1) October 2013 (1) August 2013 (1) July 2013 (6) June 2013 (7) May 2013 (2) March 2013 (2) January 2013 (1) November 2012 (2) October 2012 (1) August 2012 (3) July 2012 (2) April 2012 (3) February 2012 (1) January 2012 (2) December 2011 (2) November 2011 (1) August 2011 (2) July 2011 (3) June 2011 (1) May 2011 (4) April 2011 (4) March 2011 (5) January 2011 (4) December 2010 (2) November 2010 (2) October 2010 (4) September 2010 (1) August 2010 (6) July 2010 (3) June 2010 (4) May 2010 (8) April 2010 (7) March 2010 (12) February 2010 (12) January 2010 (2) December 2009 (12) November 2009 (10) October 2009 (10) September 2009 (5) August 2009 (5) July 2009 (8) June 2009 (7) May 2009 (11) April 2009 (8) March 2009 (14) February 2009 (10) January 2009 (13) December 2008 (13) November 2008 (7) October 2008 (6) September 2008 (5) August 2008 (8) July 2008 (13) June 2008 (7) May 2008 (21) April 2008 (6) March 2008 (9) February 2008 (7) January 2008 (22) December 2007 (5) November 2007 (10) October 2007 (11) September 2007 (12) August 2007 (6) July 2007 (9) June 2007 (11) May 2007 (13) April 2007 (11) March 2007 (12) February 2007 (18) January 2007 (21) December 2006 (16) November 2006 (12) October 2006 (18) September 2006 (10) August 2006 (10) July 2006 (21) June 2006 (4) May 2006 (10) April 2006 (12) March 2006 (24) February 2006 (18) January 2006 (10) December 2005 (11) November 2005 (16) October 2005 (19) September 2005 (15) August 2005 (8) July 2005 (15) June 2005 (28) May 2005 (26) April 2005 (31) March 2005 (46) February 2005 (28) January 2005 (14) December 2004 (18) November 2004 (28) October 2004 (30) September 2004 (38) August 2004 (32) July 2004 (39) June 2004 (23) May 2004 (54) April 2004 (73) March 2004 (78) February 2004 (48) January 2004 (50) December 2003 (45) November 2003 (47) October 2003 (50) September 2003 (60) August 2003 (59) July 2003 (42) June 2003 (22) May 2003 (93) April 2003 (77) March 2003 (87) February 2003 (86) January 2003 (87) December 2002 (32) November 2002 (43) October 2002 (2) August 2002 (6) May 2002 (2) April 2002 (4) March 2002 (11)
Greg Frost-Arnold on Higher-Order Thought Experiments
Jeremy Goodman on Higher-Order Thought Experiments
Brian Weatherson on How often do journals cite other journals?
Corey on How often do journals cite other journals?
jlschwenkler on How often do journals cite other journals?
Over Time, Citations Get More Uneven
Citations are Getting More Evenly Distributed
Two More Graphs


Water Absorption: The increase in weight of a test specimen expressed as a percentage of its dry weight after being immersed in water for a specified time at a given temperature.
Water Cure: To control the rate of cure of materials such as concrete by spraying a fine mist of water on the surface.
Water Cut-off: See Night Tie-Off.
Water Stop: Material placed over a joint and used to prevent water entry.
Waterproof: Being resistant to moisture infiltration.
Waterproofing: The treatment of a surface or structure in order to prevent the passage of water under hydrostatic pressure.
Water Trough: The area in a valley where water runs. Usually referred to with open valley configurations.
Weather: To undergo degradation in quality and appearance which is caused by exposure to the sun, wind, rain, etc.
Weld: To join multiple metal or PVC components together by heat fusion.
Wet Bulb Temperature: Air temperature in ° F as measured by a thermometer with a bulb covered by a damp wick.
Wet Film Thickness: The thickness of an uncured material such as a coating.
Wick: To convey liquid by capillary action.
Wind Load: The force that wind puts on structures.
Wind Uplift: (1) The upward displacement of a section of a roof system or component caused by movement of air from a location of higher air pressure, such as inside a building, to an area of lower air pressure, such as the surface of a roof during a windy day. Strong wind across the surface of a roof, especially at corners and along perimeters, creates low air pressure above the surface of the roof. Nature will automatically try to compensate for this by moving air from an area of higher pressure such as inside a building. If all penetrations and perimeters are not properly sealed, then "blow-off" can occur. (2) Displacement or blow-off of shingles or other roofing caused by the wind.
Windward: Facing into the wind.


Listed in Big River Lodges.
An incredible private resort that offers all the amenities. Beautiful lakeshore campsites, marina, store, gas station, cabin rentals, corporate and group packages, and much, much more. .In the winter try our ice fishing, cross country skiing, down hill skiing or snowmobiling packages.
Our fishing lodge is located just 2 hours north of Saskatoon, Saskatchewan with good quality roads leading to the main office.
Delaronde Resort may be a suitable property if you are looking to stay near Debden, Chitek Lake, Shell Lake, Canwood, Spiritwood, Green Lake, Shellbrook, Christopher Lake, Rabbit Lake or Leask.


Ribalex.dk offers in cooperation with Copenhagen Segway a unique combination of sailing and Segway. The experience is suitable for corporate events, trip with friends, bachelor parties and more.
Start with 45 minutes sailing. You can choose from a frantic race RIB boat with 600 hp or a stylish and cozy boat ride our charming Svendborg Classic motorboat. After the boat trip will be in dropped off at Amager Beach. Here Copenhagen Segway will welcome you to a fun and challenging experience on the Segway. After a brief welcome you will all be trained to master driving on the fun Segways. The group is then divided into two teams that compete against each other on a Segway course. Here it is important to work together to win the competition against the other team. There are bound to be plenty of smiles and happy faces .


Shopping for a particular kind of 50W lightbulb, I found what I needed in the package shown here. At first glance I see that it's a 50W type, and that it saves about 10% on energy. Cool.
To be clear, there's nothing here about "the same light output as a traditional 50-watt bulb" or anything like that. It's simply a lower-wattage bulb with a high-wattage number printed in the largest type.
This type of deception is probably as common here as in The States. I first noticed it here long ago, in a grocery store with a beverage carton that looked like an orange-juice carton, had a picture of an orange on it, and had ORANGE 100 written on it in huge letters. One could be forgiven for thinking that it was 100% orange juice, and this would have been very nice because at the time, orange juice was extremely expensive (having only recently been legal to sell in the first place) due to protectionist government regulations that gave very strong preference to tangerine juice, which can be grown/produced in Japan.
In reality, as the small print revealed, it had only some small percentage of orange juice, but did have 100% of the recommended daily dose of some vitamin or other. That's where the "100" came from. It was clear that it was purposefully misleading to make a quick sale.
But my favorite "serving size" was not offensive in a hidden calorie sort of way – it was just the most bizarre. Vlasic dill pickle spears have a 5 calorie serving size of "3/4 spear" ¾ spear? That's just weird. I mean, even rounding up, one full spear would have 7 calories – a negligible difference, and be much more reasonable as a "serving".
I certainly agree with the problematic nature of deceptive advertising, I think in the case of the lightbulb, they may of made the less egregious mistake of simply confusing packaging.
The amount of light generated by a lightbulb isn't measured in Watts (W), but in Lumens (lm)– a measurement of the power of a lightsource. Because most incandescent bulbs are all inefficient at near the same rate, usually manufactures just slap on the wattage on the side. But a compact fluorescent light of 13 watts can produce the same amount of light as a 60 watt incandescent.
I'm guessing what the packaging meant is, this bulb produces the same amount of light as a 50W bulb while only consuming 45W of power. Of course, this doesn't hold a candle (pun intended) to CFLs and other efficient technologies, but it is still an improvement. The real thing that matters when buying bulbs is the luminous efficiency, or the amount of light it makes per watt of power used.
Shawn, I doubt it's the "same amount of light as a 50W bulb", which is why I said "there's nothing here about "the same light output as a traditional 50-watt bulb" or anything like that." They do make those kind of claims about the CFLs, so the clear lack of them on this bulb's packaging seems telling.
Marcina, that made me laugh.
Consumer Reports (in the US) publishes listings of deceptive advertisings on its back page each issue. October's issue has a good "Cinnamon Burst" ad that's somewhat relevant here.


text:
Wranga and Disney Star India partner to conduct 'Responsible Digital Citizenship and Online Safety' study
The 'Responsible Digital Citizenship and Online Safety' report by Wranga, an Indian start-up focused on cyber safety for kids, with the support of Disney Star India, one of the biggest media conglomerates, was released today.
The aim of the report was to assess the proficiency of young online users with the safety tools at their disposal and identify their preferred mode of learning. Among the many conclusions drawn was that 84 per cent of users have come across fake news online.
Wranga leaned on the support of Disney Star India to bring out the study, undertaken to understand – and contribute to – the domain of digital education for creative expression, learning and participation of students as responsible digital citizens, and to ensure their digital wellbeing.
The survey is one of the main elements in the first phase of this programme, alongside workshops, training, focus-group discussions and the design of curricula.
Conducted among school students, the report found that the greatest threat girls and boys face in the online space is inappropriate sharing of images. Students also revealed that although topics like cyberbullying and misinformation are touched upon in the classroom, more must be done to have a real-life impact. "Topics were taught but not enforced in any way. So they didn't have any real-world impact," the report mentions.
Interestingly, the respondents listed specific topics they would like to deep-dive into through their school curriculum, including Legal Protection, Internet Privacy and Cyber Wellness. Significantly, 70 per cent of respondents were worried about their online privacy and safety – besides improper use of photos, they also raised concerns over setting up of fake profiles or misrepresenting profiles, taking screenshots without permission and circulating, stumbling upon inappropriate visual and textual content, and unwanted approaches in chat rooms, on social networking sites or on email.
On the positive side, however, an overwhelming 80 per cent-90 per cent of students believed that the Internet has helped broaden their horizons, and prefer to use the world wide web for learning new subjects and for creative expression.
This initiative is a step towards building a secure digital space for India's youth. It also highlighted apprehensions that users have while reflecting on the measures that need to be taken to enhance their online experiences, and identifying the resources required to build capacities that can guarantee safe digital surfing.
Wranga collaborated with various stakeholders such as teachers, parents, institutions, the Government and its agencies NGOs/SOs, online platforms and legal and cyber security experts for a comprehensive consultation. The survey was carried out amongst children of school-going age in India, from January to April 2022. Altogether, 842 responses of students from grade 9 to grade 12 were documented and analysed.
According to Amitabh Kumar, CEO, Wranga, "I feel that this report, compiled with the invaluable co-operation of Disney Star India, can be the start to a conversation we must all be having. Because our children are spending a lot of their time online, it is imperative that we understand the particular challenges and threats they face, and that we resolve to make the digital world as safe as possible for them."
In the words of Mihir Rale, Chief General Counsel, Disney Star India, "This study is an important contribution to the discussion on digital safety, knowing that a lot of our lives are being spent online. It is even more urgent that steps are taken to address the problems and risks associated with the digital ecosystem, more so when these affect our children. I think the report will go a long way towards strengthening online security."
Present at the launch of the report was chief guest Annapurna Devi, Minister of State for Education, Government of India, who gave a special address stating, "The National Education Policy, under the guidance of Narendra Modi, has been created by honorary literates and equips the Indian youth and masses with Ed-tech. Wranga's efforts towards digital citizenship and online safety are being reflected in the project report taken up in collaboration with Disney Star, which is truly commendable."
She further added, "In the present times, the digital presence of students and educational institutes has significantly increased. Thus, educating our youth about the safety and security of utilizing the Internet is imperative to make them responsible digital citizens. Along with the teachers, it is also the responsibility of the youth's guardians to steer them in the right direction. I believe that this project will be beneficial, and congratulate the stakeholders from both Team Disney Star and Wranga for this achievement."
The release also saw panel discussions on the many aspects of digital citizenship, in which domain experts discussed existing gaps in online safety and shared recommendations on how young adults can become vigilant and accountable for their online actions. ANI
Amazon Studios Teams Up with Avid Technology to Deliver Advanced Production Editorial in the AWS Cloud
MTV India & Fully Faltoo from Viacom18's YME cluster announce a strategic content partnership with Snap Inc


text:
Home » Arthur Sullivan
The Mikado or, The Town of Titipu (NYGASP)
The framing device is not a completely elegant solution to the problem, but it gets the job done. Gilbert gets knocked out cold while examining the contents of the trunk. While incapacitated, he imagines the members of the company playing the roles that he and Sullivan will eventually create. In this fantasy 'Mikado," the citizens of the town of Titipu are more British townsfolk than Japanese villagers. They dress in bright Victorian-era costumes by Quinto Ott. The set by Anshuman Bhatia includes a railway depot from which the characters who have arrived in town emerge (giving a multiple meaning to the lyric "Comes a train of little ladies…"). The cast consists of actors of various racial backgrounds. [more]
The Yeomen of the Guard
As for cast standouts, Greenwood excelled both musically and dramatically. His ringing, expressive vocals and crisp diction made him an audience favorite. And he created an effective character shift when the assertive and seemingly self-adoring Fairfax shaves his beard to become a rather diffident novice yeoman. Another notable turn came from David Auxier as the austere, thoughtful Sir Richard Cholmondeley, the Tower lieutenant. (Auxier also served as choreographer, providing a few athletic dance moves of the sort not always seen in Gilbert & Sullivan productions.) In terms of musicality, Benke's Phoebe had a warm, winning, almost musical-theater sound, while Watson Chase prompted goose bumps with her vibrant top notes. The production's orchestra sounded rich and full from overture to Act II finale. [more]
The Mikado Reimagined (NYGASP)
In keeping with Sullivan having been hit over the head, the cast is clothed in a motley collection: a combination of late Victorian and Japanese styles. Some are in all Japanese, some in all Victorian, most are in a combination of the two. Even the Victorian costumes have baroque additions to make them look exotic. The women all wear Victorian gowns with bustles open in the back just as though they had not finished dressing. The concept while colorful is quite a mess with every possible variation on stage at the same time. [more]
The Gondoliers
Founded by Albert Bergeret in 1974, he continues to this day as artistic director for the NYGASP, and on this occasion served as director and conductor, with an assist by choreographer David Auxier on the direction. A daunting and impressive achievement, this production also marked the conclusion of the first season in which the NYGASP performed in their new residence: NYU Skirball Center for the Performing Arts. A beautiful and state of the art theater, this is a space that can handle the grandeur and scale of a G&S piece. The theater provides remarkable production value, including a massive pit to house the almost thirty person orchestra. Thanks to the latest in acoustic engineering and innovation, the music of "The Gondoliers" was robust and invigorating. Led by Bergeret, the score filled every inch of the theater and truly transported the audience to another time and place. [more]


text:
Q: Reduce duplication of similar HTTP fetch methods for each model class I thought I've got this covered but it looks like I was wrong. Now I need to rework all my project but I'm not sure what is the best way (or common way) to do it. So far I've got API_service class with all possible calls to my back end like that
class APIService {
  Future<List<dynamic>> getByPost(
      {String path, Map<String, dynamic> body, String token}) async {
    try {
      final header =
          [APIHeader.authorization(token), APIHeader.json()].reduce(mergeMaps);
      final http.Response response =
          await http.post(path, headers: header, body: json.encode(body));
      final jsonResponse = json.decode(response.body);
      if (response.statusCode != 200) {
        throw ServerException(jsonResponse["error"]);
      }
      return jsonResponse['result'];
    } catch (error) {
      throw error;
    }
  }
 ...
}

and database class where I got all my request
class User extends Database with ChangeNotifier {
  String _token;

  set token(String value) => _token = value;

  Future<SeriesModel> getSeries(int id) async {
    final response = await APIService()
        .getById(path: APIPath.series('get'), token: _token, id: id);
    return SeriesModel.fromJson(response);
  }
 ...
}

problem with this approach is that my database class is getting really big because I have to create new method for each call. For example if I want to get something foo by id I would have to create new method getFoo in my database class. I know this is not the best way to do it so I'm trying to find better approach. So what is a common way to structure and reusing http calls

A: You can use generics to reduce duplicate code.
Here is a Dart example that can run on DartPad:
var database = {
  {"id": 1, "score": 555, "type": "user"},
  {"id": 2, "score": 777, "type": "user"},
  {
    "id": 3,
    "started": DateTime.fromMillisecondsSinceEpoch(1592515515550),
    "type": "match"
  },
  {
    "id": 4,
    "started": DateTime.fromMillisecondsSinceEpoch(1593513315000),
    "type": "match"
  },
};

class User {
  int id;
  int score;
  User(this.id, this.score);
  User.fromJson(Map<String, dynamic> data)
      : id = data["id"],
        score = data["score"];
}

class Match {
  int id;
  DateTime started;
  Match(this.id, this.started);
  Match.fromJson(Map<String, dynamic> data)
      : id = data["id"],
        started = data["started"];
}

T getData<T>(int id, T Function(Map<String, dynamic>  decoded) creator ) {
  Map<String, dynamic> result = database
      .singleWhere((dynamic item) => item["id"] == id, orElse: () => null);

  // This is where the magic happens. The `creator` function we supplied by the argument
  // will create instace of T by using the 'result' as argument.
  return creator(result);
}

void main() {
  User _user = getData<User>(1, (data) => User.fromJson(data));
  Match _match = getData<Match>(4, (data) => Match.fromJson(data));

  print(_user.score);
  print(_match.started);
}

You can make getData async too. You are also initiating in APIService in every method, you can make it factory. Same thing goes with the HTTP client. Reduce the amount of unnecessary initiation of resources in your code.


text:
Are We Really Going To Put the Image of Racism on the $20 Dollar Bill?
By Rev. Dr. Clenard H. Childress, Jr.
Margaret Sanger on the $20 Bill
Nationwide -– Can there be anything more insidiously proposed; is there anything more ironically insane then this narrative? Let us look at this for what it is. Millions in America, and I do mean millions, thought their vote for Barack Obama would once-and-for-all deal a death blow to our past slavery and segregation stigma and signify to the world that racism is dead in America.
Rasmussen reported recently, "Despite high hopes to the contrary, voters continue to believe the racial picture in this country has gotten worse since the election of the first black president. A national telephone survey finds that only eight percent (8%) of likely U.S. Voters think race relations are better since President Obama's election six years ago. Forty-two percent (42%) believe race relations are worse now, while slightly more (48%) say they have stayed about the same." But it doesn't end there, for now under the administration of the first black president you have the suggestion of putting the notorious eugenic, Margaret Sanger, on the 20 dollar bill! So much for… "Black Life Matters!"
Margaret Sanger, who was perhaps the most diabolical racist of our times said in, Pivot of Civilization, referring to African-Americans, immigrants, and poor people, that they were "…human weeds," "…reckless breeders…," "…spawning… human beings who never should have been born…." Moreover in her letter to Clarence Gamble, of Proctor and Gamble soap company, himself a staunch advocate of birth control and eugenics, Margaret Sanger further most succinctly stated,
"We should hire three or four colored ministers, preferably with social-service backgrounds, and with engaging personalities. The most successful educational approach to the Negro is through a religious appeal. We don't want the word to go out that we want to exterminate the Negro population and the minister is the man who can straighten out that idea if it ever occurs to any of their more rebellious members…"
I would certainly be considered a "more rebellious member" and I vehemently protest and find it outrageous in these times of "Political Correctness" that she should even be considered for the 20 dollar bill. Remember Jimmy the Greek's comments about African-American athleticism and future coaching positions? Career over even after receiving support from player union representatives, Gene Upshaw and Ahmad Rashad… Or more recently with Donald Sterling's comments to his mistress – in private – about bringing black players to his games (who was more jealous about their athleticism with her than their color) resulting in being banned from basketball. Bruce Levenson, who was blaming African-American fans for the lack of corporations and white people from buying season suite purchasers. Or Rodner Figueroa, who is openly gay, and whose father is half Africa-American, who was fired after a call from the White House – (oh the hypocrisy, it's killing me) – for comparing Michelle Obama to a character in the movie, "The Planet of the Apes." All of the above mentioned, profusely offered up apologies, but received no pardon and now you are going to put on the 20 dollar bill the image of an individual who called African-Americans, human weeds, reckless breeders and accused them of spawning persons that should have never been born… On the 20 dollar bill!
Now to all the African-American readers of this article, watch for the response from the NAACP… The Congressional Black Caucus… The National Action Committee (Al Sharpton)… The Rainbow Coalition (Jessie Jackson)… Or, Barack and Michelle Obama… '…three or four colored ministers…'all. You will not see them say one word of protest nor contrary response to the name of Margaret Sanger due to the fact that they all are in bed with the leading killer of African-Americas: Planned Parenthood. They find it acceptable for America's leading abortion provider not only to get your tax dollars, but are free to cast racially derogatory slurs against you and your ancestry. Ask any of these organizations how they feel about Margaret Sanger being on the Twenty Dollar Bill, and for the record, request it in writing.
And please don't forget Barack and Michelle in your request for a response.
Rev. Dr. Clenard H. Childress, Jr. is the founder of www.BlackGenocide.org – a website designed to reach the Afro-American community with the truth about abortion.
Rev. Clenard H. Childress Jr.
President, LEARN NE


The Wolverines dropped their opener 79-33 Tuesday night at the BHS gym.
said. "We played hard. The second half was much better than the first. Nobody quit."
He said Piedra Vista used a tough full-court press, rotating all 12 players into the game.
"We had lot of turnovers in the first half, and they got a big lead," Hesford said.
But, he said, the Wolverines handled the pressure much better in the second half.
Michael Folk, Jared Qualls and Seth Roubideaux each scored seven points for Bayfield.
Piedra Vista had nine players in the scoring column as the Panthers improved to 1-0.
He said the Wolverines will start to regroup and get ready for the Kirtland Tournament next weekend.
The BHS boys basketball team will play Bloomfield in the first round of the Kirtland Tournament at 3:30 p.m.
The Wolverines also will play games Friday and Saturday in Kirtland.
"We've got some hard work to do. But we're excited about it," Hesford said.


text:
American National Standards Institute
The American National Standards Institute (ANSI /ˈænsi/ AN-see) is a private nonprofit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States.[3] The organization also coordinates U.S. standards with international standards so that American products can be used worldwide.
American non-profit organization that develops standards
"American Standards Association" and "ANSI" redirect here. For the film speed scale, see ASA film speed. For other uses, see ANSI (disambiguation).
Not to be confused with ASCII.
This article needs to be updated. (July 2020)
October 19, 1918 (104 years ago) (1918-10-19)[1]
501(c)(3) private
Washington, D.C., U.S.
38°54′14″N 77°02′35″W
125,000 companies and 3.5 million professionals[2]
Joe Bhatia
www.ansi.org
ANSI accredits standards that are developed by representatives of other standards organizations, government agencies, consumer groups, companies, and others. These standards ensure that the characteristics and performance of products are consistent, that people use the same definitions and terms, and that products are tested the same way. ANSI also accredits organizations that carry out product or personnel certification in accordance with requirements defined in international standards.[4]
The organization's headquarters are in Washington, D.C. ANSI's operations office is located in New York City. The ANSI annual operating budget is funded by the sale of publications, membership dues and fees, accreditation services, fee-based programs, and international standards programs.
This article uses material from the Wikipedia article American National Standards Institute, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.


text:
ANIMATION NATION
By Kurt Andersen
The New Yorker, June 16, 1997 P. 7
Signed Comment about animated cartoons... Are you by any chance hoping that the millennium will usher in some sort of cleansing cultural flood tide--a next big thing that's not just a half-ironic recycling of a previous big thing, like miniskirts or Corinthian columns? Well, it may have happened already. The new era, which is about to ripen into its golden age, was born eight and a half years ago. It was then, over a brief period in 1988 and 1989, that "Who Framed Roger Rabbit?" posited a world cohabited by human beings and cartoon characters, "The Little Mermaid" inaugurated a new Disney animation hegemony, and--the key event--"The Simpsons" went on the air. What will be the big musical of 1997? "Hercules," the Disney cartoon that opens in New York this weekend. What is the only successful new television series of the year so far? "King of the Hill," a cartoon. What is the only genre of TV program to which Steven Spielberg attaches his name? Cartoon shows--four of them, including "Freakazoid" and "Pinky and the Brain." Which is the most successful new cable channel? The Cartoon Network. Who are the most deeply resonant, compellingly humane people on the tube? Cartoon characters. Tells how live-action movie musicals have been supplanted by animated musicals... Satire, too, has been rather suddenly yet thoroughly colonized by the cartoons... Digitally animated special effects transmute reality into cartoons and cartoons into reality. In Spielberg's new megahit, "The Lost World: Jurassic Park," the animated dinosaurs seem in every way more genuine and less mechanical than the people. ... A recent "Simpsons" episode lampooned, with perfect contempt, various live-action TV genres. Its parody of a sitcom included, of course, plenty of robotically hysterical canned laughter. It was a joke that only an animated show could do perfectly, and it highlighted another virtue of "The Simpsons": almost alone among TV comedies, it doesn't have a laugh track... Thanks to cartoons, we can respond like human beings.
Published in the print edition of the June 16, 1997, issue.
Never miss a big New Yorker story again. Sign up for This Week's Issue and get an e-mail every week with the stories you have to read.


Download Traffic Sign PowerPoint Diagrams & Templates for creating amusing presentations that require professional iconography.
You can use traffic light signs for creating or complementing your Dashboards or indicate different status in your tabular reports. Each presentations has a different set of shapes , specifically created for informational slides or business presentations. Ideal for representing project health or to create stunning infographics , each shapes is created as individual PowerPoint objects, allowing the presenter to customize the shapes to match the presentation theme or background.


Pedestrian deaths in Maryland jumped 25 percent in 2018 to a 28-year high. We had 48 pedestrian deaths in 2017 and that jumped to 60 in 2018.
We are not the only ones. The national average is also at a 28-year high, according to a Governors Highway Safety Association report published Thursday.
Our law firm handles a lot of brain injury cases, both from childbirth and from traumatic collisions like a car or truck accident. Below are questions we are frequently asked about these claims.
A traumatic brain injury (TBI) is caused by force impact or force to the head disrupting normal brain activity and causing neurologic damage. TBIs account for about 30% of injury deaths in the United States. According to the CDC, about 153 people die from TBI-related injuries every day in the United States.
What is Causing Lower Back Pain After a Car Accident?
Car accidents generate a lot of harmful force. When a car suddenly collides with something or gets hit by another vehicle, the occupants inside get forcefully propelled in the direction of the impact. Inside the confines of a car, this physical propulsion is usually stopped by another impact with a door, window, seat belt or airbag. Both the sudden forward movement and the sudden stop put acute stress on the spine and neck. These critically important areas of the body are most vulnerable in an auto accident.
The violent forward and stopping the movement of occupants in a car accident is commonly called "whiplash" and is one of the leading causes of back injuries in an auto accident. Injuries to the lower back can be extremely painful and notoriously difficult to treat and recover from. This article will focus on the possible causes of lower back pain that occurs after a car accident.
When I'm in another state, particularly on the West Coast, I'm always amazed at how far our culture extends. Going to Starbucks in Seattle is like getting Starbucks in Baltimore; people look the same, act the same, and largely talk to the same way (although they don't seem to know how to say "hon").
But, boy, when it comes to the risk of accidental death, its like we all live in separate and very different countries. New Mexico residents are nearly three times more likely to die as a result of injuries than inhabitants of New Jersey. Mississippi residents are about four times (get that, four times!) more likely to die in motor vehicle accidents than those in Massachusetts or New York. Statistics can put you to sleep sometimes, but these are incredible. I'm not even sure I believe it.
Can Your Insurance Company Demand a Statement in Maryland?
As a matter of law, I believe that the uninsured motorist carrier cannot require any statement – recorded or otherwise – from their insured after a car accident. Notwithstanding the fine print language in almost every Maryland car insurance contract that requires a statement, Maryland law requires your own car insurance company to pay all damages that the insured is entitled to from the person that caused the accident up to the uninsured motorist limit, if the "bad guy" has insufficient insurance.
The Maryland high court has affirmed that Maryland insurance law substantially rewrites car insurance contracts and that provisions that are not authorized by Maryland law are unenforceable. This would clearly seem to fall into that category because, if the insurance company is imposing any additional conditions on payment, then it is not providing the compensation required by the statute.
So you can just ignore your own insurance company's request for a recorded statement just like you can ignore the at-fault driver's insurance company's request for a statement, right? Not so fast. The law I just gave you is what I call "The Law According to Laura." This law comes with an important caveat: it is often wrong. The Maryland Court of Appeals has never ruled on this issue and could disagree completely or limit the coverage without a recorded statement to the minimal limits.
What Does SIU Mean in Accident Claims?
I disagree with insurance companies as to how prevalent the practice is, but there is no doubt that many people either exaggerate their injuries in car accidents or manufacture the injuries altogether. This we know.


After triumphing over catastrophic setbacks, three freshmen in fashion - Jorge Calderon, Ryan Bruchlmann and Rick Taylor - are poised to revolutionized style with their Toronto-based label, FERKNOT.
Initially specializing in bespoke tailoring, FERKNOT is presenting major growth in North America, now offering standard-sizes for both men and women in a diverse collection of garments. They are also expanding from within and fostering their name through sound leadership, publicity and marketing. Currently, FERKNOT is in the midst of launching a number of promotional events, including pop-up shops set for autumn of this year. "We took a lot of risks to get here," reveals president and co-founder Jorge Calderon, "But we anticipated success given the strength of our brand and the quality of our product." From their online store they continue to develop through experience, setting sights on eventually opening their own flagship store.
FERKNOT's yacht club placard has become their signature image but it has not always been smooth sailing for the trio. "We were blindsided," recalls co-partner Rick Taylor, as he recounts the flood that swept through Bangkok, destroying the company's Thailand warehouse. The devastation led all of their investors to jump ship, leaving the company staring into the abyss. Still, the partners persevered with youthful resiliency, combining Jorge's talent for brand management and Ryan and Rick's backgrounds in finance. "We had to ride the wave and start over from scratch," explains Calderon. In less than three years, FERKNOT has not only managed to regain the momentum it lost, but used this setback as a building block to a stronger partnership.
FERKNOT's ability to take hard hits and recover with ferocity gives it an edge where other companies may fall short. The entrepreneurs' themselves prove they are truly the embodiment of the FK image - determined, confident and assertive. FERKNOT is not only about Canadian fashion; it's about molding a generation who embark on each day with confidence in who they are, where they're going, what they have and what they want. FERKNOT demonstrates that accepting failure and having the willpower to see beyond it, is the key to success. Simply put, FERKNOT is about igniting ambition with style.
Best friends and Western University classmates Jorge Calderon, Ryan Bruehlmann and Rick Taylor founded FERKNOT, pronounced with a silent 'K,' in 2011. The three partners saw an opportunity in made-to-measure clothing and fashioned the label from the bottom-up. The young and ambitious embodies style with conviction for every occasion. Those who fit FERKNOT vision are the first to seize the day and the last to toast the night goodbye. FERKNOT is the man who runs an empire and the woman who captivates an audience. Their clothing currently retails online at www.ferknot.com. You can also access their content at www.facebook.com/FERKNOT.


text:
Q: Location issues with Service and IntentService In my app, a user will request location updates. When this happens, the main activity starts a Service that will start a location request.
My problem is, if the services is started, say 3 times in a two minute period, then it does not operate properly.
So, basically, I need the service to put the start request on hold until the current start is completely finished.
Each time my service is started, it can take up to ten minutes for it to complete, and the service responds to each start request differently based on the intent data that was passed to it.
I would be happy with (actually prefer) there being one location request for each of the three start requests that happened in the two minute period, but the intent data might be different from each of the three start requests.
So, I tried using IntentService to overcome this and handle all three requests one at a time, but then
LocationManager.requestLocationUpdates(...)

is not called. I understand this is likely due to onHandleIntent(...) pretty much immediately finishing and essentially not giving the location request time to respond. I have a handler that stops the location request after 7 minutes (3 mins for testing), and then location information is passed to other methods that return UI updates to the user. UI updates return, they are just null because the location updates fail.
I'm thinking I could use the onHandleIntent in an IntentService to start my service and pass the intent data to it, but that seems like a really bad practice, and there's probably a better way to do it.
EDIT: That definitely won't work because onHandleIntent will immediately start my locationService anyway, so there would be no waiting period.
Also, any Toasts called within onHandleIntent do not show at all, though everything from my onCreate() works like it should.
I'm having a really hard time finding any answer to this, and any help would be greatly appreciated. Here's the gist of my code:
public class myService extends IntentService {

public findMyDroidService() {
                super("findMyDroidService");
            }

@Override
 protected void onHandleIntent(Intent intent){

        intent.getExtras();
        fromIntentString = intent.getStringExtra("toIntentStringExtra");
        Toast.makeText(this, fromIntentString, Toast.LENGTH_SHORT).show();
        Toast.makeText(this, "Intent Handled", Toast.LENGTH_SHORT).show();
                    locMan.requestLocationUpdates(locListener,...);
 }
@Override
public void onCreate(){
    super.onCreate();
     locListener = new LocationListener(){
              //code goes here
     }
}
}

Also, my location listener is instantiated within the onCreate();

A: I was definitely way overthinking it.
In my situation, the issue was that I needed to keep all the data separate, so the string fromIntentString would not get overriden with new start requests. I used an array to do this, easily enough.
public class myClass extends Service {
      int arrayInt;
      ArrayList<String> arrayStringList;
      int myInt;

      @Override
      public void onCreate() {
            super.onCreate()
      arrayStringList = new ArrayList<String>();
      myInt = 0;
  // additional code not important for this example
      }
@Override
public void onStart(...){
handleCommand(intent);
}
@Override
public void onStartCommand(...){
handleCommand(intent);
return START_STICKY;
}
//I call both onstart and onStartCommand for backwards compatibility
public void handleCommand(Intent intent){
   intent.getExtras();
   arrayStringList.add(intent.getStringExtra("fromIntentString"));
// so I know it worked
   Toast.makeText(this, arrayStringList.get(arrayInt).toString(),
   Toast.LENGTH_SHORT).show();
//So I can keep track of the size of arrayStringList
   ++arrayInt;
//code for getting the location
useMyData();
}
public void useMyData(){
   // do location getting code
  // Here's where I actually use my array. For this answer, I will just show a toast.
Toast.makeText(getApplicationContext(), arrayStringList.get(myInt).toString(),
Toast.LENGTH_SHORT).show();
    ++myInt;
    if (myInt < arrayInt) useMyData();
    //I was going to use a for loop, but I couldn't get it to work, and I like this method
    //better

EDITS: I was previously using an Array[String] instead of the ArrayList, but that didn't work, because I had to be able to continuously grow the size of my array, which is not possible. Array's have a fixed size, so I used an ArrayList, which now works.


The Estate Tax Exclusion: Can Or Should You Use The Less Wealthy Spouse's Exclusion?
Richard Franklin and George Karibjanian of Franklin Karibjanian & Law PLLC join Practitioners' Insight host Andrea L. Ben-Yosef in a podcast about the new estate tax exclusion. They describe the terms sunset, rollback, and clawback, and discuss the strategies that practitioners should use, especially in situations where one spouse holds most of the wealth, or where there is a second marriage and the wealthy spouse wants to use the exclusions of the less wealthy spouse.
For more information, please see their article "The Lifetime QTIP Trust – the Perfect (Best) Approach to Using Your Spouse's New Applicable Exclusion Amount and GST Exemption" (Bloomberg Tax Estates, Gifts and Trusts Journal (March 14, 2019) at http://src.bna.com/GnO.


text:
Skip to main content Patrick Caskey, MD
Stephen Meffert, MD
Denise Kayser, MD MPH
Thomas Schlesinger, MD PhD
Shalini Yalamanchi, MD
3536 Mendocino Ave. #380 Santa Rosa, CA 95403
Retinal Conditions
Retinal Tear and Detachment
Floaters & Flashers
Patrick Caskey, MD
Dr. Caskey earned his medical degree from the University of Utah School of Medicine where he received numerous Honors Program awards during his clinical rotations. Following his internship at LDS Hospital in Salt Lake City, he completed his ophthalmology residency at the University of California – Davis, a well-respected center for research and clinical practice.Dr. Caskey pursued post-graduate work as a Fellow in Vitreoretinal Diseases and Surgery at the University of Iowa, where he participated in multiple research trials including the Macular Photocoagulation Study, Diabetic Retinopathy Study and the Diabetes Complications and Control Study. After completion of his Fellowship, he remained on the clinical staff at the University of Iowa as a clinical instructor. He returned to Northern California in 1989 where he joined Dr. Patrick Coonan in establishing North Bay Vitreoretinal Consultants.
Dr. Caskey is a diplomate of the American Board of Ophthalmology and a member of the American Society of Retina Specialists. His research interests include pharmacological therapies used in choroidal neovascularization associated with age-related macular degeneration, vitreoretinal surgery instrument development and clinical patient education. He has published articles in peer-reviewed journals and has been a consultant for Novartis, Genentech and Krames Communications. He has been selected as "One of the Best Doctors in America" by BestDoctors.com as well as "One of the Best Doctors in the Bay Area" by San Francisco Magazine.
Dr. Caskey lives in Santa Rosa with his wife and three children. His outside interests include travel, skiing, boating and playing the hammered dulcimer.
Click here to view Dr. Caskey's CV
3536 Mendocino Ave. #380
Medical Website Design by PBHS © 2020