I am familiar with Newton’s approximation method
for numbers that can be stored as standard data types (long long, double, …).
Could someone explain an algorithm for large numbers?
August 29, 2015 at 10:23AM
Hi, I’m struggling with this question, please help me.
Convert the 7-bit binary code 011 1101 into a suitable Hamming code that can detect and correct a single bit error. Use EVEN parity. Write your final answer as a 3-digit hexadecimal.
I am pretty new in these whole thing so I am trying to understand what to do. In my understanding, if a hamming code has been given, for example 01110, we put these numbers into data bits and find the parity bit and find the SECDED code at last. And if a SECDED code has been given, we again put the given numbers in SECDED to parities and check if they are even or odd and figure where the error is.
So in this question, is it asking us to work 011 1101 is a given SECDED and find the error?
011 1101 is odd so there’s an error but when I put these numbers to parities for instance,
Bit # 6 5 4 3 2 1 0
D3 D2 P3 D1 P2 P1 P0
P1 1 1 0 no error
P2 0 1 1 no error
P3 0 1 1 no error
P0 0 1 1 1 1 0 1 SECDED CODE there’s an error
I’m so confused right now….
August 29, 2015 at 10:21AM
Currently it’s 73 degrees Fahrenheit and Fair outside
NORWOOD, Mass. (AP) — Donald Trump held a $100-per-person campaign event — which he repeatedly insisted wasn’t a fundraiser — outside Boston on Friday evening as he backpedaled on his previous pledge not to accept contributions for his campaign.
“This is not a fundraiser tonight, just so you understand,” Trump told reporters at the sprawling Norwood property owned by local car dealership owner Ernie Boch Jr. A combination of die-hard fans and those curious to see the spectacle were treated to food from chef Tony Ambrose and a live cover band, in addition to a speech from the billionaire businessman and Republican candidate.
Trump said the money raised was only being used to offset the costs of the event and said people attending could choose to pay whatever they wanted.
That’s despite multiple signs that were posted at the property’s entrance telling those arriving, “Please have cash ready or make checks payable to: Donald J. Trump for President, Inc.” and “Entry Fee $100 Per Person.”
The event comes as Trump has reversed course on his early pledge to self-fund his campaign entirely.
“I don’t need anybody’s money,” he said in his announcement speech, declaring: “I’m using my own money. I’m not using the lobbyists. I’m not using donors. I don’t care. I’m really rich.”
But Trump’s tone has changed in recent weeks as he’s warmed to the idea, adding a contributions page to his website and attending a fundraiser held by a super PAC supporting his candidacy.
“I actually like the idea of investing in a campaign,” he told CBS’ “Face the Nation” Sunday. “But it has to be no strings attached.”
Trump campaign manager Corey Lewandowski said earlier Friday the campaign had received tens of thousands in small-dollar donations in the last eight weeks from people eager to contribute to Trump’s effort. But he said the campaign had not made any efforts to solicit money and said contributions would remain “a very small portion” of the campaign’s funds.
Boch said the event had “started out as a fundraiser because (that’s) the usual thing for candidates.” But Boch added: “It wasn’t like that with Mr. Trump. He likes the idea of having people come in. So the money was not what he was interested in.”
Speaking to attendees under a giant tent on Boch’s yard later in the event, Trump continued to boast about all the contributions he claims he’s turned down.
“I feel a little bit like, ‘What’s going on?'” he said. “We’re turning down millions of dollars.”
He also launched into a personal attack against Huma Abedin, a top aide to Democratic front-runner Hillary Rodham Clinton, who has recently been swept up in the controversy over Clinton’s use of a private email server while she was secretary of state.
Trump, mispronouncing Abedin’s first name as “Uma,” suggested Abedin had shared classified information with her husband, former New York Rep. Anthony Weiner, who resigned after sending explicit images of himself to women he’d met online. Trump called Weiner “one of the great sleazebags of our time.”
Clinton spokesman Nick Merrill responded with a statement saying, “Trump has spent the summer saying offensive things about women, but there is no place for patently false, personal attacks towards a staff member.”
“He should be ashamed of himself, and others in his own party should take a moment to stand up to him and draw the line for once,” Merrill said.
August 29, 2015 at 09:46AM
HOUSTON (AP) — 8:40 a.m.
Authorities say they are speaking with a person who has information about the fatal shooting of a Harris County sheriff’s deputy.
Sheriff’s office spokesman Deputy Thomas Gilliland said the person is not under arrest, nor is he a suspect or a person of interest.
No one has been charged and the search continues for the suspect.
Police say Deputy Darren Goforth was pumping gas about 8:30 p.m. Friday at a suburban Houston gas station when a man approached him from behind and fired several shots. He was pronounced dead at the scene.
The male suspect is described between 20 and 25 years old and about 5-foot-10 to 6 feet tall, was wearing red shorts and a white T-shirt and driving a red or maroon pickup truck.
August 29, 2015 at 09:41AM
Beijing (AFP) – Usain Bolt capped a memorable world championships by winning a third gold medal on Saturday as anchor of the Jamaican 4x100m relay team, while fierce rivals the United States were disqualified.
Bolt ran the final leg of the relay at a packed Bird’s Nest stadium, hurtling through the line in 37.36 seconds after teammates Nesta Carter, Asafa Powell and Nickel Ashmeade had successfully got the baton around.
The victory gave Bolt his 11th world gold medal — the only one missing from his collection being the 100m in the 2011 Daegu worlds when he was disqualified after a false start.
The US quartet of 100m bronze and silver medallists Trayvon Bromell and Justin Gatlin, and fellow finalists Tyson Gay and Mike Rodgers were initially awarded silver but later disqualified.
China, headed by individual 100m finalist Bingtian Su, delighted the home crowd when they were upgraded to a shock silver in 38.01sec while Canada were awarded bronze (38.13).
August 29, 2015 at 09:29AM
“No Escape” is a film so hell-bent on giving its audience a nightmarish experience that it pays no mind to its inherently racist premise.
The film follows an American family (headed by Owen Wilson and Lake Bell) as they move from Texas to an anonymous Asian country (it’s never explicitly mentioned, but we later find out it’s close to Vietnam) and with their two young daughters get caught in the middle of a violent coup. They must do whatever it takes to survive while all the Americans are specifically hunted and killed.
While it does achieve its desired level of intensity, “No Escape” is just another entry in a long line of tone-deaf films that place white Americans in perilous situations while ignoring the humanity of the natives actually affected by the violence. Whitewashing is nothing new in Hollywood, but that doesn’t make it any less problematic.
Every single “other” (or local) on-screen is either a savage inflicting harm on an American, or a corpse. By the end, many are both. None of the natives speak, really, unless the sound of machetes hitting human flesh or a gunshot can be construed as language. The body count here is incredibly high.
It’s a horribly ugly film that appears to take great pleasure in its own misery; it has all the bells and whistles of schlock horror, but wrapped around a generic, overly sentimental script. These elements clash throughout and give the film a goofy, inconsistent tone. At one point it literally jumps from a potential rape to a cheesy one-liner.
A geopolitical thriller shouldn’t revel so much in its senseless bloodshed. The film plays like a snuff film that just so happens to feature broad strokes of political implications. From the very opening sequence, in which we cut to a classic-horror-style logo after multiple locals are brutally murdered, it’s clear the “in-your-face” approach is not a great fit here.
The script only gets more implausible and convenient as it goes along, with Pierce Brosnan playing a character who dips in and out of the film whenever it suits the narrative.
The big action sequences (including the one splayed all over the commercials in which Owen Wilson tosses his children off a roof) are all so ridiculous that they earned genuine laughs from the audience. The decidedly gritty and horrific violence is rendered thematically empty considering the film would never dare do any actual harm to its protagonists.
“No Escape” tries to be a bloody horror film, a geopolitical thriller, and an emotional experience all at once, but fails to strike any sort of meaningful balance between the three and is nothing more than xenophobic propaganda.
Watch the trailer below.
“No Escape” opens in theaters nationwide on Wednesday, August 26.
August 29, 2015 at 09:26AM
Ankara (AFP) – Turkish planes for the first time have joined raids by the US-led coalition against Islamic State positions in Syria, the Turkish foreign ministry said Saturday.
“Our fighter planes … along with planes from the coalition yesterday evening began joint operations against (IS) targets which pose a threat to the security of our country,” it said in a statement.
August 29, 2015 at 09:25AM
The Chinese aviation industry is growing at an incredible pace.
And Boeing has taken notice.
According to the latest projections from the airplane maker, Chinese airlines will play a big role in the company’s financial success.
Although China may be going through a rough patch, Boeing believes its long-term projection of China’s economy will hold up.
“Our forecast accounts for fluctuation in the market over the 20 year forecast period,” A Boeing spokesperson told Business insider in an email. “We’re confident that China’s economy and aviation sector will continue to see strong growth over the long term.”
In total, Boeing believes China could generate roughly $950 billion in sales by 2034 at an average price of $150 million per plane.
That’s big business.
Boeing’s bullish take on the prospects of Chinese aviation are based on the company’s belief that the country’s airlines will not only dominate its domestic market, but also grow to be major players throughout Asia, Europe, and North America.
Incredibly, “Boeing’s forecasts actually tend to underestimate demand,” Tinseth said on his podcast this week. “We actually deliver more planes than we anticipate and that just tells you the resiliency and strength of the market.”
Analysis from the Center for Aviation (CAPA) seems to back up Boeing’s optimistic stance.
According to CAPA, Chinese airlines ferried more than 100 million passengers in the first quarter of 2015.
That’s an increase of 13% over 2014.
CAPA data shows that domestic business accounts for more than 90% of China’s airline business. As a result, the bulk of demand coming from China will be in the form of 150- to 220-seat single aisle airliners such as Boeing’s 737Max and Airbus’ A320neo.
This lines up with Boeing’s forecast. The company anticipates China will order as many as 4,600 single aisle jets in the next 20 years to meet growing demand and to replace aging planes headed for retirement. The company believes this part of the market could generate as much as $490 billion in sales in that period.
Although international traffic onboard Chinese airlines accounts for only 7% of its business, the segment grew a whopping 57% compared to the same period in 2014.
Chinese airlines carried 2.6 million more passengers in the first quarter of 2015 than it did in the first quarter of 2014. According to CAPA, this growth equates to an additional 64 fully loaded Airbus A380 superjumbos every day for a whole quarter.
Even though long haul international flights are still a small part of China’s airline business, they are a big deal for airplanes makers. Long haul flights requires larger, more expensive wide-body jets like the 777 or Airbus’ superjumbo. These planes can cost twice to four times as much as the smaller single aisle jets for China’s domestic market and offer companies like Boeing greater profit margins per plane.
According to Boeing, China’s airlines will need more than 1,500 of these wide-bodies over the next two decades at a value of $450 billion.
Furthermore, Boeing sees several technological and political developments in the coming years that will also play a large role in the opening up the China’s airline business.
“Liberalization of visa policies along with new technologies, capabilities, and efficiencies will increase traffic,” Boeing wrote in its market outlook. “It is expected that by 2021, passenger travel between China and the United States will triple.”
Even if Boeing can’t sell $1 trillion of planes in China, expect both Boeing and China’s airlines to grow at an incredible pace.
August 29, 2015 at 09:23AM