4 months ago
Adding an option instead of making a decision for the user is almost always bad UI design.
Except when it’s not.
The problem with a mantra like this is that it quickly gets elevated to almost biblical status. When used by a disgruntled developer it can be used to shoot down just about any initiative. Like Godwins law for WordPress: once you drop the “decisions not options” bomb, rational discussion comes to a halt.
Read the full article on Noscope.
5 months ago
With a lot of companies moving towards service-oriented architectures and RESTful interfaces, it now becomes feasible to split the back-end UI layer out into its own server. If all of an application’s key business logic is encapsulated in REST calls, then all you really need is the ability to make REST calls to build that application. Do back-end engineers care about how users travel from page to page? Do they care whether or not navigation is done using Ajax or with full page refreshes? Do they care whether you’re using jQuery or YUI? Generally, not at all. What they do care about is that data is stored, retrieved, and manipulated in a safe, consistent way.
Read the full article on NCZOnline.
5 months ago
A British company called Enviro-Cool has created a rapid cooling technology called V-Tex that can chill Fanta, lager or even Champagne from room temperature to 5 degrees in less than 45 seconds.
via Wired UK.
5 months ago
TL;DR: use this config and be sure that you’re using OpenSSL >= v1.0.1 and nginx >= 1.3.7 but I recommend >= 1.4.2.
Read the full article on Tautt.
5 months ago
Email should once again be used as a communication medium, not the notification bus-terminal it has become.
Read the full article on I.M.H.O. — Medium.
5 months ago
Some call him the greatest coach in history. Before retiring in May 2013, Sir Alex Ferguson spent 26 seasons as the manager of Manchester United, the English football (soccer) club that ranks among the most successful and valuable franchises in sports. During that time the club won 13 English league titles along with 25 other domestic and international trophies—giving him an overall haul nearly double that of the next-most-successful English club manager. And Ferguson was far more than a coach. He played a central role in the United organization, managing not just the first team but the entire club. “Steve Jobs was Apple; Sir Alex Ferguson is Manchester United,” says the club’s former chief executive David Gill.
In 2012 Harvard Business School professor Anita Elberse had a unique opportunity to examine Ferguson’s management approach and developed an HBS case study around it. Now she and Ferguson have collaborated on an analysis of his enormously successful methods.
6 months ago
As originally proposed, the srcset attribute allowed developers to specify a list of sources for an image attribute, to be delivered based on the pixel density of the user’s display:
<img src="low-res.jpg" srcset="high-res.jpg 2x">
Not too scary, this markup. In plain English:
“Use low-res.jpg as the source for this img on low-resolution displays, and for any browser that doesn’t understand the srcset attribute. Use high-res.jpg as the source for this img on high-resolution displays in browsers that understand the srcset attribute.”
Things were starting to look scary, for a little while there. Due in part to high resolution devices, the average website is now nearly an entire megabyte of images. Now developers can target users on high-resolution displays with a high-resolution image source. Meanwhile, users on lower pixel density displays won’t be saddled with the bandwidth cost of downloading a massive high-resolution image, without seeing any benefit.
via Smashing Magazine.
6 months ago
This is obviously a rather profound escalation of their attacks on the news-gathering process and journalism. It’s bad enough to prosecute and imprison sources. It’s worse still to imprison journalists who report the truth. But to start detaining the family members and loved ones of journalists is simply despotic. Even the Mafia had ethical rules against targeting the family members of people they feel threatened by. But the UK puppets and their owners in the US national security state obviously are unconstrained by even those minimal scruples.
If the UK and US governments believe that tactics like this are going to deter or intimidate us in any way from continuing to report aggressively on what these documents reveal, they are beyond deluded. If anything, it will have only the opposite effect: to embolden us even further. Beyond that, every time the US and UK governments show their true character to the world – when they prevent the Bolivian President’s plane from flying safely home, when they threaten journalists with prosecution, when they engage in behavior like what they did today – all they do is helpfully underscore why it’s so dangerous to allow them to exercise vast, unchecked spying power in the dark.
MATLAB has its weaknesses but one of the best things I like about MATLAB is the
keyboard command. It allows you to halt the program at a given point and gives you an interactive session that has access to all the functions and variables that are available to your script.
There are a few ways to do this in python. Of course, you could use gdb, just like you would to debug a C program. I know there are extra “plugins” that allow you access to Python specific debugging commands but I haven’t tried it out yet.
My preferred method is to use the Python Debugger or
pdb. The easiest way to do it is to launch your Python program as follows:
python -m pdb script.py
Then when your program hits an error, it will halt execution and give you an interactive console to debug the program right where the error was raised. It gives you access to all the variables and functions within the program at that particular point as well as a whole range of commands to help you with the debugging. Very useful especially when debugging useless error messages from third-party libraries.
There is another method that is a lot more similar to the MATLAB
keyboard function. Just import the
code module and the insert the command
code.interact(local=locals()) wherever you want to do the debugging. It gives you an interactive console to debug your Python program. The
local=locals() bit is required to give you access to all the local functions and variables.