Injured Bayern star James out for ‘a few days’

first_imgBayern München James to miss ‘a few days’ of Bayern training with calf injury Ryan Benson 00:38 22/2/2018 FacebookTwitterRedditcopy Comments(0) james-cropped Getty Images Bayern München UEFA Champions League Bayern München v Beşiktaş Beşiktaş The Colombian suffered a calf strain against Besiktas on Tuesday, but his club do not expect him to be out for long The calf injury James Rodriguez suffered in Tuesday’s 5-0 Champions League demolition of Besiktas is only a “slight problem”, Bayern Munich have confirmed.James went off just before half-time, with the Colombia international showing few signs of pain as he exited the field. There were initial suspicions he was withdrawn due to a knock to the head, having looked dazed shortly beforehand after getting struck by the ball. Article continues below Editors’ Picks Williams case shows Solskjaer isn’t holding Man Utd’s youngsters back – he’s protecting them Goalkeeper crisis! Walker to the rescue but City sweating on Ederson injury ahead of Liverpool clash Out of his depth! Emery on borrowed time after another abysmal Arsenal display Diving, tactical fouls & the emerging war of words between Guardiola & Klopp But Bayern confirmed after the game that the on-loan Real Madrid midfielder felt his calf tighten.And, following investigations from Bayern’s medical team on Wednesday, they have come to the conclusion he should only need to miss “a few days of training”.A club statement read: “Bayern midfielder James was not seriously injured in yesterday’s [Tuesday] Champions League game against Besiktas.We hope it’s not too serious, @jamesdrodriguez! #MiaSanMia #FCBBJK 1-0 pic.twitter.com/XuCapUGsw0— FC Bayern English (@FCBayernEN) February 20, 2018″An in-depth investigation confirmed the first diagnosis of the club doctor. The Colombian has only slight problems in the muscles of the left calf and thus has to miss a few days of training.”last_img read more

Courtois thinks Hazard should always play 90 mins

first_imgChelsea ‘Hazard should play 90 minutes’ – Courtois surprised at Conte’s Man Utd substitution Harry Sherlock Last updated 1 year ago 20:25 28/2/2018 FacebookTwitterRedditcopy Comments(2) Eden Hazard Chelsea Paul Pogba Manchester United Getty Images Chelsea Premier League Eden Hazard Manchester United v Chelsea Manchester United The Chelsea goalkeeper wants to see his Belgian team-mate play the full match where possible after he was withdrawn in the second half at Old Trafford Thibaut Courtois admits he was surprised to see Eden Hazard substituted by Antonio Conte during the 2-1 defeat at Manchester United.The Blues slipped out of the Premier League’s top four after goals from Romelu Lukaku and Jesse Lingard earned United the points following Willian’s opener.Lingard’s winner came two minutes after Hazard had been substituted by Conte, with Pedro coming on for the Belgium international. Article continues below Editors’ Picks Williams case shows Solskjaer isn’t holding Man Utd’s youngsters back – he’s protecting them Goalkeeper crisis! Walker to the rescue but City sweating on Ederson injury ahead of Liverpool clash Out of his depth! Emery on borrowed time after another abysmal Arsenal display Diving, tactical fouls & the emerging war of words between Guardiola & Klopp Chelsea were then left without their most creative spark when chasing the game and Courtois has aired his surprise at his compatriot’s withdrawal. “I have no explanation for the substitution,” Courtois told Belgian outlet Play Sports. “I did not expect it, but it’s the manager’s choice. He’ll explain it. I can’t look into his head. “Of course, you want players like Eden 90 minutes on the pitch. He can always bring something extra.”Conte has been under pressure in recent weeks, with the Blues struggling domestically. Chelsea are currently fifth in the Premier League, two points behind fourth-placed Tottenham and 19 behind leaders Manchester City.Speaking after the defeat at Old Trafford, Conte suggested that Hazard had failed to maintain his high standards in the second half and that his withdrawal was merely a tactical decision.”No Hazard [is not injured], no,” he told a news conference. “It was a tactical decision. “You have to keep the same performance for 90 minutes, we didn’t have a great balance, and every single player has to try to work with the ball, without the ball, otherwise we lose our balance.”I think he’d finished his energy because the first half he ran a lot. The second half he started the same way, but when I see a player is a bit tired, my task is to find a different solution.”Meanwhile, Courtois was left deflated by the defeat at United, which came on the back of a 1-1 draw at home to Barcelona in the Champions League when Chelsea had also taken the lead.”After our goal, we conceded a counter-attacking goal just like last Tuesday but in the second half we had less of the ball, but even then we should never have lost this match,” he said.”If you do not do the small things well in top matches, you lose, which is what happened.” Check out Goal’s Premier League 2019-20 fantasy football podcast for game tips, debate and rivalries.last_img read more

Sterling & Willian feature in new FIFA 18 Path to Glory team

first_imgeSports Sterling & Willian feature in new FIFA 18 Path to Glory team Harry Sherlock 02:00 10/3/2018 FacebookTwitterRedditcopy Comments(0) Raheem Sterling Manchester City Getty Images eSports Raheem Sterling Premier League Serie A Manchester City Juventus Liverpool Primera División Bundesliga The two Premier League wingers are a part of the team of World Cup hopefuls, which also includes the likes of Roberto Firmino EA Sports have announced a fresh batch of Path to Glory players available in FIFA 18 Ultimate Team, including the likes of Gonzalo Higuain, Willian and Raheem Sterling.EA released the initial group of players, featuring a mix of established stars like PSG’s Javier Pastore and young talent like Marcus Rashford at Manchester United, last year.With the World Cup in Russia approaching, the squads comprise players looking to earn a spot in their national team squads ahead of the summer. Article continues below Editors’ Picks Williams case shows Solskjaer isn’t holding Man Utd’s youngsters back – he’s protecting them Goalkeeper crisis! Walker to the rescue but City sweating on Ederson injury ahead of Liverpool clash Out of his depth! Emery on borrowed time after another abysmal Arsenal display Diving, tactical fouls & the emerging war of words between Guardiola & Klopp They are available in packs and on the transfer market, and feature boosted stats.Higuain starts with a base rating of 92, a boost of two from his base of 90, while Raheem Sterling moves from a left winger to a central attacking midfielder, with a huge rating of 87.Path to Glory players will see their stats further boosted based on the strength of their real-life performances.This will be reflected in the game when one of the players is included in a FIFA Team of the Week, Man of the Match, European Team of the Tournament, Hero or Record Breaker in-form release.FIFA 18 Path to GloryWhen that happens, the ratings on their Path to Glory card will be automatically updated in line with their latest in-form card.last_img read more

Mourinho questions United mentality

first_imgJosé Mourinho Matic was an island of personality – Mourinho questions United mentality Jamie Smith Last updated 1 year ago 06:49 18/3/2018 FacebookTwitterRedditcopy Comments(3) José Mourinho Manchester United Romelu Lukaku Brighton & Hove Albion FA Cup Manchester United v Brighton & Hove Albion Videos Despite seeing Manchester United progress into the semi-finals of the FA Cup by beating Brighton, the manager was annoyed by his side Jose Mourinho singled out Nemanja Matic as an “island of personality” as he criticised the mentality of his Manchester United players despite booking a place in the FA Cup semi-finals.Romelu Lukaku and Matic converted United’s only two efforts on target in a 2-0 win against Brighton and Hove Albion at Old Trafford on Saturday to set up a trip to Wembley.Mourinho had told his players to “grow up” following Tuesday’s surprise defeat to Sevilla in the Champions League and the Portuguese left Paul Pogba and Alexis Sanchez as unused substitutes against Brighton. Editors’ Picks Williams case shows Solskjaer isn’t holding Man Utd’s youngsters back – he’s protecting them Goalkeeper crisis! Walker to the rescue but City sweating on Ederson injury ahead of Liverpool clash Out of his depth! Emery on borrowed time after another abysmal Arsenal display Diving, tactical fouls & the emerging war of words between Guardiola & Klopp Luke Shaw was hauled off at half-time despite playing a role in Lukaku’s opener, with Mourinho unimpressed with United’s performance in a dour display against the Seagulls.”I didn’t like the game,” Mourinho told BT Sport. “I think we deserved to win because I think the game was in control for the majority, we scored two and they didn’t score, so we clearly deserved it but we didn’t play the way I want.”I had a reaction from some. Some players were mentally strong enough with football quality and that was the reason we won, but a team of 11 must have six or seven performing and wanting responsibility to play. I’m not happy with the performance, I’m happy with the result.”When I spend two days with faster build-up and ball arriving earlier between lines and in attacking areas it depends on decisions in possession and movement in attack, I spend two days working on it but attacking players don’t want the ball, defenders taking square passes, I have to feel frustrated.”The biggest frustration is not a bad result because this can happen, it’s when I work on the [training] pitch and don’t see the situations on the pitch.”Many, many times Matic was an island of personality and desire and control, surrounded by a lack of personality, class and desire.”[Scott] McTominay lost more passes than in all his games altogether but he was a Manchester United player, he gives to the team.”It was a question of mentality. The perfect Manchester United player has quality and personality and is consistent. When you play bad you must have personality.”#MUFC in the @EmiratesFACup this season:Played Scored Conceded Bring on the semi-finals  pic.twitter.com/Ryci0MgS6e— Manchester United (@ManUtd) March 17, 2018Although Mourinho did not single out individuals for criticism, Shaw’s withdrawal for Ashley Young at half-time was a sign the United manager remains doubtful over the left-back’s qualities.”It was a decision, one player for another in the same position,” Mourinho said. “I wanted to defend better, I want my defensive line to be more solid in response to some situations and I want more personality in the team.”last_img read more

Bondholders Nod Brings DSME Closer to Fresh Funds

first_imgzoom South Korea’s Daewoo Shipbuilding & Marine Engineering (DSME) will soon receive a cash injection from its creditors as the company’s remaining investors approved the latest debt rescheduling proposal, Yonhap News Agency said.Namely, the investors, which hold some KRW 1.3 trillion worth of DSME bonds, gave their approval for the proposal devised by the shipbuilder’s main creditors Korea Development Bank (KDB) and Export-Import Bank of Korea (KEXIM).The approval was granted after the main debt holder of DSME with some 30 percent of its corporate bonds, South Korea’s National Pension Service (NPS), gave its nod to the ailing shipbuilder’s latest debt restructuring plan on April 17.The new measures, which are expected to keep the financially troubled shipbuilder afloat, would see half of the shipyard’s commercial papers converted into equity with the rest being rolled over. KDB and KEXIM will in exchange provide the company with KRW 2.9 trillion of fresh funds.Revealed in late March 2017, the creditors’ restructuring plan sets out three key principles – debt restructuring should come first, financial assistance should follow later, and all stakeholders should bear the burden of losses.World Maritime News Stafflast_img read more

Tim Fontaine Creative mind behind the Walking Eagle

first_imgAPTN Face To Face It took less than a week for the Walking Eagle News to really soar!  The website bills itself as the “finest source of Indigenous news, anywhere” and some have taken it seriously. Founder, Editor-in-Grand-Chief and Head Writer Tim Fontaine joins host Dennis Ward on December 5th to talk about how the “news source” came to be, why Fontaine decided to “set fire” to his journalism career and the one time a story backfired.Fontaine also discusses his upcoming comedy show that will debut on APTN in the new year.last_img read more

Ikea to phase out singleuse plastic by 2020

first_imgTORONTO – Ikea and A&W are the latest big chains to join the war against single-use plastics, with each promising to limit waste production amid a growing public outcry over pollution.Ikea said Friday it would eliminate single-use plastic products from its shelves by 2020, including straws, plates, cups, freezer bags, garbage bags and plastic-coated paper plates and cups.And A&W Canada said it wanted to be the first fast food chain in North America to eliminate plastic straws with a plan to stop using them by the end of the year.The company says it will offer compostable paper straws instead. The move is expected to keep 82 million plastic straws out of landfills each year.Christine Ball of the Ecobusiness Network, which helps businesses reduce their environmental footprint, says shifting to more eco-conscious practices is an increasing concern for many companies.And she says moves by large players like Ikea and A&W can have a big impact on the broader sector.“When you start talking about something small like straws then you start to rethink the entire industry — you start rethinking how you’re using plastics overall,” says Ball, based in Whitby, Ont.“The general public and business (both) start to rethink: ‘OK, where else am I using these single-use plastics in my life where I don’t need to be?’”And it doesn’t stop with plastic, she adds.Ball points to a growing interest in the circular economy, in which manufacturing involves recycled materials and waste is eliminated or reused elsewhere. She points to one member company that produces a lot of cork waste, and efforts by the network to connect it to other organizations that grind cork to make cork floors.“Businesses are looking for new solutions as far as waste is concerned. Plastic is a part of it but businesses in our area that we talk to, they’re looking at an overall solution: ‘How do we deal with my organics? How do I deal with my plastics? My paper and my trash?’ I think that the plastics is amazing but it is just the tip of the iceberg.”Indeed, there have been an array of anti-plastic pledges in recent months: hotels including the Marriott and Holiday Inn Express have dumped their complimentary tiny shampoo and conditioner bottles in favour of larger containers that are attached to the bathroom wall; Montreal became the largest Canadian municipality to ban single-use plastic bags earlier this week, and Prince Edward Island is gearing up to become to the first province to do the same.Ikea Canada’s head of sustainability says the company hasn’t determined what alternatives it will offer to single-use plastics, which will also be phased out from customer and co-worker restaurants, bistros, and cafes by the end of 2019.But when Ikea committed to offering only LED lighting, he notes that forced the supply chain to come up with solutions quickly.“We’re hopeful that the commitment that we’re making around the single use plastics will actually encourage others to join us in this journey and then the suppliers that we work with, they can innovate or bring new products to market that will help us fulfil these ambitions,” says Brendan Seale.“In part, it’s an effort to shift the industry, and I think we have an opportunity and the ability to do that based on our scale. And if other large companies can do the same, then I think we’ll see fairly rapid movement on this.”He says Ikea is keen to join the circular economy by looking at new ways to work with renewable and recycled materials, and prolong the life of its products.Seale says Ikea has already taken some steps towards that: its Tanum woven rug is made from off-cuts from production of bed linens; the PS vase is made from the broken glass from production of other Ikea products; and a black matte cabinet door called Kungsbacka is made from recycled wood and PET plastic bottles.That’s important to consumers like Sophi Robertson of Toronto, who has been striving to produce zero waste since 2016.“I try to avoid a lot of the bigger chains but at the same time I try to also support (them) when I see that they’re making those kinds of changes,” says the 39-year-old Robertson, who estimates her family has produced one grocery bag of garbage in the past five months.“I think the big companies are the ones that kind of have to be the leaders in making these changes happen so that everyone else can follow.”last_img read more

Japan probe blasts asteroid, seeks clues to life’s origins

first_imgTokyo: A Japanese probe on Friday launched an explosive device at an asteroid, aiming to blast a crater in the surface and scoop up material that could shed light on how the solar system evolved. The explosive mission is the riskiest yet attempted by the Japanese space agency’s Hayabusa2 probe that aims to reveal more about the origins of life on Earth. Hayabusa2 successfully released the so-called “small carry-on impactor” – a cone-shaped device capped with a copper bottom – as scheduled, as the probe hovered just 500 metres (1,650 feet) above the asteroid Ryugu. Also Read – Saudi Crown Prince ‘snubbed’ Pak PM, recalled jet from USThe impactor was programmed to explode 40 minutes later, propelling the copper bottom towards Ryugu, where it should gouge a crater into the surface of the asteroid that spins 300 million kilometres from Earth. Hayabusa2 moved smartly away from the area to avoid being damaged by debris from the explosion or colliding with Ryugu while also releasing a camera to capture images of the event. Images from a different camera at the bottom of the probe showed the impactor was released at the right position and the right angle. Also Read – Record number of 35 candidates in fray for SL Presidential pollsControl Mission could not immediately confirm the detonation but assumes “the impactor certainly reached the surface,” said Takashi Kubota, engineering researcher at the Japanese space agency (JAXA). Kubota said the probe’s use of explosives and its “acrobatic” evasive manoeuvres were “unprecedented” and he hoped the mission would give scientists a rare peek inside an asteroid. Although the detonation was too small to move Ryugu off-orbit, JAXA scientist Makoto Yoshikawa said the ability to operate a probe to this level of precision marked “an important achievement in planetary defence” if Earth were threatened by an asteroid. It will take two weeks for the probe itself to return to its “home position” near Ryugu after the detonation and impact. The crater could be as large as 10 metres in diameter if the surface is sandy, or three metres across if it is rocky, according to JAXA scientists. NASA’s Deep Impact project succeeded in creating an artificial crater on a comet in 2005, but only for observation purposes. The aim of blasting the crater on Ryugu is to throw up “fresh” material from under the asteroid’s surface that could shed light on the early stages of the solar system. The asteroid is thought to contain relatively large amounts of organic matter and water from some 4.6 billion years ago when the solar system was born. In February, Hayabusa2 touched down briefly on Ryugu and fired a bullet into the surface to puff up dust for collection, before blasting back to its holding position.last_img read more

Hutchison raises concern on West Ham Anderson bid

first_imgWest Ham are allegedly discussing with Italian club Lazio for their attacker Felipe Anderson, but midfielder Don Hutchison has raised his personal concerns about the potential transfer.Hammers have offered a bid worth over £35million for the Brazilian and Manuel Pellegrini’s side are now in talks with Lazio about trying to negotiate a summer deal for the 25-year-old, according to Daily Mail.Nevertheless, former Irons midfielder Hutchison has described him as “very lazy” at times and feels he could be a slightly risky signing. The 25-year-old right-winger has netted four goals and provided seven assists in 21 appearances in Serie A last season.“This lad so much ability, I’ve commentated on him a dozen times, not many good games,” Hutchison wrote on his personal Twitter account.What we learned from day 2 of the Premier League? Taimoor Khan – August 20, 2019 The new Premier League season is only two weeks old but it has already taught us a few things that could define the campaign….“He needs to work so much harder!!!!! Very lazy but if West Ham can get a bit of fire in his belly, then he could come good.” This lad so much ability,I’ve commed on him a dozen times,not many good games. He Needs to work so much harder!!!!! Very lazy but if West Ham can get a bit of fire in his belly,then he could come good?— Don Hutchison (@donhutch4) May 31, 2018last_img read more

Deschamps wants a sharper France against the Dutch

first_imgFrance boss Didier Deschamps wants his team to step up their game when they square up against Holland in the Nations League on Sunday.The World Cup winners kicked off their campaign with a barren draw in Germany in midweek, when Deschamps felt his players were not sharp enough.Les Bleus will play their first home match since winning the World Cup this summer when Holland visit the Stade de France and Deschamps is looking for improvement.“We’re returning home, but we need to be more efficient,” he told uefa.com. “We ran out of steam towards the end against Germany and obviously the entire squad is not yet in top form. Not at this time of the season.Euro 2020Report: Euro 2020 qualifying Group H George Patchias – September 11, 2019 Euro 2020 qualifying Group H is being controlled by France and Turkey, but Iceland is still in with a shout.Reigning world champions France ran…“I haven’t decided yet whether to rotate players – anything is possible. Given that it’s our first match back at the Stade de France, in front of our fans, I’ll see how everyone recovers.”His Dutch counterpart Koeman reckoned France is one of the finest teams in recent times and is bracing up for the showdown ahead.“They are the world champions for a reason, without really playing great or beautiful football,” he told uefa.com.“When you want to improve, you have to play against nations of this level. The World Cup has proven that nothing is impossible – just look at [runners-up] Croatia – but we’re certainly the underdogs.”last_img read more

Alan Shearer reacts to Liverpool FCs 21 win over Tottenham

first_imgAlan Shearer has reacted to Liverpool 2-1 victory against Tottenham, stating that he is “worried” about Liverpool’s strong start to the season, adding that the Reds are yet to hit top gear.Liverpool dominated 100 per cent to start the new campaign on Saturday afternoon as they grabbed a 2-1 victory at Tottenham in order to keep their joint spot at the top of the table.While talking about the Match of the Day on Saturday evening, Shearer said, according to The Sports Review:“Liverpool definitely deserved it but the worrying thing is they weren’t even at their best. If they had been, they could have probably scored six or seven.Roberto Firmino, LiverpoolVirgil van Dijk praises Roberto Firmino after Liverpool’s win Andrew Smyth – September 14, 2019 Virgil van Dijk hailed team-mate Roberto Firmino after coming off the bench to inspire Liverpool to a 3-1 comeback win against Newcastle United.“They should have had a field day because their pressing at times was excellent and they pressured Tottenham into making mistakes.”Coming up next for the Reds is their Champions’ League group stage opener against Paris Saint-Germain on Tuesday night at Anfield.Also, Liverpool plans to go one step further this season after they got to the final but lost to Real Madrid last term.last_img read more

David Luiz praises Maurizio Sarri

first_imgThe Chelsea Brazilian footballer believes his coach saved his career and now speaks on the values the Italian manager hasFor Chelsea center-back David Luiz, life under manager Maurizio Sarri has been a blessing.The Brazilian had some problems with the last Blues’ manager Antonio Conte, even deciding to leave the team.But in the end, he stayed and now he spoke to BT Sport on television about how well Sarri manages things at the club.“I think it is about training every day. In the first week I talked to him and said to him that I’m going to work harder to show I want to get into his team and play his philosophy,” he said as quoted by Football London.Mario Mandzukic, JuventusJuventus confirm Mario Mandzukic could leave this month Andrew Smyth – September 14, 2019 Sporting director Fabio Paratici confirmed reports that Mario Mandzukic could leave Juventus for a move to an unnamed Qatari team.“His philosophy is great. It is to press all the time, to play with the ball, possession, without being scared, with happiness, and in the end being concentrated for 90 minutes. That is important. I’m trying to do my best every single match.”“I was a champion with Conte and was in the best XI so I cannot say this way. Conte was a bit more defensive, Sarri is more offensive. I try to adapt. I was playing in a back three in the middle and now I’m playing in a back four. You have to adapt in every match,” he added.“Sarri is a great human also,” he commented.“His philosophy, he wants that. He wants us to take pleasure in the football. You have a privilege to have one of the best jobs in the world. He says this to us every day.”last_img read more

270 Million Allocated to Citizens Security and Justice Programme

first_imgFacebook Twitter Google+LinkedInPinterestWhatsApp Facebook Twitter Google+LinkedInPinterestWhatsApp#Jamaica, February 20, 2018 – Kingston – The Government has allocated $270.015 million for the Citizen Security and Justice Programme (CSJP) III.  This is outlined in the 2018/19 Estimates of Expenditure, now before the House of Representatives.  The programme seeks to enhance security and justice in targeted communities through gender-responsive justice services.For the new fiscal year, the Victim Services Division is expected to identify and retrofit areas to accommodate victim services, provide emergency assistance grants to 50 beneficiaries, assist 110 children exposed to violence and trauma with counselling interventions, and facilitate special therapy sessions with 30 sexually abused children.The programme is also expected to train 65 court officials, police officers, and other first responders; and implement special intervention programmes to support the findings from the West Kingston Inquiry.  Also, the Legal Aid Council is expected to train 250 police officers and justices of the peace on legal aid issues and continue consultations in CSJP communities via the mobile unit.The Justice Training Institute is expected to conduct qualifying and advanced training for justices of the peace; and provide training for justices of the peace in mediation, court petty sessions and new legislation and policies.There are also plans to conduct training workshops for restorative justice facilitators and volunteers, and facilitate 18 restorative justice cases per quarter.  The programme is also expected to conduct training workshops in Child Diversion Practices.In terms of achievements, the Victim Services Division has provided emergency assistance support to 71 victims, provided trauma and grief therapy sessions to 226 children, provided therapy sessions on abuse to 97 teens, and conducted school-based intervention workshops with 94 beneficiaries.  The Legal Aid Council has trained 282 police officers and justices of the peace on legal aid issues, and expanded service operations with the mobile unit.The Justice Training Institute provided qualifying basic training to 881 justices of the peace, and 35 justices of the peace trained and qualified to practise in the parish of St. Andrew.In addition, the programme continued operation in nine Restorative Justice Centres; provided training to volunteers and school administrators in community justice services; hosted 357 community sensitisation workshops; and facilitated 180 restorative justice cases, of which 148 were finalised.The project is funded by the Government of Jamaica; Global Affairs Canada; Inter-American Development Bank (IDB); and the Department for International Development (DFID).Release: JIS Related Items:last_img read more

Firefighters contain pair of nearby brush fires in Spring Valley

first_imgFirefighters contain pair of nearby brush fires in Spring Valley KUSI Newsroom, June 9, 2018 KUSI Newsroom SAN DIEGO (KUSI) — Firefighters were able to quickly contain two small brush fires east of state Route 125 in the Spring Valley area Saturday afternoon.Both fires were reported after 3 p.m. — one was reported as covering a half-acre in open space near Leigh Avenue, the other covering about four acres in a similar open area near Elkelton Place just a half-mile north,according to San Miguel Fire Protection District Battalion Chief Justin Fuller.The two fires were contained by 3:45 p.m., Fuller said.No structures were threatened and no injuries were reported.It wasn’t clear what caused the fires. Posted: June 9, 2018 Categories: Local San Diego News FacebookTwitterlast_img read more

The Ongoing Threats of California Wildfires

first_img Updated: 8:48 PM July 31, 2018 Ed Lenderman Categories: California News, Local San Diego News, Wildfires FacebookTwitter Posted: July 31, 2018center_img 00:00 00:00 spaceplay / pause qunload | stop ffullscreenshift + ←→slower / faster ↑↓volume mmute ←→seek  . seek to previous 12… 6 seek to 10%, 20% … 60% XColor SettingsAaAaAaAaTextBackgroundOpacity SettingsTextOpaqueSemi-TransparentBackgroundSemi-TransparentOpaqueTransparentFont SettingsSize||TypeSerif MonospaceSerifSans Serif MonospaceSans SerifCasualCursiveSmallCapsResetSave SettingsCALIFORNIA (KUSI) – We haven’t even hit August yet and already 2018 is the most destructive wildfire season on record- and this comes on the heels of the previous record in 2017.KUSI’s Ed Lenderman has more details. The Ongoing Threats of California Wildfires. Ed Lenderman, last_img read more

Google IO We break down the highlights and lowlights The 359 Ep

first_img Review • Pixel 3A review: The cheap phone Google always needed Now playing: Watch this: Sprint 4:38 Best Buy $399 0 Tags See it Walmart See It Smart Home Phones $399 Share your voice See Itcenter_img Mentioned Above Google Pixel 3A (just black) On this podcast, we talk about: Everything from Google I/O, including…The $400 Pixel 3AThe improvements and additions to Google LensChanges to Google AssistantThe Nest Hub Max.   The 3:59 gives you bite-size news and analysis about the top stories of the day, brought to you by the CNET News team in New York and producer Bryan VanGelder. $398 News • Google Pixel 3A: Where is AT&T? Google Pixel 3A See It $399 Check out the extended shows on YouTube. Also, don’t forget to rate and review the podcast on iTunes. Subscribe: iTunes | RSS | Google Play | FeedBurner | SoundCloud |TuneIn | Stitcher Post a comment Google I/O: We break down the highlights and lowlights… CNET may get a commission from retail offers. The Daily Charge Nest Googlelast_img read more

Myanmar harvests abandoned Rohingya fields

first_imgRohingya refugees cross a bamboo bridge as they arrive at a port after crossing from Myanmar, in Teknaf, Bangladesh, 25 October, 2017.Myanmar’s government began harvesting rice from farmland abandoned by Rohingya in northern Rakhine on Saturday, officials said, a move likely to raise concerns about the prospect of return for more than half a million refugees who have fled communal violence in the area.The border region has been emptied of most of its Muslim residents since late August, when Myanmar’s military launched a crackdown on Rohingya rebels that the UN has described as “textbook” ethnic cleansing.Hundreds of villages have been burned to the ground, with more than 600,000 Rohingya — a stateless group in mainly Buddhist Myanmar — fleeing across the border for sanctuary in Bangladesh.Under intense global pressure, Myanmar has agreed to repatriate “scrutinised” refugees who can prove their residence in Rakhine.But details of the plan remain sketchy, seeding concern about who will be allowed back, what they will return to and how they will live in a region where anti-Rohingya hatred remains sky-high.On Saturday the government began harvesting 71,000 acres of rice paddy in Maungdaw — the Rohingya-majority area hit hardest by the violence — according to state media and a local official.”We started harvesting today in Myo Thu Gyi village tract,” Thein Wai, the head of Maungdaw’s Agricultural Department, told AFP.”We are going to harvest some paddy fields of Bengalis who fled to Bangladesh,” he said, using a pejorative term for the Rohingya commonly used by officials and the Buddhist public.The official said he did not know what government would do with the rice or its proceeds.Workers were bused in from other parts of the country to assist with the harvest, according to the state-run Global New Light of Myanmar.- ‘Deeply disturbed’ -Rights groups blasted the government’s harvest as part of a systematic effort to expunge the Rohingya from Rakhine.”Government officials leading the harvest are clearly more concerned about these fields of abandoned rice than they ever were about the Rohingya people who sowed it,” said Human Rights Watch’s Phil Robertson.”This all reinforces a singular, local level Rakhine message to the Rohingya refugees in Bangladesh that what’s yours is now mine, and you’re not welcome back.”Fortify Rights said the harvest was an “outrageous” move by authorities who have a long history of land grabs, particularly in ethnic minority frontiers.Myanmar has denied charges of ethnic cleansing and defended its military campaign as a counter offensive targeting Rohingya militants who attacked police posts in late August, killing at least a dozen.But media, rights groups and the UN have documented consistent accounts from Rohingya refugees of atrocities at the hands of Myanmar security officers, who are accused of killing civilians, raping women and torching homes in the wake of the rebel raids.On Friday UN rights experts said they were “deeply disturbed” after speaking to refugees in Bangladesh.The accounts they heard “point to a consistent, methodical pattern of actions resulting in gross human rights violations affecting hundreds of thousands of people,” said Marzuki Darusman, who chairs the fact-finding mission.Myanmar’s civilian leader Aung San Suu Kyi — who has no control over the powerful army — recently created a committee to oversee resettlement in Rakhine, where tens of thousands of other minority groups were also internally displaced by the violence.The construction of homes for minorities such as the Mro has begun, according to state media, while Suu Kyi’s government has enticed business tycoons to donate to the rebuilding effort.But fear abounds that the rehabilitation will sideline the Rohingya — a group that has suffered under decades of state-backed discrimination and rising Islamophobia.Myanmar refuses to recognise the Rohingya as a distinct minority, rendering the 1.1-million strong group stateless.The army has spread the view that they are foreign “Bengalis” from Bangladesh, despite many having lived in Myanmar for generations.last_img read more

15 Minimum Wage Bill Advances

first_imgBy J. K. Schmid, Special to the AFROA $15 minimum wage bill left Maryland’s general assembly conference committee Tuesday.The bill is a reconciliation of measures that passed both houses by veto-proof margins this session.The senate bill passed 32-15.Sen. Cory V. McCray, a Democrat representing Baltimore City, cast the last vote, a vote in the bill’s favor.“I feel pretty good about it in reference to all the working folks back home in the city of Baltimore,” McCray told the AFRO. “And I know that it’ll help working families across the state of Maryland, so I’m pretty excited.”The bill appears to enjoy wide support across the state from the grass roots to leadership at the county and Baltimore City level.“It’s important to acknowledge that the Howard County Executive Calvin Ball was supportive of this legislative initiative,” McCray said. “Baltimore County’s John Olzewski, Angela Alsobrooks of Prince George’s, Marc Elrich in Montgomery County, but also Madame Mayor, who also came down and gave testimony about Senate Bill 280.”Baltimore Mayor Catherine E. Pugh joins the list of county executives after vetoing a $15 minimum wage bill March 2017.McCray’s ideal bill would seek to secure adequate funding for Maryland’s Developmental Disability Administration hiring programs and demand more exacting verification that tipped workers will earn the mandated minimum wage as it increases (an amendment proposed by Brian Feldman) over the upcoming years.Maryland’s minimum wage currently rests at $10.10 per hour. Both bills call for a general raise in the minimum wage to $15 per hour by January of 2025. The senate bill allowed for exemptions for Maryland’s smallest businesses, giving businesses with fewer than 15 employees until 2028 to raise their minimum wage.“That’s the one amendment that gave me pause, and may get worked out in conference committee,” McCray said. “The year that we’re currently in is 2019, they wouldn’t reach the minimum wage until 2028. So I’m not sure if you would agree, but that’s a long time.”Like many bills it’s a compromise, particularly over when Maryland workers will get a raise in line with Maryland’s ranking as one of the wealthiest states in the nation.“We do understand that businesses have to make adjustments and there is a need to phase the bill in over time,” Ricarra Jones told the AFRO. “Of course, we wish that it would have been sooner, but we are glad that a few years from now, working families will receive much-needed, very long overdue raises.”Jones is a longtime advocate and political organizer for the “Fight for 15.”“It’s going to take them a few extra years than we hoped for, but nevertheless we’re excited that it’s going to be happening and we still have a big hurdle to overcome, with the governor possibly vetoing the legislation when it hits his desk,” Jones said.Maryland’s legislature is only in session for a few more weeks, and Baltimore’s minimum wage bill veto wasn’t overridden due to defections and no-shows and scheduling that allowed the bill to expire.“We’re just hoping that what we’ve been doing is going to continue to work,” Jones said. “Like having these conversations, having actual workers call elected officials and saying ‘hey, I need you to stay strong on this,’ and ‘thank you for your support on this initially, but we have another hurdle and we need you continue to vote for this.’”Hogan has not committed to veto the bill; it could pass with or without his signature.So we’re not planning to switch up our efforts, things have been working so far. Just the pressure from making calls is the most powerful way to get the attention of elected leaders,” Jones said.last_img read more

Live News traffic and weather updates for North Staffordshire South Cheshire on

first_imgStokeonTrent Live – we’re #localandproudStokeonTrent Live – we’re #localandproudVideo Player is loading.Play VideoPauseUnmute0:01/1:20Loaded: 0%0:01Progress: 0%Stream TypeLIVE-1:19 SharePlayback Rate1xChaptersChaptersDescriptionsdescriptions off, selectedSubtitlessubtitles settings, opens subtitles settings dialogsubtitles off, selectedAudio Trackdefault, selectedFullscreenThis is a modal window.Beginning of dialog window. Escape will cancel and close the window.TextColorWhiteBlackRedGreenBlueYellowMagentaCyanTransparencyOpaqueSemi-TransparentBackgroundColorBlackWhiteRedGreenBlueYellowMagentaCyanTransparencyOpaqueSemi-TransparentTransparentWindowColorBlackWhiteRedGreenBlueYellowMagentaCyanTransparencyTransparentSemi-TransparentOpaqueFont Size50%75%100%125%150%175%200%300%400%Text Edge StyleNoneRaisedDepressedUniformDropshadowFont FamilyProportional Sans-SerifMonospace Sans-SerifProportional SerifMonospace SerifCasualScriptSmall CapsReset restore all settings to the default valuesDoneClose Modal DialogEnd of dialog window.Close Modal DialogThis is a modal window. This modal can be closed by pressing the Escape key or activating the close button.PlayMute0:00/0:00Loaded: 0%Progress: 0%Stream TypeLIVE0:00 Playback Rate1xFullscreenClose Modal DialogThis is a modal window. This modal can be closed by pressing the Escape key or activating the close button. UP NEXT:UP NEXT: Click for Sound Watch Next Video Loading Video Unavailable We pay for stories! Send your videos to video@trinitymirror.comWelcome to The Sentinel’s breaking news service bringing you all the latest updates from Stoke-on-Trent and North Staffordshire on Monday, June 4. Our team of reporters will be updating this live service with all the latest on the weather, traffic and travel as well as news, sport and entertainment through the day. We’ll be bringing you the very latest updates in our live news feed below. For the latest news and breaking news visit www.stokeontrentlive.co.uk Get all the big headlines, pictures, analysis, opinion and video on the stories that matter to you. Follow us on Twitter @SOTLive – the official Sentinel account – real news in real time. We’re also on Facebook – your must-see news, features, videos and pictures throughout Stoke-on-Trent, North Staffordshire & South Cheshire. You’ll also find us on Instagram here . Key EventsTravellers return to popular park for SECOND time in nine days13:02Thieves in getaway car hurl stolen dog through car window12:20Biker in his 20s suffers ‘life-changing’ injuries after hitting wall11:4123:19That’s all for todayThanks for being with us. We’ll be bringing you the latest news, weather, travel updates and more from 7am tomorrow. 23:18Who has Staffordshire’s Wes Nelson been paired up with on Love Island? And will she be stolen from him?The highly-anticipated launch episode of this year’s Love Island has now aired – and viewers have met Staffordshire contestant Wes Nelson on ITV2 for the first time.Air hostess Laura appeared to instantly fancy cheeky footballer Wes, stepping forward in the hope of being paired up with him – despite already being partnered up with doctor Alex.Catch up on everything that happened here.Wes Nelson, from Staffordshire, is preparing to enter the villa. (Image: ITV)23:09Woman taken to hospital after fire hits two bungalowsA woman has been taken to hospital after a fire which struck two bungalows this evening.Fire crews from Cannock, Stafford and Penkridge were called at 5.46pm and were on scene for three hours.The full extent of the damage to the properties in Penkridge, near Stafford, has not yet been revealed.We will bring you more information on this incident as we get it.Read the full report here.22:46Inquest due after biker killed in early-morning crashThe inquest is due to take place tomorrow of a biker killed in a crash with a lorry.Mark Oarton was pronounced dead at the scene following the early-morning collision.The 56-year-old, of Astbury Lane Ends, Congleton, had been riding his blue Yamaha motorcycle when he collided with a white Mitsubishi truck on the A523 in Rudyard on April 21 last year. Read the full story here.20:12Firefighters called as smoke in Alsager causes neighbours nuisanceA fire crew from Alsager was called to Meads Road this evening, after reports of significant quantities of smoke in the area.Firefighters arrived just after 5.03pm.A spokesman from Alsager fire station said: “A large quantity of garden refuse was being burnt. It was extinguished using a hose reel jet, as the smoke was deemed a nuisance. Advice was provided to the occupiers.”20:02Holidaymakers warned about travelling to TurkeyStunning Turkey has been a popular destination for Staffordshire holidaymakers for donkey’s years.Whether visiting the Wonders of the Ancient World in Bodrum or exploring the busy streets of Istanbul, it’s at the top of many travellers’ wish lists.But unfortunately Turkey shares a border with some of the World’s most unstable countries, as well as experiencing its fair share of political upheaval itself.And there is potential turmoil predicted for this summer, so if you’ve got a holiday booked, you’ll want to know if it’s going to be safe.Read our report for all you need to know. You should avoid crowds and demonstrations (Image: AP)19:14Couple finally tie the knot – after fire forces wedding party to evacuate town hallA couple had a wedding day to remember – after they were forced to evacuate the venue just as the bride was about to make her way down the aisle.Darren Culshaw was mortified when more than 40 guests were told to get out of Hanley Town Hall this afternoon, just as his fiancé Gia Williams stepped through the door.The alarm was raised at 2.10pm after reports of smoke coming from the basement. But after an anxious wait it was confirmed that a small fire had been started outside and the ceremony was allowed to go ahead.Read the full story here.Darren and Gia Culshaw were happily married at Hanley Town Hall in the end! (Image: Stoke Sentinel Copyright)19:04Man charged over crash which killed ‘beautiful’ Amy, 22A man has been charged with causing death by dangerous driving 11 months after a 22-year-old woman died in a horror crash.Keiron Birchall, aged 27, is also accused of causing serious injury by dangerous driving and other offences following the early-morning smash in Onecote, near Leek, last summer.Former Westwood College student Amy Savage was a passenger in the red Volkswagen Passat when it hit a wall and overturned on the B5053 Bottom Lane, at the junction with Blakelow Road and Fairview Road, at 7.05am on July 2.Amy, from Cheddleton, was pronounced dead at the scene.Read the full story here. Amy Savage was pronounced dead at the scene18:44Man dies after fire breaks out in living roomA man has died after a fire broke out at his home in the early hours of the morning.Crews had been called to the address in Highfields, Stafford, at 6.45am on Saturday (June 2).Firefighters pulled the man free but he was confirmed dead at the scene.An investigation has now revealed the blaze started in the living room after smoking materials were ‘disposed of carelessly’.Read the full report here.18:27Longton stand-off has ‘concluded peacefully’Staffordshire Police have confirmed that the incident at a property on Marlow Road, in Longton, has now ‘concluded peacefully’.A spokesman added: “Thank you to the community for their support and patience.”18:15Armed police at scene of stand-off which has been going on for over two hoursArmed police are at the scene of a stand-off in Longton – which has now been going on for over two hours.A cordon is in place on Marlow Road in Longton, as officers negotiate with a ‘distressed man’ at a house.The incident has been going on since just before 3pm today. Police and ambulance vehicles have been spotted nearby on Marlow Road and St Mary’s Road.Read the full report here. Armed police observing the incident in Longton (Image: Stoke Sentinel Copyright)17:21Reports of collisions in Stoke and NewcastleWe’ve had reports of two different incidents causing hold-ups across Stoke and Newcastle this evening. The A52 Glebe Street Southbound is partially blocked with heavy traffic, due to an incident near Kingsway, by the Glebe pub. There’s also a collision on the A53 Newcastle Road, with the road partly blocked in both directions, near Rock Lane. This one is affecting traffic between Loggerheads and Blackbrook. We’ll keep you updated as we have more information. 17:14This is all that remains of zipline after arsonists strike at popular children’s play areaPolice are hunting arsonists who torched a popular children’s play area.Firefighters were called after a zipline was set alight in the playground Cheddleton late on Saturday night.Residents living nearby had dialled 999 after spotting smoke and flames coming from the Cheadle Road site at 11.35pm.Read the full story here. Part of the zipline was torched on Saturday night13:02KEY EVENTTravellers return to popular park for SECOND time in nine daysTravellers have set up camp on a popular park – for the second time in nine days.The latest caravans moved onto The Wammy, in Knutton, last night – just two days after the last group of travellers left.And it is only two weeks since gypsies took over playing fields on the other side of Lower Milehouse Lane.Now residents are calling for Newcastle Borough Council – which owns the sites – to put up better fencing to stop them getting on the fields.Read more.12:23Roaches fireStaffordshire Fire and Rescue Service attended a large blaze at the Roaches, near Leek, last night.Two crews from Leek are currently dealing with a fire measuring 50m x 50m of moorland on fire in Roach Road. Back packs and beaters in use. 12:20KEY EVENTThieves in getaway car hurl stolen dog through car window (Image: Google Maps)Thieves hurled a stolen dog through a car window and onto a busy road – just moments after pinching the animal from a house.Passers-by looked on in horror as the animal was chucked from the vehicle in Park Lane, Knypersley.It had been pinched just moments earlier from a house on the same street.Read more.11:41KEY EVENTBiker in his 20s suffers ‘life-changing’ injuries after hitting wallA motorbiker in his 20s has suffered ‘life-changing’ injuries after a serious crash. Police and paramedics discovered the man’s motorbike had left Ferndown Drive, in Clayton, and crashed into a wall. It happened at 5.50pm yesterday.A Staffordshire Police spokesman said: “Officers found the motorcyclist had left the road and been involved in a collision. The casualty was taken to the Royal Stoke University Hospital by ambulance and he has suffered life-changing injuries.” Read more. 10:53Crewe trafficA534 Crewe Green Road Eastbound clear before the roadworks at the Crewe Green roundabout. 10:30Virgin TrainsDelays of up to 15 minutes on Virgin Trains West Coast between Nuneaton and Stafford due to signalling problem.09:52A34 Newcastle Roadraffic easing on A34 Newcastle Road Northbound between Child’s Lane and Watery Lane. Temporary traffic lights are in operation.09:08A50 Stoke-on-TrentLane blocked and heavy traffic due to broken down car on A50 Eastbound between A5005 (Longton / Dresden) and A50 / Upper Normacot Road, congestion on A50 to A5005 / Baths Road / Foley Road (Longton / Blurton). Police are at scene dealing. Delays are easing. 08:31LongtonGas main work and restrictions on A5007 Market St between The Strand and A5007 Uttoxeter Rd.Various lane closures and overnight closures throughout the works. Until 12th October. 08:15M6 CheshireOne lane is blocked and traffic is slow due to a broken down car on the M6 northbound between junction 17, Crewe, and junction 18, Middlewich, in the roadworks area. Lane three, of three, is blocked within the roadworks area.08:08A53 Elder RoadVery slow traffic on A53 Elder Road Westbound at Cobridge Traffic Lights.07:52A50 Stoke-on-TrentHeavy traffic on the A50 in both directions between the Sideway Roundabout and Upper Normacot Road.07:51A500 D Road Very slow traffic on A500 D Road Westbound at M6 J15 / A519 Newcastle Road, congestion on A519 to Drayton Road. 07:23A50 UttoxeterQueueing traffic on A50 Eastbound at B5030 Ashbourne Road, congestion to A522 near Uttoxeter and Uperr Tean. There are lane restrictions in place.Find out what happened when this M6 driver was caught on a phonePolice officers stopped a driver on the M6 this morning (June 4) after they spotted him using his mobile phone – they then found a catalogue of other issues. The Central Motorway Policing Group (CMPG), which covers almost 400 miles of motorway, stopped the motorist on the M6 southbound between junction 14, Stafford North, and junction 13, Stafford South, at around 6.20am. While they originally clocked the driver on his mobile phone a roadside breath test then found the man was around two and a half times the legal alcohol limit. Read more.Weather forecastAfter a foggy start today is set to be a warm but cloudy day in Stoke-on-Trent and Staffordshire.The Met Office forecasts there is around a 10 per cent chance of rain at 11am with less than five per cent for the rest of the day. Temperatures are set for highs of 20 °C and lows of 12 °C with the pollen count as high. The forecast says: Misty low cloud will lift and break in the west, but it may stay cloudy in the east throughout the day. There will be some sunny spells in the west, but these may trigger on or two heavy afternoon showers. Tonight, any showers will die away through the evening as misty low cloud returns from the east. The low cloud will linger, giving a murky end to the night.Good morningCould coffee be good for us?Good morning and welcome to the StokeonTrentLive news feed for the day. We will be bringing you all of the latest and breaking news from North Staffordshire and South Cheshire. The video will start in 1Cancel Play now StokeonTrentLive – we’re #localandproudcenter_img Video will play in  Share this video Click to playTap to play Watch againlast_img read more

Building RESTful web services with Kotlin

first_imgKotlin has been eating up the Java world. It has already become a hit in the Android Ecosystem which was dominated by Java and is welcomed with open arms. Kotlin is not limited to Android development and can be used to develop server-side and client-side web applications as well. Kotlin is 100% compatible with the JVM so you can use any existing frameworks such as Spring Boot, Vert.x, or JSF for writing Java applications. In this tutorial, we will learn how to implement RESTful web services using Kotlin. This article is an excerpt from the book ‘Kotlin Programming Cookbook’, written by, Aanand Shekhar Roy and Rashi Karanpuria. Setting up dependencies for building RESTful services In this recipe, we will lay the foundation for developing the RESTful service. We will see how to set up dependencies and run our first SpringBoot web application. SpringBoot provides great support for Kotlin, which makes it easy to work with Kotlin. So let’s get started. We will be using IntelliJ IDEA and Gradle build system. If you don’t have that, you can get it from https://www.jetbrains.com/idea/. How to do it… Let’s follow the given steps to set up the dependencies for building RESTful services: First, we will create a new project in IntelliJ IDE. We will be using the Gradle build system for maintaining dependency, so create a Gradle project: When you have created the project, just add the following lines to your build.gradle file. These lines of code contain spring-boot dependencies that we will need to develop the web app: buildscript { ext.kotlin_version = ‘1.1.60’ // Required for Kotlin integration ext.spring_boot_version = ‘1.5.4.RELEASE’ repositories { jcenter() } dependencies { classpath “org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version” // Required for Kotlin integration classpath “org.jetbrains.kotlin:kotlin-allopen:$kotlin_version” // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin classpath “org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version” }} apply plugin: ‘kotlin’ // Required for Kotlin integrationapply plugin: “kotlin-spring” // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-pluginapply plugin: ‘org.springframework.boot’jar {baseName = ‘gs-rest-service’version = ‘0.1.0’}sourceSets {main.java.srcDirs += ‘src/main/kotlin’}repositories {jcenter()}dependencies {compile “org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version” // Required for Kotlin integrationcompile ‘org.springframework.boot:spring-boot-starter-web’testCompile(‘org.springframework.boot:spring-boot-starter-test’)} Let’s now create an App.kt file in the following directory hierarchy: It is important to keep the App.kt file in a package (we’ve used the college package). Otherwise, you will get an error that says the following: ** WARNING ** : Your ApplicationContext is unlikely to start due to a `@ComponentScan` of the default package. The reason for this error is that if you don’t include a package declaration, it considers it a “default package,” which is discouraged and avoided. Now, let’s try to run the App.kt class. We will put the following code to test if it’s running: @SpringBootApplicationopen class App {}fun main(args: Array) {SpringApplication.run(App::class.java, *args)} Now run the project; if everything goes well, you will see output with the following line at the end: Started AppKt in 5.875 seconds (JVM running for 6.445) We now have our application running on our embedded Tomcat server. If you go to http://localhost:8080, you will see an error as follows: The preceding error is 404 error and the reason for that is we haven’t told our application to do anything when a user is on the / path. Creating a REST controller In the previous recipe, we learned how to set up dependencies for creating RESTful services. Finally, we launched our backend on the http://localhost:8080 endpoint but got 404 error as our application wasn’t configured to handle requests at that path (/). We will start from that point and learn how to create a REST controller. Let’s get started! We will be using IntelliJ IDE for coding purposes. For setting up of the environment, refer to the previous recipe. You can also find the source in the repository at https://gitlab.com/aanandshekharroy/kotlin-webservices. How to do it… In this recipe, we will create a REST controller that will fetch us information about students in a college. We will be using an in-memory database using a list to keep things simple: Let’s first create a Student class having a name and roll number properties: package collegeclass Student() {lateinit var roll_number: Stringlateinit var name: Stringconstructor(roll_number: String,name: String): this() {this.roll_number = roll_numberthis.name = name}} Next, we will create the StudentDatabase endpoint, which will act as a database for the application: @Componentclass StudentDatabase { private val students = mutableListOf()} Note that we have annotated the StudentDatabase class with @Component, which means its lifecycle will be controlled by Spring (because we want it to act as a database for our application). We also need a @PostConstruct annotation, because it’s an in-memory database that is destroyed when the application closes. So we would like to have a filled database whenever the application launches. So we will create an init method, which will add a few items into the “database” at startup time: @PostConstructprivate fun init() { students.add(Student(“2013001″,”Aanand Shekhar Roy”)) students.add(Student(“2013165″,”Rashi Karanpuria”))} Now, we will create a few other methods that will help us deal with our database: getStudent: Gets the list of students present in our database: fun getStudents()=students addStudent: This method will add a student to our database: fun addStudent(student: Student): Boolean { students.add(student) return true} Now let’s put this database to use. We will be creating a REST controller that will handle the request. We will create a StudentController and annotate it with @RestController. Using @RestController is simple, and it’s the preferred method for creating MVC RESTful web services. Once created, we need to provide our database using Spring dependency injection, for which we will need the @Autowired annotation. Here’s how our StudentController looks: @RestControllerclass StudentController { @Autowired private lateinit var database: StudentDatabase} Now we will set our response to the / path. We will show the list of students in our database. For that, we will simply create a method that lists out students. We will need to annotate it with @RequestMapping and provide parameters such as path and request method (GET, POST, and such): @RequestMapping(“”, method = arrayOf(RequestMethod.GET))fun students() = database.getStudents() This is what our controller looks like now. It is a simple REST controller: package collegeimport org.springframework.beans.factory.annotation.Autowiredimport org.springframework.web.bind.annotation.RequestMappingimport org.springframework.web.bind.annotation.RequestMethodimport org.springframework.web.bind.annotation.RestController@RestControllerclass StudentController {@Autowiredprivate lateinit var database: StudentDatabase@RequestMapping(“”, method = arrayOf(RequestMethod.GET))fun students() = database.getStudents()} Now when you restart the server and go to http://localhost:8080, we will see the response as follows: As you can see, Spring is intelligent enough to provide the response in the JSON format, which makes it easy to design APIs. Now let’s try to create another endpoint that will fetch a student’s details from a roll number: @GetMapping(“/student/{roll_number}”)fun studentWithRollNumber( @PathVariable(“roll_number”) roll_number:String) = database.getStudentWithRollNumber(roll_number) Now, if you try the http://localhost:8080/student/2013001 endpoint, you will see the given output: {“roll_number”:”2013001″,”name”:”Aanand Shekhar Roy”} Next, we will try to add a student to the database. We will be doing it via the POST method: @RequestMapping(“/add”, method = arrayOf(RequestMethod.POST))fun addStudent(@RequestBody student: Student) = if (database.addStudent(student)) student else throw Exception(“Something went wrong”) There’s more… So far, our server has been dependent on IDE. We would definitely want to make it independent of an IDE. Thanks to Gradle, it is very easy to create a runnable JAR just with the following: ./gradlew clean bootRepackage The preceding command is platform independent and uses the Gradle build system to build the application. Now, you just need to type the mentioned command to run it: java -jar build/libs/gs-rest-service-0.1.0.jar You can then see the following output as before: Started AppKt in 4.858 seconds (JVM running for 5.548) This means your server is running successfully. Creating the Application class for Spring Boot The SpringApplication class is used to bootstrap our application. We’ve used it in the previous recipes; we will see how to create the Application class for Spring Boot in this recipe. We will be using IntelliJ IDE for coding purposes. To set up the environment, read previous recipes, especially the Setting up dependencies for building RESTful services recipe. How to do it… If you’ve used Spring Boot before, you must be familiar with using @Configuration, @EnableAutoConfiguration, and @ComponentScan in your main class. These were used so frequently that Spring Boot provides a convenient @SpringBootApplication alternative. The Spring Boot looks for the public static main method, and we will use a top-level function outside the Application class. If you noted, while setting up the dependencies, we used the kotlin-spring plugin, hence we don’t need to make the Application class open. Here’s an example of the Spring Boot application: package collegeimport org.springframework.boot.SpringApplicationimport org.springframework.boot.autoconfigure.SpringBootApplication@SpringBootApplicationclass Applicationfun main(args: Array) {SpringApplication.run(Application::class.java, *args)} The Spring Boot application executes the static run() method, which takes two parameters and starts a autoconfigured Tomcat web server when Spring application is started. When everything is set, you can start the application by executing the following command: ./gradlew bootRun If everything goes well, you will see the following output in the console: This is along with the last message—Started AppKt in xxx seconds. This means that your application is up and running. In order to run it as an independent server, you need to create a JAR and then you can execute as follows: ./gradlew clean bootRepackage Now, to run it, you just need to type the following command: java -jar build/libs/gs-rest-service-0.1.0.jar We learned how to set up dependencies for building RESTful services, creating a REST controller, and creating the application class for Spring boot. If you are interested in learning more about Kotlin then be sure to check out the ‘Kotlin Programming Cookbook’. Read Next: Build your first Android app with Kotlin 5 reasons to choose Kotlin over Java Getting started with Kotlin programming Forget C and Java. Learn Kotlin: the next universal programming languagelast_img