Learn English from News Today: 2021-02-08

The main words:

demand, impeachment, Republican, Ron, Wright, Texas, first, sitting, member, Congress, die, splinter, relief, bill, Washington, child, tax, credits, India, glacier, people, dead, panel, probe

The top six news:

  • Trump lawyers demand dismissal on impeachment | TheHill – The Hill
  • Republican Rep. Ron Wright of Texas is first sitting member of Congress to die of Covid – CNBC
  • Democratic lawmakers splinter over criteria for $1,400 stimulus payments as Biden relief bill advances – The Washington Post
  • Democrats want $3,600 per child tax credits in Covid relief bill – NBC News
  • India glacier burst: Rescue workers looking for 171 people feared dead in Uttarakhand – CNN
  • – House panel renews probe into Trump administration’s interference with covid response – The Washington Post

Analyzing the main words:

Word.:  demand
Tag. VBP
Def.:  an urgent or peremptory request
synonyms:  demand, requirement
antonyms:  obviate, supply

Word.:  impeachment
Tag. NN
Def.:  a formal document charging a public official with misconduct in office
synonyms:  impeachment
antonyms:  

Word.:  Republican
Tag. NNP
Def.:  a member of the Republican Party
synonyms:  Republican_River, republican, Republican
antonyms:  
 
Word.:  Wright
Tag. NNP
Def.:  United States writer of detective novels (1888-1939)
synonyms:  Willard_Huntington_Wright, Richard_Wright, S._S._Van_Dine, Wright
antonyms:  

Word.:  Texas
Tag. NNP
Def.:  the second largest state; located in southwestern United States on the Gulf of Mexico
synonyms:  TX, Texas, Lone-Star_State
antonyms:  

Word.:  first
Tag. JJ
Def.:  the first or highest in an ordering or series
synonyms:  number_one, first, number_1
antonyms:  second, middle, last

Word.:  sitting
Tag. VBG
Def.:  (photography) the act of assuming a certain position (as for a photograph or portrait)
synonyms:  posing, sitting, seance
antonyms:  arise, stand, standing

Word.:  member
Tag. NN
Def.:  one of the persons who compose a social group (especially individuals who have joined and participate in a group organization)
synonyms:  member, extremity, fellow_member, appendage
antonyms:  nonmember

Word.:  Congress
Tag. NNP
Def.:  the legislature of the United States government
synonyms:  US_Congress, United_States_Congress, U.S._Congress, congress, Congress
antonyms:  


Word.:  splinter
Tag. NN
Def.:  a small thin sharp bit or wood or glass or metal
synonyms:  break_away, secede, splinter, sliver
antonyms:  

Word.:  relief
Tag. NN
Def.:  the feeling that comes when something burdensome is removed or reduced
synonyms:  relief, alleviation, ease, assuagement
antonyms:  

Word.:  bill
Tag. NN
Def.:  a statute in draft before it becomes law
synonyms:  invoice, measure, account, bill
antonyms:  

Word.:  Washington
Tag. NNP
Def.:  the capital of the United States in the District of Columbia and a tourist mecca; George Washington commissioned Charles L'Enfant to lay out the city in 1791
synonyms:  Washington, capital_of_the_United_States, American_capital, Washington_D.C.
antonyms:  

Word.:  child
Tag. NN
Def.:  a young person of either sex
synonyms:  kid, child, youngster, shaver, minor
antonyms:  parent

Word.:  tax
Tag. NN
Def.:  charge against a citizen's person or property or activity for the support of government
synonyms:  taxation, revenue_enhancement, tax
antonyms:  

Word.:  credits
Tag. NNS
Def.:  a list of acknowledgements of those who contributed to the creation of a film (usually run at the end of the film)
synonyms:  credit, credits, recognition
antonyms:  debit, cash

Word.:  India
Tag. NNP
Def.:  a republic in the Asian subcontinent in southern Asia; second most populous country in the world; achieved independence from the United Kingdom in 1947
synonyms:  Bharat, India, Republic_of_India
antonyms:  

Word.:  glacier
Tag. NN
Def.:  a slowly moving mass of ice
synonyms:  glacier
antonyms:  

Word.:  people
Tag. NNS
Def.:  (plural) any group of human beings (men or women or children) collectively
synonyms:  citizenry, multitude, people
antonyms:  

Word.:  dead
Tag. JJ
Def.:  people who are no longer living
synonyms:  dead, all_in
antonyms:  live, alive, living

Word.:  panel
Tag. NN
Def.:  sheet that forms a distinct (usually flat and rectangular) section or component of something
synonyms:  venire, panel, jury
antonyms:  

Word.:  probe
Tag. NN
Def.:  an inquiry into unfamiliar or questionable activities
synonyms:  probe, investigation
antonyms:  

{ Add a Comment }

updateSearchResults function iOS search in tableview by searchController

 guard let searchText = searchController.searchBar.text?.lowercased() else { return }
          DBReference.queryOrdered(byChild: "name").queryStarting(atValue: searchText).queryEnding(atValue: searchText+"\u{f8ff}")
            .observe(.value, with: {
        snapshot in
        var newItems: [WordsItem] = []
        for item in snapshot.children {
          let groceryItem = GroceryItem(snapshot: item as! DataSnapshot)
          newItems.append(WordsItem)
        }
        self.items = newItems
        self.tableView.reloadData()
      })

{ Add a Comment }

Learn English from News 2021-02-04 15:24

The main words:

ahead, vote, remove, Greene, impeachment, request, former, testify, York, limit, Yemen, war, move, age, group, most, responsible, spread, Cleveland, criminal, conspiracy, probe, India, farm, protest

The top six news:

  • ‘Profoundly concerned’: Pelosi rebukes GOP leaders ahead of vote to remove Greene from committees – NBC News
  • House impeachment managers request former President Donald Trump testify at trial – CNN
  • Smartmatic Files $2.7 Billion Lawsuit Against Fox News – The New York Times
  • Biden to limit offensive U.S. role in Yemen war, move for LGBTQ rights – Politico
  • This age group is most responsible for COVID-19 spread, study says – WJW FOX 8 News Cleveland
  • Greta Thunberg faces criminal conspiracy probe in India over farm protest tweets – New York Post

Analyzing the main words:

Word.: ahead
Tag. RB
Def.: having the leading position or higher score in a contest
synonyms: leading, ahead, in_the_lead, in_front
antonyms: back, backward

Word.: vote
Tag. NN
Def.: a choice that is made by counting the number of people in favor of each alternative
synonyms: voting, ballot, balloting, vote
antonyms:

Word.: remove
Tag. VB
Def.: degree of figurative distance or separation; or
synonyms: remove, take, withdraw, take_away
antonyms:

Word.: Greene
Tag. NNP
Def.: English novelist and Catholic (1904-1991)
synonyms: Greene, Graham_Greene, Henry_Graham_Greene
antonyms:

Word.: impeachment
Tag. NN
Def.: a formal document charging a public official with misconduct in office
synonyms: impeachment
antonyms:

Word.: request
Tag. VBP
Def.: a formal message requesting something that is submitted to an authority
synonyms: petition, postulation, request, asking
antonyms:

Word.: former
Tag. JJ
Def.: the first of two or the first mentioned of two
synonyms: former, old, erstwhile
antonyms: latter

Word.: testify
Tag. VB
Def.: give testimony in a court of law
synonyms: take_the_stand, bear_witness, attest, testify
antonyms:

Word.: York
Tag. NNP
Def.: the English royal house (a branch of the Plantagenet line) that reigned from 1461 to 1485; its emblem was a white rose
synonyms: House_of_York, York
antonyms:

Word.: limit
Tag. VB
Def.: the greatest possible degree of something
synonyms: boundary, bound, terminal_point, terminus_ad_quem, limit
antonyms:

Word.: Yemen
Tag. NNP
Def.: a republic on the southwestern shores of the Arabian Peninsula on the Indian Ocean; formed in 1990
synonyms: Yemen, Republic_of_Yemen
antonyms:

Word.: war
Tag. NN
Def.: the waging of armed conflict against an enemy
synonyms: war, warfare, state_of_war
antonyms: make_peace, peace

Word.: move
Tag. NN
Def.: the act of deciding to do something
synonyms: motion, movement, relocation, move
antonyms: rest, stay_in_place, refrain, stay, stand_still

Word.: age
Tag. NN
Def.: how long something has existed
synonyms: historic_period, eld, age
antonyms: rejuvenate

Word.: group
Tag. NN
Def.: any number of entities (members) considered as a unit
synonyms: chemical_group, group, radical, grouping
antonyms:

Word.: most
Tag. RBS
Def.: (superlative of many' used with count nouns and often preceded bythe’) quantifier meaning the greatest in number
synonyms: to_the_highest_degree, most
antonyms: fewest, least

Word.: responsible
Tag. JJ
Def.: worthy of or requiring responsibility or trust; or held accountable
synonyms: responsible_for, responsible, creditworthy
antonyms: irresponsible

Word.: spread
Tag. NN
Def.: process or result of distributing or extending over a wide expanse of space
synonyms: spread, ranch, spreading, gap
antonyms: gather, fold

Word.: Cleveland
Tag. NNP
Def.: the largest city in Ohio; located in northeastern Ohio on Lake Erie; a major Great Lakes port
synonyms: President_Cleveland, Cleveland, Grover_Cleveland, Stephen_Grover_Cleveland
antonyms:

Word.: criminal
Tag. JJ
Def.: someone who has committed a crime or has been legally convicted of a crime
synonyms: criminal, crook, malefactor, felon, outlaw
antonyms:

Word.: conspiracy
Tag. NN
Def.: a secret agreement between two or more people to perform an unlawful act
synonyms: conspiracy, confederacy, cabal
antonyms:

Word.: probe
Tag. NN
Def.: an inquiry into unfamiliar or questionable activities
synonyms: probe, investigation
antonyms:

Word.: India
Tag. NNP
Def.: a republic in the Asian subcontinent in southern Asia; second most populous country in the world; achieved independence from the United Kingdom in 1947
synonyms: India, Republic_of_India, Bharat
antonyms:

Word.: farm
Tag. NN
Def.: workplace consisting of farm buildings and cultivated land as a unit
synonyms: raise, farm, grow
antonyms:

Word.: protest
Tag. NN
Def.: a formal and solemn declaration of objection
synonyms: dissent, protestation, objection, protest
antonyms:

{ Add a Comment }

Learn English from News 2021-02-01 14:23

The main words:

meet, Republican, float, smaller, relief, plan, Myanmar, file, resolution, strip, Taylor, Greene, committee, Hudson, York, Chicago, mother, school, killing, mentally

The top six news:

  • Biden will meet with 10 Republican senators as they float smaller $618 billion Covid relief plan – CNBC
  • Myanmar Coup: With Aung San Suu Kyi Detained, Military Takes Control – NPR
  • Winter Storm Blankets Northeast U.S., Halting Travel And Vaccine Appointments – NPR
  • House Democrats file resolution to strip Marjorie Taylor Greene of committee assignments – NBC News
  • Governor Cuomo Declares State of Emergency Throughout Hudson Valley, New York City and Long Island – New Yorkers Encouraged To Avoid Travel – ny.gov
  • – Chicago mother says coronavirus public school shutdowns ‘killing our kids mentally’ – Fox News

Analyzing the main words:

Word.: meet
Tag. VB
Def.: a meeting at which a number of athletic contests are held
synonyms: sports_meeting, meet, run_into, encounter
antonyms: diverge

Word.: Republican
Tag. JJ
Def.: a member of the Republican Party
synonyms: republican, Republican_River, Republican
antonyms:

Word.: float
Tag. VBP
Def.: the time interval between the deposit of a check in a bank and its payment
synonyms: ice-cream_soda, float, ice-cream_float
antonyms: sink

Word.: smaller
Tag. JJR
Def.: small or little relative to something else
synonyms: littler, smaller, small, minor, little
antonyms: big, large

Word.: relief
Tag. NN
Def.: the feeling that comes when something burdensome is removed or reduced
synonyms: relief, alleviation, ease, assuagement
antonyms:

Word.: plan
Tag. NN
Def.: a series of steps to be carried out or goals to be accomplished
synonyms: program, plan, programme, design
antonyms:

Word.: Myanmar
Tag. NNP
Def.: a mountainous republic in southeastern Asia on the Bay of Bengal
synonyms: Union_of_Burma, Myanmar, Burma
antonyms:

Word.: file
Tag. NN
Def.: a set of related records (either written or electronic) kept together
synonyms: single_file, Indian_file, data_file, file
antonyms:

Word.: resolution
Tag. NN
Def.: a formal expression by a meeting; agreed to by a vote
synonyms: declaration, resolution, resolve, resolving_power
antonyms: irresoluteness, preparation

Word.: strip
Tag. NN
Def.: a relatively long narrow piece of something
synonyms: airstrip, strip, flight_strip, slip
antonyms: dress

Word.: Taylor
Tag. NNP
Def.: United States composer and music critic (1885-1966)
synonyms: Deems_Taylor, Elizabeth_Taylor, Taylor, Joseph_Deems_Taylor
antonyms:

Word.: Greene
Tag. NNP
Def.: English novelist and Catholic (1904-1991)
synonyms: Greene, Henry_Graham_Greene, Graham_Greene
antonyms:

Word.: committee
Tag. NN
Def.: a special group delegated to consider some matter; – Milton Berle
synonyms: commission, citizens_committee, committee
antonyms:

Word.: Hudson
Tag. NNP
Def.: a New York river; flows southward into New York Bay; explored by Henry Hudson early in the 17th century
synonyms: Hudson_River, W._H._Hudson, William_Henry_Hudson, Hudson
antonyms:

Word.: York
Tag. NNP
Def.: the English royal house (a branch of the Plantagenet line) that reigned from 1461 to 1485; its emblem was a white rose
synonyms: House_of_York, York
antonyms:

Word.: Chicago
Tag. NNP
Def.: largest city in Illinois; a bustling Great Lakes port that extends 26 miles along the southwestern shoreline of Lake Michigan
synonyms: Newmarket, Michigan, Windy_City, Chicago
antonyms:

Word.: mother
Tag. NN
Def.: a woman who has given birth to a child (also used as a term of address to your mother)
synonyms: female_parent, mother
antonyms: father, male_parent

Word.: school
Tag. NN
Def.: an educational institution
synonyms: schooling, schoolhouse, school
antonyms:

Word.: killing
Tag. VBG
Def.: an event that causes someone to die
synonyms: putting_to_death, violent_death, kill, killing
antonyms:

Word.: mentally
Tag. RB
Def.: in your mind
synonyms: mentally
antonyms:

{ Add a Comment }

Learn English from News 2021-01-30 15:35

weather, storm, heavy, snow, dangerous, conditions, rule, wear, face, heiress, share, money, rally, ready, probe, riot, evidence, coordination, assault, Washington, January, release, man, Afghanistan

Here are five News Headlines from today’s news.

  • N.J. weather: Winter storm warnings issued with heavy wind-driven snow, dangerous driving conditions expected – NJ.com
  • CDC issues rule requiring travelers to wear face masks – POLITICO
  • Report: Publix heiress gave ‘lion’s share’ of money for Jan. 6 Trump rally – WJXT News4JAX
  • ‘Be ready to fight’: FBI probe of U.S. Capitol riot finds evidence detailing coordination of an assault – The Washington Post
  • $1,400 stimulus checks: Where we stand as January ends – fox8.com
  • Biden faces calls to secure release of U.S. man in Afghanistan – NBC News

Here an analysis of the words that came in the news headline for today:

weather:
Def.: the atmospheric conditions that comprise the state of the atmosphere in terms of temperature and wind and clouds and precipitation
synonyms: atmospheric_condition, weather, weather_condition, conditions
antonyms:

storm:
Def.: a violent weather condition with winds 64-72 knots (11 on the Beaufort scale) and precipitation and thunder and lightning
synonyms: storm, tempest, violent_storm
antonyms:

heavy:
Def.: an actor who plays villainous roles
synonyms: heavy
antonyms: light

snow:
Def.: precipitation falling from clouds in the form of ice crystals
synonyms: C._P._Snow, Snow, snow, snowfall
antonyms:

dangerous:
Def.: involving or causing danger or risk; liable to hurt or harm
synonyms: grave, dangerous, unsafe, grievous
antonyms: safe

conditions
Def.: the prevailing context that influences the performance or the outcome of a process
synonyms: weather, weather_condition, conditions
antonyms:

rule:
Def.: a principle or condition that customarily governs behavior
synonyms: rule, convention, pattern, normal, regulation
antonyms:

wear:
Def.: impairment resulting from long use
synonyms: clothing, article_of_clothing, vesture, wear
antonyms: refresh

face
Def.: the front of the human head from the forehead to the chin and ear to ear
synonyms: look, expression, human_face, face, aspect
antonyms: back, avoid

heiress
Def.: a female heir
synonyms: heiress, inheritress, inheritrix
antonyms:

share
Def.: assets belonging to or due to or contributed by an individual person or group
synonyms: part, share, percentage, portion
antonyms:

money
Def.: the most common medium of exchange; functions as legal tender
synonyms: money
antonyms:

rally
Def.: a large gathering of people intended to arouse enthusiasm
synonyms: mass_meeting, rally, rallying
antonyms: demobilize

ready
Def.: poised for action
synonyms: make, ready, cook, fix
antonyms: unready

probe
Def.: an inquiry into unfamiliar or questionable activities
synonyms: probe, investigation
antonyms:

riot
Def.: a public act of violence by an unruly mob
synonyms: public_violence, riot, belly_laugh, rioting
antonyms:

evidence
Def.: your basis for belief or disbelief; knowledge on which to base belief
synonyms: attest, grounds, evidence
antonyms:

coordination
Def.: the skillful and effective interaction of movements
synonyms: coordination
antonyms: incoordination

assault
Def.: close fighting during the culmination of a military attack
synonyms: Assault, violation, assault, rape
antonyms:

Washington
Def.: the capital of the United States in the District of Columbia and a tourist mecca; George Washington commissioned Charles L’Enfant to lay out the city in 1791
synonyms: Washington, Washington_D.C., American_capital, capital_of_the_United_States
antonyms:

January
Def.: the first month of the year; begins 10 days after the winter solstice
synonyms: Jan, January
antonyms:

release
Def.: merchandise issued for sale or public showing (especially a record or film)
synonyms: release, liberation, freeing
antonyms: hold, block, freeze, confine

man:
Def.: an adult person who is male (as opposed to a woman)
synonyms: military_man, man, adult_male, serviceman
antonyms: civilian, woman

Afghanistan
Def.: a mountainous landlocked country in central Asia; bordered by Iran to the west and Russia to the north and Pakistan to the east and south
synonyms: Afghanistan, Islamic_State_of_Afghanistan
antonyms:

{ Add a Comment }

How to add Google Admob banner to the first row in UItableview, Swift IOS

step 1: create file AdCell.swift


import UIKit
import GoogleMobileAds

class AdCell: UITableViewCell {
    override func awakeFromNib() {
        super.awakeFromNib()
        self.backgroundColor = .clear
    }
    
    class func cellBannerView(rootVC: UIViewController, frame: CGRect) -> GADBannerView {
           let bannerView = GADBannerView()
           bannerView.frame = frame
           bannerView.rootViewController = rootVC
           bannerView.adUnitID = "ca-app-pub-3940256099942544/6300978111"
        bannerView.adSize = GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(frame.size.width)
           return bannerView
       }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
    }
}

step 2: use the Adcell class:


 let bannerViewHeight = GADBannerView(adSize: kGADAdSizeBanner).frame.size.height



 override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
             return bannerViewHeight + 15
    }

    override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
             let cell = AdCell(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: bannerViewHeight))                     
             let bannerView = AdCell.cellBannerView(rootVC: self, frame:cell.bounds)
             bannerView.translatesAutoresizingMaskIntoConstraints = false
             cell.addSubview(bannerView)
                                
             bannerView.centerXAnchor.constraint(equalTo: cell.centerXAnchor).isActive = true
             bannerView.centerYAnchor.constraint(equalTo: cell.centerYAnchor, constant: -3).isActive = true

             let request = GADRequest()
             bannerView.load(request)

             return cell
        }

{ Add a Comment }

How to show an Alert message when there is no internet connection, swift code

Use this code to show an alert to the user when there is no internet connection. SWIFT IOS code

import SystemConfiguration

override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        if isInternetAvailable() {
            observeUsers()
        } else {
            let alert = UIAlertController(title: "No Connection", message: "No internet connection, connect to the internet and try again.", preferredStyle: .alert)
            alert.addAction(UIAlertAction(title: "ok", style: .default, handler: nil))
            present(alert, animated: true, completion: nil)
            
            return
        }
        
    }



  func isInternetAvailable() -> Bool {
        var zeroAddress = sockaddr_in()
        zeroAddress.sin_len = UInt8(MemoryLayout.size(ofValue: zeroAddress))
        zeroAddress.sin_family = sa_family_t(AF_INET)
        
        let defaultRouteReachability = withUnsafePointer(to: &zeroAddress) {
            $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {zeroSockAddress in
                SCNetworkReachabilityCreateWithAddress(nil, zeroSockAddress)
            }
        }
        
        var flags = SCNetworkReachabilityFlags()
        if !SCNetworkReachabilityGetFlags(defaultRouteReachability!, &flags) {
            return false
        }
        let isReachable = flags.contains(.reachable)
        let needsConnection = flags.contains(.connectionRequired)
        return (isReachable && !needsConnection)
    }


{ Add a Comment }