Eat Cookies!

What are Cookies?

Cookies are data, stored in small text files, on your computer.

When a web server has sent a web page to a browser, the connection is shut down, and the server forgets everything about the user.

Cookies were invented to solve the problem "how to remember information about the user":

  • When a user visits a web page, his name can be stored in a cookie.
  • Next time the user visits the page, the cookie "remembers" his name.

Cookies are saved in name-value pairs like:

username = John Doe

When a browser requests a web page from a server, cookies belonging to the page is added to the request. This way the server gets the necessary data to "remember" information about users.

Function

function deleteCookie(cname) {
    setCookie(name, '', 1);
    document.cookie = name + '=; Expires=Thu, 01 Jan 1970 " + 
                      "00:00:01 GMT; path=/;';
}

function getCookie(cname) {
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) === ' ') {
            c = c.substring(1);
        }
        if (c.indexOf(name) === 0) {
            return c.substring(name.length, c.length);
        }
    }
    return "";
}

function setCookie(cname, cvalue, exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
    var expires = "expires=" + d.toUTCString();
    document.cookie = cname + "=" + cvalue + "; " + expires + 
                      "; path=/;";
}

Happy coding!

Bill Gates made these 15 predictions in 1999 — and it's scary how accurate he was

Bill-Gates

After reading ’Business @ the Speed of Thought’, my respect for Bill Gates has increased exponentially. That isn’t to say that I wasn’t a fan of his before. I’ve always been impressed by the strategies that Microsoft carried out in its early days, but that doesn’t come close to how impressed I am now. In this book, published in 1999, Gates outlined how information systems, the Internet, and technology in general would change the way that businesses function. Along the way, he made some incredibly accurate predictions, most of which have since become huge industries: smart phones, smart homes, social networks, and an array of other uses for the Internet-a few of which have yet to be developed.

Gates presents a few key elements for a good information system. While we have to keep in mind that the book was written in the late 90’s, many of these questions are still hardly answered by today’s technology, and present opportunities for new businesses.

Predictions

  1. Automated price comparison services will be developed, allowing people to see prices across multiple websites, making it effortless to find the cheapest product for all industries.
  2. People will carry around small devices that allow them to constantly stay in touch and do electronic business from wherever they are. They will be able to check the news, see flights they have booked, get information from financial markets, and do just about anything else on these devices.
  3. People will pay their bills, take care of their finances, and communicate with their doctors over the Internet.
  4. “Personal companions” will be developed. They will connect and sync all your devices in a smart way, whether they are at home or in the office, and allow them to exchange data. The device will check your email or notifications, and present the information that you need. When you go to the store, you can tell it what recipes you want to prepare, and it will generate a list of ingredients that you need to pick up. It will inform all the devices that you use of your purchases and schedule, allowing them to automatically adjust to what you’re doing.
  5. Constant video feeds of your house will become common, which inform you when somebody visits while you are not home.
  6. Private websites for your friends and family will be common, allowing you to chat and plan for events.
  7. Software that knows when you’ve booked a trip and uses that information to suggest activities at the local destination. It suggests activities, discounts, offers, and cheaper prices for all the things that you want to take part in.
  8. While watching a sports competition on television, services will allow you to discuss what is going on live, and enter contest where you vote on who you think will win.
  9. Devices will have smart advertising. They will know your purchasing trends, and will display advertisements that are tailored toward your preferences.
  10. Television broadcast will include links to relevant websites and content that complement what you are watching.
  11. Residents of cities and countries will be able to have Internet-based discussions concerning issues that affect them, such as local politics, city planning or safety.
  12. Online communities will not be influenced by your location, but rather, your interest.
  13. Project managers looking to put a team together will be able to go online, describe the project, and receive recommendations for available people who would fit their requirements.
  14. Similarly, people looking for work will be able to find employment opportunities online by declaring their interest, needs, and specialized skills.
  15. Companies will be able to bid on jobs, whether they are looking for a construction project, a movie production, or an advertising campaign. This will be efficient for both big companies that want to outsource work that they don’t usually face, businesses looking for new clients, and corporations that don’t have a go-to provider for the said service.

The original post is here.

Mobile apps are now bigger than the web — a trend that threatens to eat Google's core business

Apps are eating the web.

Over the past decade, there has been an inexorable movement from the open internet to the walled gardens of apps — and this trend just hit a major milestone.

According to new data from ComScore, more than half of all time Americans spend online is spent in apps — up from around 41% two years ago.

It's a stat that will be discomfiting to advocates of the open web, as well as companies whose core business is built around it — notably Google.

As content that was once freely available and indexable on websites becomes silo-ed away in closed-off apps, it makes it harder to search and link to content. This is, of course, the cornerstone of Google's original business. Google is fighting back, by making the internal contents of apps searchable. But it is not clear that Google will come to dominate app search the same way it did web search.

Below is the data from ComScore, showing how mobile dominates when it comes to platforms people use to get online — and on mobile, apps are the most popular way of accessing information.

adamblog2_reference

And here's how the amount of time spent in apps has rocketed over the last few years.

adamblog1_reference

Start Edge Animate when is in the screen

I've come across a few sites that will tie window scrolling with animation. When used in a subtle, small fashion, this is kind of cool. When used to change large portions of the view or really screw with scrolling, I detect it. Like most things, it all comes down to how you use it I suppose. But I was thinking recently - how can we do this with Edge Animate?

Change edgePreload.js

In a file calles something_edgePreload.js you find a line similar to the follow:

    if (AdobeEdge.bootstrapLoading) { 
        signaledLoading = true; 
        AdobeEdge.loadResources = doLoadResources; 
        AdobeEdge.playWhenReady = playWhenReady; 
    }

Replace playWhenReady with false.

Change edgeActions.js

First of all you have to insert a function to decide if an element is in the visible part of the screen.

function isScrolledIntoView(elem) {
    var docViewTop = $(window).scrollTop();
    var docViewBottom = docViewTop + $(window).height();

    var elemTop = $(elem).offset().top;
    var elemBottom = elemTop + $(elem).height();

    return ((elemBottom <= docViewBottom) 
            && (elemTop >= docViewTop));
}

This function returns True if an element is in a visible portion of the screen.

Now we have to change the main function to check it and then play the animation. Here the complete code of an edgeAction.js.

(function($, Edge, compId){
var Composition = Edge.Composition, Symbol = Edge.Symbol; 
   // aliases for commonly used Edge classes

   //Edge symbol: 'stage'
   (function(symbolName) {
       var showAnimation = true;
       function isScrolledIntoView(elem) {
            var docViewTop = $(window).scrollTop();
            var docViewBottom = docViewTop + $(window).height();

            var elemTop = $(elem).offset().top;
            var elemBottom = elemTop + $(elem).height();

            return ((elemBottom <= docViewBottom) 
                    && (elemTop >= docViewTop));
      }

      Symbol.bindSymbolAction(compId, symbolName, 
                    "creationComplete", function(sym, e) {
          var animSize = sym.getDuration();

          if(!isScrolledIntoView('.EDGE-1931783')) {
	        setTimeout(function() { sym.stop(); }, 0);    
          }

           window.onscroll = function(e) {
              if(isScrolledIntoView('.EDGE-1931783')) {
                  if (showAnimation) {
                    sym.play(0);
                    showAnimation = false;
                  }
              }
          }
      });
   })("stage");
   //Edge symbol end:'stage'

})(jQuery, AdobeEdge, "EDGE-1931783");

EDGE-1931783 is the class of my animation. Replace it with yours.

Happy coding!

World's First Autonomous Drone, The DJI Phantom 4, Revealed

Recently, the Irish Internet of Things chip maker Movidius, has won a multi-million dollar deal with Google, and it has been revealed as the brain behind the breakthrough autonomous drone, the DJI Phantom 4.

This autonomous drone, which went on sale in Apple Stores across the US last week, features a new visual guidance facet, which sticks to and follows a subject, and can stay in a fixed position without the need of a GPS signal.

Described as the first in the industry, the addition of Movidius chips technology and algorithms allows spatial computing and 3D depth sensing.

This gives the DJI Phantom 4 drone the capability to sense and avoid obstacles in real time, which means that it has more autonomous flight functions – along with improved awareness of flight space in air. Additional intelligence features include improved vision based on tracking modes and advanced mapping capabilities.

The Phantom 4 drone is understood to be the only visually intelligent drone available in the market which has the ability to see the world through six different sensors, and it can also sense obstacles.

This comes with included features such as Tap Fly -- which would enable pilots to tap a spot on their display, which causes the drone to fly to that particular spot on its own. Active Track is also present, which would allow the pilot to track objects by using advanced image recognition algorithms.

In recent weeks, it materialized that Movidius’s internet of things chips will be the intelligence within an extremely powerful new VR headset which is being created by Google, and it will not need to be tethered to a PCs or the smartphone.

Khronos releases Vulkan 1.0 open graphics specification

talos-vulkan

Khronos has released Vulkan 1.0, the next generation open graphics API, and a Vulkan SDK for Windows and Linux is now available from LunarG.

Khronos is an industry consortium which creates open graphics standards, including OpenGL and WebGL. Vulkan was announced in March 2015 and represents the next generation after OpenGL, though Khronos is keen to emphasise that OpenGL, and the cut-down OpenGL ES designed for mobile and embedded use, remain in active development.

Today's release includes version 1.0 of the specification, LunarG's SDK which has been sponsored by Valve Corporation, open source conformance tests, and a sample application. Croteam's Talos Principle, running on Steam, is available in a beta version that uses the Vulkan API.

Vulkan has wide support from GPU vendors. AMD has announced a beta of its Radeon software driver which supports the Vulkan API. Intel is offering "industry-certified drivers for three generations of Intel graphics platforms, with more to come," according to VP Imad Sousou. NVIDIA has Vulkan drivers for Windows, Linux and Android available from today. Imagination has early-access Linux drivers for its PowerVR GPU and is promising "Vulkan support extended to all our tools in the very near future". Qualcomm has announced Vulkan drivers for Android 6 for its Adreno 530 and 4xx GPUs, and ARM also has drivers in progress. Google is adding Vulkan support to the Android SDK.

Vulkan is not an update of OpenGL, but takes a different approach, allowing more direct access to GPU hardware and giving developers the ability to create and manage multiple threads running on GPU cores. This enables lower latency and better performance, though porting from OpenGL is not straightforward and in some respects the Vulkan API is more challenging for developers.

Davos: Smart machines set to transform society

FT-Davos-Microsoft

Artificial intelligence will spur economic growth and create new wealth. Machines that “think” like humans will help solve huge problems, from curing cancer to climate change. Yet millions of human workers will need to retrain, as robots make their existing jobs redundant.

These are the contrasting messages provided by the world’s leading technologists during the World Economic Forum in Davos this week, as political and business leaders ponder how best to respond to the rise of smart machines.

Sebastian Thrun, the inventor of Google’s self-driving cars and an honorary professor at Delft University of Technology, told the Financial Times that “almost every established industry is not moving fast enough” to adapt their businesses to this change.

He suggested self-driving cars would make millions of taxi drivers redundant and planes running solely on autopilot would remove the need for thousands of human pilots.

One of the central themes of this year’s conference is the “Fourth Industrial Revolution,” referring to how technological breakthroughs are expected to transform industries across the world. Delegates argued that advances in robotics and artificial intelligence will have the transformative effect that steam power, electricity and ubiquitous computing achieved in previous centuries.

“[Artificially-intelligent machines] can look at a brainscan better than most radiologists, but they can also weld better than any human,” said Illah Nourbakhsh, a professor of robotics at Carnegie Mellon University, the institution which has a partnership with Uber to build driverless cars. “It’s affecting white-collar and blue-collar jobs. Nobody is inherently safe.”

But Mr Thrun was optimistic that redundant roles will quickly be replaced.

“With the advent of new technologies, we’ve always created new jobs,” he said. “I don’t know what these jobs will be, but I’m confident we will find them”

Satya Nadella, chief executive of Microsoft, said: “This challenge of displacement is a real one, [but] I feel the right emphasis is on skills, rather than worrying too much about the jobs [which] will be lost. We will have to spend the money to educate our people, not just children but also people mid-career so they can find new jobs.”

Happy 60th Birthday Bill Gates

Bill-Gates1-1040x580

The founder of Microsoft and wealthiest man in the world turns 60 years old today. William Henry Gates III was born October 28th, 1955 in Seattle, Washington where he still resides in his post Microsoft years.

He has much to celebrate as he turns 60. After leading Microsoft for decades it must be quite rewarding to see the company he founded grow in such a bold direction this year with a booming commercial cloud computing division, new category defining hardware that is leading the competition, and an incredibly fast adoption rate for Microsoft’s latest version of Windows.

People_Nadella_Gates_Ballmer-1

But Gates isn’t nearly as involved in Microsoft now a days as he used to be. He formerly stepped down as CEO in 2000 when Steve Ballmer took the reins. He also left his position as Chairman of Microsoft in February of 2014 when Satya Nadella was appointed CEO. He spends a great deal of his time working on the Bill and Melinda Gates Foundation‘s projects, which has been identified as the wealthiest charitable foundation in the world. The foundation focuses on improving the lives and productivity of people around the world, and has gained much attention recently for its emphasis on eradicating common diseases in developing nations.

Gates still does help out at Microsoft as a Technology Advisor. Most notably Gates has been helping Nadella rethink some of the company’s strategies, particularly with reinventing Office. And it appears his contributions are still paying off for the company with news that the reinvention of Office as an SaaS offering, Office 365, overtook Google Apps for Work this year.

So happy birthday Mr. Gates! Hope you are having a productive celebration of reaching the huge milestone of 60, while the company you founded continues to reach its own previously unimagined milestones. If you want to follow more about Bill Gates work outside of his advisory role to Microsoft, you can learn more on his personal blog GatesNotes.

Windows Live Writer For Windows 8.1

Windows Live Writer, developed by Microsoft, is a desktop blog-publishing application that is part of the Windows Live range of products. It features WYSIWYG authoring, photo-publishing and map-publishing functionality, and is currently compatible with Windows Live Spaces, SharePoint blogs, Blogger, LiveJournal, TypePad, WordPress, Telligent Community, PBlogs.gr, JournalHome, the MetaWeblog API, the Movable Type API, Blogengine, Squarespace, and all blogs that support Really Simple Discovery.

Windows Live Writer introduces the Provider Customization API that enables both rich customization of Windows Live Writer's behavior as well as the opportunity to add new functionality to the product. Currently Windows Live Spaces, WordPress, and TypePad have all taken advantage of this API to expose additional service-specific features within Windows Live Writer.

Windows Live Writer is currently available in 48 different languages.

wlsetup-web.rar (494.3KB)

IE loses stranglehold on the enterprise as Chrome makes major inroads

chrome-browser-logo

Microsoft's Internet Explorer (IE) is about to lose the one market it's had locked up for decades: the enterprise.

According to research firm Gartner, enterprise usage of Chrome will surpass that of IE by the end of this year. In 2016, Google's browser will dominate corporations, with about two-thirds of enterprise users running Chrome as their primary browser.

That prediction flies in the face of longtime assumptions that even as consumers deserted IE for alternatives like Apple's Safari, Chrome or Mozilla's Firefox, IE remained an unassailable fortress in business, where Windows rules and entrenched line-of-business Web apps demand IE.

"Enterprises had to stick on IE8 because Microsoft supported only one version of IE on a system," said Gartner analyst Michael Silver in an interview, referring to business reliance on the older edition for intranet browsing and running aged apps. "They couldn't get IE11, which forced them into putting another modern browser on devices."

Increasingly, that other browser has been Chrome.

Gartner estimated that by year's end, Google will be the No. 1 primary browser in corporations, edging IE by a few percentage points. Next year, Chrome's enterprise usage will surge from 43% to 65%, while IE's will plummet from 47% to 28%.

That's a sea change.

But Microsoft's fighting back with Edge, an overhaul of IE that will ship as the default browser in Windows 10. Repeatedly dubbed a "modern browser" by Microsoft, Edge can run alongside IE11 on the same device, a first for Microsoft. In a recently published report for clients, Silver and his Gartner colleague David Smith said Edge was Microsoft's answer to the "realization of the market of today."

"Microsoft needs a second browser for those who need both a modern and legacy browser on the same device," Silver and Smith wrote of the Redmond, Wash., company's revamped browser strategy.

While Edge will play the part of the "modern" side of the equation -- Microsoft's answer to Chrome's infiltration of the enterprise -- IE11, which will also be included with Windows 10, will play the "legacy" character.

Advertsing

125X125_06

Planet Xamarin

Planet Xamarin

Calendar

<<  November 2017  >>
MonTueWedThuFriSatSun
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Month List