Tre döda i upplopp i Egypten SvD Utrikes(cached at March 7, 2014, 11:32 pm)

Tre människor dödades och tiotals skadades i samband med upplopp i Egyptens huvudstad Kairo efter fredagsbönen. Demonstranterna avfyrade handeldvapen och kastade brandbomber mot polisen, som svarade med tårgas, enligt säkerhetskällor.
Why Robots Will Not Be Smarter Than Humans By 2029 Slashdotby Unknown Lamer on ai at January 1, 1970, 1:00 am (cached at March 7, 2014, 11:32 pm)

Hallie Siegel writes "Robotics expert Alan Winfield offers a sobering counterpoint to Ray Kurzweil's recent claim that 2029 will be the year that robots will surpass humans. From the article: 'It’s not just that building robots as smart as humans is a very hard problem. We have only recently started to understand how hard it is well enough to know that whole new theories ... will be needed, as well as new engineering paradigms. Even if we had solved these problems and a present day Noonian Soong had already built a robot with the potential for human equivalent intelligence – it still might not have enough time to develop adult-equivalent intelligence by 2029'"

Read more of this story at Slashdot.








Async Startup and Locking inessential.comat January 1, 1970, 9:00 am (cached at March 7, 2014, 11:31 pm)

I try to avoid the following pattern, but it’s the best call from time to time.

Foo does some startup in a background serial queue. Parts of Foo’s public API don’t work until that startup has completed, so I want those methods to block callers until startup has completed.

I have not found a great way of dealing with this.

I do something like this:

- init
  create_lock()
  lock()
  startupOnSerialQueue()
    completion: unlock()

- someMethod
  lock()
  do_the_thing()
  unlock()

Ugh.

With this method, someMethod is blocked while startupOn​SerialQueue() is happening.

And someMethod also gets a lock all the rest of the time. That’s not a big deal, because, in practice, someMethod is super-fast. But it wouldn’t actually have to have that lock except right at startup.

This feels inelegant to me. It’s simple enough, and it works, but I don’t like it.

Do you know of a better solution?

My first thought is that dispatch_once would help — but it wouldn’t. (Not that I can see.) It would make sure startupOnSerialQueue is called once, but doesn’t solve the problem of blocking use of someMethod until startupOnSerialQueue has completed.

Another possibility: someMethod could put do_the_thing() inside a dispatch_sync block that runs on the background serial queue. But that also seems inelegant. Needlessly complicated.

This reminds me of the old joke. Man: “Doc, it hurts when I go like this!” Doctor: “Well don’t go like that!”

Except that I will go like that when everything else about the design is perfect. Since I can keep the async startup internal to Foo, it’s able to implement its public API without infecting anything else.

So my only question is if there’s a better pattern for handling this.

MasterCard, Visa form group to push better payment security (ZDNet) SANS ISC SecNewsFeed(cached at March 7, 2014, 11:30 pm)

Bugtraq: SEC Consult SA-20140307-0 :: Unauthenticated access & manipulation of s SANS ISC SecNewsFeed(cached at March 7, 2014, 11:30 pm)

Krimborna känner rysk vind blåsa SvD Utrikes(cached at March 7, 2014, 11:02 pm)

Diplomatiska försök, hot om skärpta sanktioner mot Ryssland samt ryska avfärdanden av fördömanden präglar krisen om Krimhalvön.
Två ton oxfilé innehöll buffelkött SvD Inrikes(cached at March 7, 2014, 11:02 pm)

Drygt 1 800 kilo oxfilé sålde slut på två veckor runt nyår på Ica Maxi i Borås. Kampanjpriset var häpnadsväckande låga 89 kronor kilot.
Brand i lägenhetshus - tolv skadade SvD Inrikes(cached at March 7, 2014, 11:02 pm)

Flera personer har skadats i en brand i ett flerfamiljshus i Landskrona, skriver hd.se.
It seems that America is not as fluent in Techie Talk as we might think (IT Toolbox SANS ISC SecNewsFeed(cached at March 7, 2014, 11:00 pm)

Flera skadade i brand i Landskrona SvD Inrikes(cached at March 7, 2014, 10:32 pm)

Flera personer har skadats i en brand i en fastighet i Landskrona, skriver Helsingborgs Dagblad på nätet.
Nya vicerektorer utsedda i Uppsala SvD Inrikes(cached at March 7, 2014, 10:32 pm)

Uppsala universitet har tillfälligt ersatt två av de tre vicerektorer som i februari sade upp sig efter en konflikt med rektorn Eva Åkesson, skriver unt.se.
SVT vägrar lämna ut nyhetsintervju SvD Inrikes(cached at March 7, 2014, 10:32 pm)

SVT vägrar att till en åklagare lämna ut en intervju som Rapport-redaktionen gjort med en man som pekats ut som gangsterledare i Göteborg, skriver gp.se. Det gäller ett nyhetsinslag som gjordes i februari 2009 med mannen som då hade flytt från Sverige till Turkiet. Åklagaren som begärt att få ta del av intervjun leder utredningen kring en skjutning på Stjärnbildsgatan i Bergsjön i april i fjol då en man sköts till döds. Enligt åklagaren ”finns det anledning att anta att gärningsmännen handlat på uppdrag av NN”.
BPAS Appeals £200,000 Fine Over Hacked Website Slashdotby Unknown Lamer on uk at January 1, 1970, 1:00 am (cached at March 7, 2014, 10:32 pm)

DW100 writes "A UK charity that provides help and guidance for women seeking abortions has been fined £200,000 after a hacker breached its website in 2012 and was able to gather data on 9,900 people that had requested help from the organization. The hacker was given almost three years in jail for the attack. The charity's CEO has condemned the decision, arguing it rewards the hacker for his efforts." The data was unintentionally stored in their CMS after miscommunication with a contractor, and they never performed security audits. Martin S. writes "The BPAS is appealing a £200,000 fine imposed by the ICO after their website was hacked by an Anonymous anti-abortion extremist. The amount is particularly egregious when perpetrators of willful data theft often attract fines of only a few thousand pounds."

Read more of this story at Slashdot.








Firefox OS Will Become the Mobile OS To Beat Slashdotby Unknown Lamer on firefox at January 1, 1970, 1:00 am (cached at March 7, 2014, 10:32 pm)

mattydread23 writes with an opinion piece naming a few reasons Firefox OS is likely to succeed "It's geared toward low-powered hardware in a way that Google doesn't care as much about with Android, it's cheap enough for the pre-paid phones that are much more common than post-paid in developing countries, and most important, there are still 3.5 billion people in the world who have feature phones and for whom this will be an amazing upgrade." I'd push greater commitment to keeping the essential components of the system under FOSS licenses onto the head of that list.

Read more of this story at Slashdot.








Target Hearings: EMV Not Enough (InfoRiskToday) SANS ISC SecNewsFeed(cached at March 7, 2014, 10:30 pm)