James Reads

HomeBlog

Day of Nov 20th, 2019

  • 10up Releases GitHub Actions for Simplifying WordPress Plugin Deployment – WordPress Tavern

    10up announced the public availability of two GitHub Actions geared toward WordPress plugin developers yesterday. The first Action allows developers to deploy plugin updates directly to the WordPress.org plugin directory by tagging a release on GitHub. The second Action handles readme file and asset updates. On November 14, GitHub announced the public launch of their GitHub Actions feature. GitHub Actions are a way for developers to automate workflows from their Git repositories. Actions can also be shared with others, reused across projects, and forked like any other public repository. Currently, there are over 1,300 GitHub Actions with more being added every day. At least nine of the current Actions are related to WordPress, including an Action to deploy WordPress by rtCamp, but there will certainly be more to come in the future. With GitHub Actions out of beta, it opens the door for companies like 10up to share their custom workflows and for others to build upon them. It will also be interesting to see what Actions other developers within the WordPress ecosystem release. The 10up team initially launched their custom Actions for WordPress in March 2019, which was during GitHub Actions beta period. “Everybody has been very positive,” said Helen Hou-Sandí, director of open source initiatives at 10up and WordPress lead developer. “We’ve had a number of people report bugs, request enhancements, and contribute code and documentation. That’s been a really great measure of adoption and attention for me — having people give thoughtful critical feedback and help us improve this tool for everybody.” Hou-Sandí is interested in seeing other ideas for adding workflows or potentially new Actions from the community. “An example of something we’ve just started doing without writing a whole new Action is generating hook documentation and deploying that to GitHub Pages, which eliminates the need to generate locally, commit manually, and decide on where to host things,” she said. “Development was actually smoother than I anticipated,” said Hou-Sandí of creating and testing the team’s GitHub Actions. “Maybe because I spent a fairly long time planning and obsessing over potential issues and chose to use Bash.” For testing, she was able to use an inactive plugin repo on WordPress.org. “I’m sure I could have come up with a method to test completely locally, but being able to use actual environments without repercussions was helpful.” The 10up team has already been deploying plugin updates with the Actions. Hou-Sandí said that she does not think about this in terms of saving time, even though the team is already tagging releases via GitHub. “What it’s really done for us is, along with well-documented release processes, made it so that anybody can jump in and get a plugin updated or released without worrying about modifying commit permissions or their personal knowledge of SVN,” she said. “This makes it much easier to get releases out especially when it’s an urgent bugfix.” Deploying and Updating WordPress Plugins Both of the GitHub Actions created by 10up help ease the pain of deploying plugin updates to the official WordPress plugin directory. They are designed to streamline plugin release management and simplify the process of getting code out to end-users. WordPress plugin authors must use Subversion (SVN) to commit and tag plugin releases in the directory. Often, this is an issue because Git is the most-used version control system. Some developers have no experience with SVN, and the number of developers unfamiliar with it will likely only grow as Git continues to gain popularity. Even with those who do understand SVN, switching between version control systems can hinder workflows, particularly with larger teams. With so many WordPress plugin developers using Git, it makes sense to use tools that are a part of their daily workflow rather than jumping into a system only used during releases. That is where both of these GitHub Actions developed by 10up can help. Adding Actions to a repository is a fairly straightforward process. All repositories have a new “Actions” tab. Developers can create new workflows directly from the Actions page for their repository. When adding a new workflow, it is simply a matter of copying and pasting a particular Action’s code snippet. Adding a custom GitHub workflow. The WordPress Plugin Deploy Action is for deploying plugin updates directly to the WordPress plugin directory. When developers tag a release on GitHub, it will automatically commit the update to the WordPress.org SVN repository. The Action respects .distignore and .gitattributes for ignoring files that should not be distributed to users. It also allows developers to add their plugin assets to a .wordpress-org folder, which will be committed to the top-level assets directory. WordPress.org Plugin Readme/Assets Update is a separate Action that allows developers to commit changes to their plugin’s readme or assets. It is useful when plugin authors need to update their plugin’s Tested up to version number or update screenshots, banners, and icons. This Action watches for changes on a specified branch. Both Actions require developers to set up secret values for their WordPress SVN username and password. Secrets are encrypted data that can be set via a repository’s “Settings > Secrets” screen. The SVN username and password are required so that GitHub can deploy commits to WordPress.org. Would you like to write for WP Tavern? We are always accepting guest posts from the community and are looking for new contributors. Get in touch with us and let's discuss your ideas. Like this: Like Loading... Related Source: 10up Releases GitHub Actions for Simplifying WordPress Plugin Deployment – WordPress Tavern

    Read at 01:31 am, Nov 20th

  • Exxon climate ads aren’t "political," according to Twitter

    Welcome to HEATED, a newsletter for people who are pissed off about the climate crisis—written by me, Emily Atkin. HEATED is a community, and I love hearing from readers. If you have thoughts, questions, story ideas or tips, you can reach me at emily@heated.world.

    Read at 12:08 am, Nov 20th

  • Let's Not Misuse Refactoring

    I find that many people confuse refactoring with any change in code. Sometimes they even use the word to mean huge changes that break the application — “we need a month to refactor this monolith.

    Read at 12:04 am, Nov 20th

  • Node.js version 13 : What you need to know

    Node.js 13 was released today, and Node.js 12 was promoted to Long Term Support (LTS). In this blog post, learn what’s new in 13 and why you should start thinking about migrating to Node.js 12. Every October, we see the results of the Node.js release process.

    Read at 12:01 am, Nov 20th

Day of Nov 19th, 2019

  • Internet-Savvy Nazi Says a Bunch of Old Fashioned Nazi Shit in Leaked Tape

    Richard Spencer, one of the most high profile neo-Nazis in America, has spent the past three years online trying to rebrand his extremist ideology with terms like “alt-right.” But a newly leaked audio tape makes it clear that this “dapper white nationalist” doesn’t have any new ideas.

    Read at 11:59 pm, Nov 19th

  • Manafort Spread Ukraine Conspiracy Theory Months Before 2016 Election

    Documents from the special counsel’s inquiry show that President Trump’s former campaign chairman shared the theory shortly after stolen Democratic emails were published that June.

    Read at 11:55 pm, Nov 19th

  • The Mueller Report’s Secret Memos

    BuzzFeed News sued the US government to see all the work that Mueller’s team kept secret. We have published the first installment, with revelations about the Ukraine conspiracy theory, Michael Cohen, Paul Manafort, and more.

    Read at 11:48 pm, Nov 19th

  • Amid impeachment circus, the pro-Trump search for dirt on Ukraine, the Bidens, 2016 election goes on

    Those working in common cause with the president's and Giuliani's campaign to get Ukraine to investigate Trump's political opponents are moving ahead.

    Read at 11:40 pm, Nov 19th

  • No, Absolutely Not | CSS-Tricks

    I think the difference between a junior and senior front-end developer isn't in their understanding or familiarity with a particular tech stack, toolchain, or whether they can write flawless code. Instead, it all comes down to this: how they push back against bad ideas. What I've learned this year is that web performance will suffer if you don't say no to the marketing department because you'll suddenly find yourself with eighteen different analytics scripts on your website. If you don't say no to engineers, then you'll have a codebase that's half React, a quarter Vue and another quarter built in a language you don't even recognize. If you don't say no to designers, then you'll have a ton of components that are very similar to one another and that will eventually end up confusing everyone in your organization. And if you don’t say no to project managers, then you'll forfeit the time necessary to build an accessible, responsive, baseline experience. The true beauty of web design is that you can pick up HTML, CSS, and the basics of JavaScript within a dedicated week or two. But over the past year, I've come to the conclusion that building a truly great website doesn't require much skill and it certainly doesn't require years to figure out how to perform the coding equivalent of a backflip. What you need to build a great website is restraint. But! The problem with working on large-scale projects with hundreds of people is that saying "no" can be political suicide. Instead, you have to learn how to say it without sounding like a jerk. You need to educate everyone about performance, responsive design, and accessibility. You'll need to explain to folks what front-end development even is. And that's because the hard part is that saying "no" requires justification—even mentorship—as to why something is a bad idea when it comes to building a website. The even harder part of all this is that front-end development is boring to everyone else, except us. No one cares about the three weird languages we have to write. And certainly, no one cares about performance or accessibility until things suddenly stop working for them. This is why the broken parts of the internet are felt by everyone but are mostly invisible to those who build it. All of these lessons have reminded me of a piece by Robinson Meyer for The Atlantic about the threat of climate change and how the solutions are "boring as dirt", or BAD for short: The BAD problem recognizes that climate change is an interesting challenge. It is scary and massive and apocalyptic, and its attendant disasters (especially hurricanes, wildfires, and floods) make for good TV. But the policies that will address climate change do not pack the same punch. They are technical and technocratic and quite often dull. At the very least, they will never be as immediate as climate change itself. Floods are powerful, but stormwater management is arcane. Wildfires are ravenous, but electrical-grid upgrades are tedious. Climate change is frightening, but dirt is boring. That's the BAD problem. The "boring as dirt" problem exists in our industry and every organization we work with. For instance, the performance of a website is obviously a terrible problem for users when they're trying to report a blackout in their area and the website can't load because there are a dozen or more third-party scripts loading at any given time. But fixing that problem? It requires going through each script, talking to the marketing department, finding out who owns what script, why they use it, what data is ultimately useful to the organization and what is not. Then, finally, you can delete the script. The solution to the problem is boring as dirt and trying to explain why the work is important—even vital—will get you nowhere in many organizations. So, how do we avoid boredom when it comes to solving front-end development problems? We must realign it with the goals of the business. We must mention our customers and why they need responsive interfaces when we talk about CSS. We should start a newsletter when we do a ton of great work that no one can see. And when someone has a bad idea that hurts the web? We should, as politely as we can, say no. Source: No, Absolutely Not | CSS-Tricks

    Read at 10:55 pm, Nov 19th

  • Shocker: ISPs Cut Back 2020 Investment Despite Tax Breaks, Death Of Net Neutrality

    Why it's almost as if you can't take telecom giants (and their lawyers, consultants, and political allies) seriously.

    Read at 02:50 pm, Nov 19th

  • Stephen Miller’s Affinity for White Nationalism Revealed in Leaked Emails

    Hatewatch re-examined Miller’s reported relationships with prominent figures from the white nationalist movement in light of information uncovered during its investigation into his emails to Breitbart.

    Read at 02:49 pm, Nov 19th

  • 'Highly Disturbing' Pentagon Document Shows US Military Surveilling Groups Protesting Family Separation

    The U.S. military is reportedly surveilling rights groups and activists engaged in peaceful protests against both President Donald Trump's border wall and the separation of migrant children from their families at the southern border.

    Read at 02:47 pm, Nov 19th

  • About the Apple Card

    My name is Jamie Heinemeier Hansson. Since my husband, David, tweeted about an unfortunate and ridiculous situation with AppleCard that involves me, I have been (or my credit-worthiness has been) the subject of lots of speculation.

    Read at 02:45 pm, Nov 19th

  • Trump can't sue New York state in DC federal court to stop release of tax returns, judge says

    A Trump-appointed federal judge decided Monday that President Donald Trump can't sue New York state officials in a Washington, DC, court at this time to stop the release of his tax returns to Congress.

    Read at 02:43 pm, Nov 19th

  • Economic Incentives Don’t Always Do What We Want Them To

    On their own, markets can’t deliver outcomes that are just, acceptable — or even efficient. The authors were just awarded the Nobel Prize in economics.

    Read at 02:43 pm, Nov 19th

  • Evo Morales Finally Went Too Far for Bolivia

    Evo Morales has been attacking Bolivia’s democracy for many years.

    Read at 02:36 pm, Nov 19th

  • Bolivia crisis: Power vacuum following Morales' resignation

    Tension are high in Bolivia following the resignation of the president, Evo Morales, after weeks of protest over a disputed election. Mr Morales stepped down after the head of the army publicly called on him to leave his post.

    Read at 02:30 pm, Nov 19th

  • One Big Thing the Dems Get Wrong About Warren

    This is insane. Our party has a death wish. We are going to blow this election and give the country four more years of Donald Trump. These downbeat Democrats are talking generally about what they regard as their party’s dangerous lurch to the left in the 2020 campaign.

    Read at 02:28 pm, Nov 19th

  • Evo Morales of Bolivia Accepts Asylum in Mexico

    The former president, who faced weeks of protest, said he had been forced out in a “coup.” He leaves Bolivia in a power vacuum, with politicians scrambling to form a caretaker government.

    Read at 02:24 pm, Nov 19th

  • Bolivian Leader Evo Morales Steps Down

    A leftist who had served longer than any other current head of state in Latin America, Mr. Morales lost his grip on power amid violent protests set off by a disputed election.

    Read at 02:20 pm, Nov 19th

  • http://inthesetimes.com/article/22108/rank-and-file-strategy-organize-unorganized-union-labor-movement-dsa?fbclid=IwAR2KsvyG-R15iK4_-sI4d96RpHap_lyfLI90RmqsFIwssHzWz_FGniRWxH0

    Read at 02:15 pm, Nov 19th

  • Socialist Kshama Sawant declares victory in Seattle City Council race

    Seattle’s socialist Councilmember Kshama Sawant declared victory Saturday after later vote tallies powered her dramatic comeback. She trailed by a large margin on election night before passing challenger Egan Orion on Friday.

    Read at 02:12 pm, Nov 19th

  • Apple and Chromebooks in Education, and zzzzzz

    4 min read I read this story with some interest. It's largely a press release in interview form, but at the end of the article the interview includes a question about Apple's position in the education market. To be clear, the closing paragraphs on education -- and an accompanying discussion on a listserv where I lurk -- are what motivated this post. This excerpt in particular stood out: Yet Chromebooks don't do that. Chromebooks have gotten to the classroom because, frankly, they're cheap testing tools for required testing. If all you want to do is test kids, well, maybe a cheap notebook will do that. But they're not going to succeed. My initial thoughts after reading this story haven't changed much -- I'll share those thoughts in a little bit, but first I want to be clear about the limits of my perspective, which also provides insight into my bias. I have worked in schools, but am not currently employed by a school or district. When I was working in schools, I was responsible for several different laptop and 1:1 initiatives supporting teachers and students. But this is back in the late 90s, early aughts - so a while ago. Currently, I have the good fortune to have both professional contacts and friends in schools and districts across the country, so I've been able to -- over the years -- learn directly from people who run and manage several hundred to several thousand to tens of thousands to over 100K machines. These machines have varied from Chromebooks to iPads to Windows machines to (yes, for real) even some Linux boxes. The larger deployments - and even a lot of the smaller deployments -- mix multiple types of devices. But this gets back to my original reaction after reading the apple exec's quotes in the article about Chromebooks and how their usefulness for testing helped drive adoption: he's not wrong, but the fact that his statement contains a kernel of accuracy is completely irrelevant. More importantly, the fact that he is able to repeat Apple's highly flawed marketing copy doesn't make Chromebooks any better or any worse. The big edtech players are most loyal to their marketing copy, their talking points, and moving product. There are many excellent individuals working in these companies who care about education, but even these folks will acknowledge that the needs of the company will generally win out. Apple is getting its lunch eaten by Google in education for a lot of reasons - and the fact that Chromebooks are good at supporting standardized testing is a small part of the conversation. But we should not kid ourselves either: the ease of managing Chromebooks compared to the relative complexity of managing different Apple devices is also a factor (See also: why Firefox struggles for a greater share of use in schools). Chromebooks are definitely easier for the adults, and that can translate into kids having more access to more devices more of the time. But, of course, using a Chromebook means that we are committing to using multiple other parts of a larger ecosystem -- Chromebooks shouldn't be understood just as a device -- they need to be understood as a hardware product that is simultaneously product onboarding and loss leader that is easy for adults to administer and hand over to kids in schools. So, yeah - when I read the article my reaction was more than a little bit of facepalm. But not because he was wrong about education -- that's pretty normal for just about any tech exec when they talk about education. My facepalm is rooted in the fact that we are still arguing over the merits of one device over another device. To be blunt: at the end of the day, show me the evidence base -- real, actual peer reviewed and replicable science -- that shows that Chromebooks or Windows devices or iPads or MacBooks matter, or that they matter more than a school environment where kids aren't shamed for lunch debt or in fear of being shot. PS: Semi-related: if Airpods were spun off as a standalone company, they could become the 32nd largest company in the US. So let's talk about what companies are putting sub-$300 devices in schools. Source: Apple and Chromebooks in Education, and zzzzzz

    Read at 01:25 pm, Nov 19th

  • Apple's Phil Schiller on reinventing the new MacBook Pro keyboard - CNET

    Apple's marketing chief, Phil Schiller, talks about the MacBook Pro's new redesigned keyboard.  James Martin/CNET The fastest way to get hardcore MacBook users on a rant is to ask them about the butterfly keyboard. Love it or hate it, Apple fans have passionate opinions about the company's decision to use a mechanism with a hinge in the middle that gives the keyboard its name. But the new 16-inch MacBook Pro, announced Wednesday, comes with an new keyboard that could change the conversation entirely. The butterfly keyboard, unveiled with Apple's 12-inch MacBook for 2015, drew criticism for its less-than-pleasing tactile sensation and for quality-control issues that left some people frustrated by doubled or dropped letters as they typed. Apple said it's improved the keyboard, now in its third generation, and is offering a replacement program.  CNET Editor Scott Stein says it's not quite like the old-school MacBook keyboard in his first take. "Think of the new MacBook Pro keyboard as a happy medium between the two," he says.  Now playing: Watch this: Has the new MacBook Pro finally fixed Apple's keyboard... The new MacBook Pro, which replaces the 15-inch version, is Apple's most direct response to the backlash. The company has taken the scissor mechanism of its standalone Magic Keyboard and used it to power the keyboard in its new laptop. The hope is that this new keyboard will appease the professionals Apple wants to win back. The challenge, says Apple marketing chief Phil Schiller, was taking the best of the Magic Keyboard, an accessory designed for desktop computers such as the upcoming Mac Pro, which launches in December, and adapting and evolving it for the new notebook. "People sometimes underestimate how much work goes into a keyboard, and that's why most keyboards in the industry don't change for 10 or 20 years," Schiller said in an interview. "We decided that while we were advancing the butterfly keyboard, we would also -- specifically for our pro customer -- go back and really talk to many pro customers about what they most want in a keyboard and did a bunch of research. The team took the time to do the work to investigate, research, explore and reinvent." Schiller spoke to me ahead of the MacBook launch about the new keyboard, whether it will show up in future products and his vision for where the Mac and iPad are going. Here's an edited version of our conversation. Q: Walk me through the feedback you got on the butterfly keyboard and how that informed the new scissor-based keys. Schiller: As you know, a number of years ago we started a new keyboard technology with this butterfly keyboard and began it with MacBook. It had some things it did really well, like creating a much more stable key platform. It felt more firm and flat under your finger --  some people really like that, but other people weren't really happy with that. We got sort of a mixed reaction. We had some quality issues we had to work on. Over the years we've been refining that keyboard design, and we're now on the third generation, and a lot of people are much happier with that as we've advanced and advanced it. The new MacBook Pro has a keyboard using a different mechanism than the standard butterfly design of other MacBooks.  Sarah Tew/CNET But a few years back, we decided that while we were advancing the butterfly keyboard, we would also -- specifically for our pro customer -- go back and really talk to many pro customers about what they most want in a keyboard and did a bunch of research. That's been a really impressive project, the way the engineering team has gotten into the physiology of typing and the psychology of typing -- what people love. As we started to investigate specifically what pro users most wanted, a lot of times they would say, "I want something like this Magic Keyboard, I love that keyboard." And so the team has been working on this idea of taking that core technology and adapting it to the notebook, which is a different implementation than the desktop keyboard, and that's what we've come up with [for] this new keyboard. We're doing both in advancing the butterfly keyboard, and we're creating this new Magic Keyboard for our Pro notebooks. What work went into getting the Magic Keyboard into a laptop design? To make this new scissor mechanism work appropriately in a notebook, we had to adapt it to the angle, which is different in a notebook than in a slanted desktop design for ergonomics. And it had to work in a design that had a backlight, which the notebook has that desktops do not. While the team was doing it, they discovered there were some things we liked about the butterfly keyboard, like the way it created this whole stable key platform at the top. We wanted to enhance the switch mechanism to support that kind of a feel, and we learned a little bit about the acoustics and the psychology of what is pleasing when you click a key. We had to advance the rubber dome design underneath the key to create the right feel and pressure. We had to increase the travel in the notebook back to about a millimeter because a lot of pros like a little bit longer travel, yet fit it into a thin and light design. We just learned more along the way and wanted to further advance the technology. Phil Schiller Throughout the process, the team reexamined the ideal size key cap -- you can make it too big, and there's not much space between them -- and people felt that that we wanted to provide a little more space between the keys than the butterfly mechanism has for optimal feel for professional typists. There's a bunch of learning that happened. Some because of moving the desktop keyboard to the notebook and some because we just learned more along the way and wanted to further advance the technology. Will this keyboard find its way to other MacBooks? There are folks who don't need the power of the MacBook Pro, but may appreciate the tactile experience. I can't say today. We are continuing both keyboard designs. How hard would it be to put the new keyboard into a slimmer design? Keyboards in general are a lot of work. People sometimes underestimate how much work goes into a keyboard, and that's why most keyboards in the industry don't change for 10 or 20 years. Adapting that to a notebook is more work. It's not impossible, but it's definitely a lot of work. The butterfly keyboard got lots of negative feedback and its share of bad press. How did you take that feedback? We love these things and we know our customers love them, and so people get very passionate on all sides of these things. When we get feedback on products, and [what] I think the team deserves a lot of credit for, is always stepping back, not overreacting --  spending the time to do the work, to study and make sure we understand what most customers think. There's always something to learn to make a product better, no matter what the feedback, and so what can we do to make it better? Can we make it better along the lines of what we already have, or do we need to go in another direction -- and for who? The team took the time to do the work to investigate research, explore and reinvent. The team has learned a lot over the last few years in this area. Do you see this keyboard as a pro-tier feature? Some of the most passionate feedback about the keyboard was coming from pro customers. We thought that was the right place to do the work on the new Magic Keyboard. The Touch Bar is back, and there isn't an option to not have it. What's the feedback been on that feature? We questioned everything in this new MacBook Pro. Nothing got away without some scrutiny and discussion and debate. That includes the Touch Bar. There is a fairly large number of customers who use the Touch Bar and see great benefit in some of its features, but there were also some complaints. If I were to rank the complaints, No. 1 was customers who like a physical Escape key. It was just a hard adaptation for a lot of people. We decided that rather than just remove the Touch Bar and lose the benefits some people get, we could instead add the Escape key. While we were doing that, we had already in the MacBook Air created a discrete Touch ID button. People really like that. So the decision was made to keep the Touch Bar, but also to create room on either side for the Escape key and Touch ID key. That is the best solution for the largest number of people we've dealt with who had complaints -- and kept something innovative that people were using with Touch Bar. There's also more space between the Touch Bar and the keys. Since the X and Y of the MacBook Pro is a teeny bit larger -- up 2% -- we wanted to use some of that little bit of extra space between the top of the number of keys and the bottom of the Touch Bar, because there was a minor complaint, I wouldn't say major, that some people accidentally would touch the Touch Bar when they meant to hit the number keys. A teeny bit of space can make a big difference there. What are you doing to get more developers to take advantage of the Touch Bar? One of the knocks on it is there aren't a lot of applications that take advantage of that. That's actually an old view. If people looked again, they would realize that support has gone up quite a bit. Most applications use it now. We're seeing adoption across a tremendous number of Mac apps. Our developer relations team works with a lot of our Mac developers to help them with that support. So we do see support has been growing through the years and it's much further along than people thought from the beginning. Today's news is all about the MacBook Pro 16 and Mac Pro, but where does the iPad Pro fit in this pro lineup? We look at these things a bit independently. The Mac has a tremendous customer base. It's grown over the years, especially as you go up the product line towards the pro products. A lot of people count on it to get their job done. It has an important place in many people's lives and we believe in that, and are continuing to develop along that path. The things that people love about their Mac is exactly the things we're working to make better and better. iPad was created, as you may remember when Steve [Jobs] announced it just about a decade ago now, to be a new-category product between your iPhone and your Mac, and something that had to create its own reason to exist to fill a need in your life. There's a fair number of people who actually spend more of their compute time on their iPad than personal computer. Phil Schiller It was literally to create a different product category. A couple years ago, we split off and created the iPad Pro. This has been a wonderful thing because it allowed us to create two models where we can push the technology. It really accelerated the use cases for iPad. So now there are a lot of cases where people will use iPad, especially with Pencil, as an artist-creation tool or as a field-compute tool. What we find is there's a fair number of people who actually spend more of their compute time on their iPad than personal computer. They didn't choose one or the other. That's just where they spent a lot of their time. What the team has done is try to find ways that the two can work together, where one plus one equals three instead of two. We've created technologies like Sidecar that allow your iPad to work alongside your Mac, and that you do use the Pencil on Mac applications. The idea of a second display on the road, that's flexible enough when you travel, is a really cool solution for pro users. And so that fills a need...no one's ever done that before. We allow customers to decide which one they want to spend more time on and then we try to find ways they work together if you happen to have both. You don't envision a future where they merge? No, that's not our view. Because then you get this in-between thing, and in-between things are never as good as the individual things themselves. We believe the best personal computer is a Mac, and we want to keep going down that path. And we think the best tablet computing device is an iPad, and we'll go down that path. iPad benefits because we assume that you need to be able to do most everything with touch, and we don't have to trade off on that experience. Mac assumes you want to do most everything with a keyboard and mouse input. We don't have to trade off on that path. You can look at some of the other products that will try to go halfway between the two. They end up just compromising experiences. That's not good. What about adding a touchscreen to a Mac? In your mind, would that be a compromise? That engineering effort is better spent on making the Mac be the best keyboard-trackpad experience possible. That's what our customers want us to spend our time on. Can you talk about the fervent Mac fan base and how important it is to Apple's mystique and reputation? I don't use words like that because I think people use those against our customers to make them sound a little crazy and religious. And that's not really the case when you meet them. We just have great customers who love the Mac. College students' [use] is dominated by Macs. In the majority of creative fields -- writers, video editors, music creators and programmers -- I think that's an area that's super strong. We love that intersection of creativity and computing technology. That's something that's always been true to the core of what we love at Apple. It's not about religion, it's not about fans. It's actually about the right product for incredibly creative productive groups of people with their computers. Let's talk about creatives. Many have moved on to Microsoft Windows. How are you looking to convince them to switch platforms? There's always been a competitive world of people between Windows and Mac. That isn't new. Historically, we're actually the ones gaining share. I think that's going to increasingly happen, especially as more and more mobile technology is a part of our life, like iPhone, more and more. Internet technology and software as a service levels the platform playing field. The technology trends have benefited Apple the most. The PC world is a world of sameness. You have commodity hardware [and] a generic operating system that has to work on a lot of stuff so it doesn't work great on any one thing. We have this incredible responsibility to make sure the hardware and software is designed seamlessly together, works the way you want, and those things all ultimately make it so that as a customer, you have ease of use. That's what we strive to do with the Mac. That will always be one of our great advantages against the generic PC world where things just don't all work together as well and as seamlessly as good as that. Privacy is an issue you've taken a public stand on. What have you found with your consumer research and where privacy stacks as a priority? Privacy and security is becoming more important to people. If you go back not too many years, very few people would ever bring it up as a concern or a topic, at least not one that would impact their decision of products to buy or platforms to use. That's changing very quickly. As it's become more newsworthy, there's more security issues that are being reported on daily. We all have growing concerns about this. We just feel like we're doing the right thing for our customer. And if over time, more of them care about it and make purchase decisions about it, that's great, but that isn't why we do it. We do it because we think it's the right thing to do. You talked about MacBook as popular with college students. But Chromebooks have grown in the education market. What's your perspective on that? In the K-12 market, particularly for the lower grades -- K through six to nine -- iPad is doing really well. We think it is the ultimate tool for a child to learn on. We're really investing a lot into continuing to grow, both from the enterprise side with manageability and tools to helping schools from a learning experience. Everything from our Everyone Can Code curriculum that has our Swift Playgrounds app to help children at a very young age learn how to understand software and create opportunities for kids to become developers, all the way to augmented reality. We did a study, many many years ago in education, about the importance and the role of technology in the classroom, how can it help with the education process. The result of this education research we did was that the students who succeed are the ones who are most engaged, which is really simple.  Kids who are really into learning and want to learn will have better success. It's not hard to understand why kids aren't engaged in a classroom without applying technology in a way that inspires them. You need to have these cutting-edge learning tools to help kids really achieve their best results. Yet Chromebooks don't do that. Chromebooks have gotten to the classroom because, frankly, they're cheap testing tools for required testing. If all you want to do is test kids, well, maybe a cheap notebook will do that. But they're not going to succeed. Source: Apple’s Phil Schiller on reinventing the new MacBook Pro keyboard – CNET

    Read at 01:22 pm, Nov 19th

  • After bruising floor fight, Cuomo wins W.F.P. nomination

    COLONIE—Governor Andrew Cuomo clinched the nomination of the Working Families Party late Saturday, capturing 58 percent of the state committee's weighted vote after promising to campaign for a Democrat-controlled state Senate that would carry forward the party's progressive platform.

    Read at 01:11 pm, Nov 19th

  • Snark Attack

    You have to give David Denby credit for bravery: Writing a book titled Snark: It’s Mean, It’s Personal, and It’s Ruining Our Conversation is like writing a book titled Keying My Car: It’s the Wrong Thing to Do or Why Flaming Bags of Dog Poop on My Doorstep Just Aren’t Funny.

    Read at 01:01 pm, Nov 19th

  • Advocates: MTA Using Money It Doesn’t Have to Hire Cops It Doesn’t Need

    The MTA has to focus on actually providing reliable transit to riders instead of sinking more money into a police hiring spree that will disproportionately affect low-income riders and riders of color, transit advocates told Streetsblog on Monday. In June, Gov.

    Read at 04:44 am, Nov 19th

  • Republicans won't concede: They react to sweeping losses by attacking democracy

    Republicans, led by President Trump, have been a united chorus of cries that any impeachment inquiry is meant to overturn the results of an election.

    Read at 04:12 am, Nov 19th

  • Can Bloomberg’s unconventional strategy win a Democratic nomination?

    CONCORD, N.H. — Michael Bloomberg was not the talk of New Hampshire on Friday. Robert Pauwels, an undecided independent voter, was waiting for former vice president Joe Biden to appear at a town hall in Franklin on Friday evening. Asked about Bloomberg, he shrugged.

    Read at 12:43 am, Nov 19th

  • Babel's Funding Plans

    One of the greatest strengths of open source software is that it is open and free for anyone to contribute. This also leads to one of its greatest challenges, which is to support consistent, sustainable maintenance. Babel isn't a company. As mentioned in the 7.0.

    Read at 12:33 am, Nov 19th

  • 'An Extraordinary Day': Brazilian Leftist Leader Lula Freed From Prison

    Former Brazilian President Luiz Inácio Lula da Silva, known as Lula, was freed from prison Friday after a year-and-a-half behind bars due to a politically motivated prosecution from the country's right-wing government.

    Read at 12:22 am, Nov 19th

  • Using MVC to Structure Go Web Applications

    What is MVC? As you learn to program, you will eventually start to notice that some code bases are easy to navigate while others are confusing and hard to maintain or update.

    Read at 12:21 am, Nov 19th

Day of Nov 18th, 2019

  • Winning the Internet

    It’s a big internet out there, and most of it is terrible. I thought I’d share some of my methods for fighting back as an aging pseudo-techie. Facebook Don’t trust anyone who drinks out of their own brand. Less is less here, and less is good. Keeping in touch with people: good. Knowing where people might be so you can avoid them: good. Drunkenly ranting at anti-vaxxers and political fringe wackos: probably bad, but you’re already drunk so you’re going to do it anyway. I’ve muted everyone who doesn’t post timely news I should know about, or sufficiently entertaining comics. Most of my time on Facebook is spent ordering obscure cartoon mashups from TeeFury and watching Cyanide and Happiness. Status: Winning News Totally happened. I scan the headlines on Google news once a day to answer two questions: is the world close enough to destruction to excuse going home early? and have they found out anything about space that involves a cool picture of a black hole? I legitimately do not understand why anyone cares about the rest of it. Status: Winning Twitter If there’s one picture that is Twitter, it’s this one. I still don’t get Twitter. I’m bad at it, so I almost never do anything with it. Then I decided to follow a few people who had followed me, and one of them turned out to be a twenty-something non-binary cosplayer and Google engineer. Three likes later, Twitter starts showing me people they follow and like, who are a bunch of other cosplaying non-binary engineers and Twitch streamers. These people tweet a lot: my feed was overrun with engineering jokes and costumes that took more effort than I’ve put into the last thirty Halloweens combined. I figure I’m good here as long as I don’t touch anything. Status: Won Instagram Okay, this one’s a bit of a stretch. I’m not sure what’s happening on Instagram. I guess there’s money in it? I think it causes selfies. Or brunch. I might be losing this one. Most of my feed is ex-girlfriends on vacation. Status: Unknown Reddit [Stupid caption] There is no way to know what will happen to you on Reddit. Could be nothing. Could be death threats. Could be awkwardly effusive praise. I leave maybe three comments a year. An ex-mercenary who believes in ghosts called me a loser. Three people told me I didn’t really exist. I keep my head down and mostly follow r/AmITheAsshole, r/LegalAdvice, and r/ShowerThoughts. So far I’ve learned people are assholes but worried about it, if they ask for cash it’s a scam, and someone else has had every clever thought I’ve ever had way before I did. Also, most of Buzzfeed is people copying popular Reddit threads, then making them worse with stupid captions. Status: Cautiously entertained Email There was a time when email was the scariest thing on the internet. Some people are going for inbox zero or some other nonsense. I think my total unreads topped out at 1.2 million before I turned off the badge. Not much thought goes into most emails, why spend time worrying about them? At least three of my email addresses are retired, collecting scams and junk mail behind forgotten passwords. Status: Winning Privacy “Area Man Secures Privacy, Yells at Ball.” Over. Everybody lost. I figure try to restrict what governments and companies can do, not what they can know, because they already know everything. Maybe find a cabin under dense foliage. Status: Losing Dating I forgot how many movies these two did together. I worked at OkCupid for a couple of years. I went on a lot of dates and met my girlfriend, who lives with me. Now there’s Tinder. Tinder scares me. I can’t help with this one. Status: Won just in time Games Those of us that saw this at the kid’s real age acted just like him at his fake age when we hit it for real. Two hours of Helldivers every Sunday with a drinking buddy. Occasional online games with my friends in Maine. Around November, I watch the last few months of Zero Punctuation and download the one he liked. Sometimes I finish it. Never, ever play against strangers, and if you must, mute the coms. Status: Winning except when Max is playing Asuka Notifications Some notifications are more important than others. Turn them all off before they destroy your mind. The only things that can buzz my phone are texts and Slack. Status: Winning Slack That’s you, Slack. That’s what you sound like. I do not know how to fight Slack without a time machine and a tire iron. I’ve developed a twitch reaction to the fractionally longer vibration my phone makes to distinguish a Slack message from a text. 30 percent of my working day is somehow consumed by Slack, even though only 10 of that 30 has anything to do with me, and 1 percent is telling people to be quiet and go back to using Slack. After leaving all the Trojan horses outside the gate in the twenty-year war for my attention, Slack brought corporate-mandated artillery and leveled the city. I fear Slack will undo me, laughing as I burn in the inferno of my hate. Status: Losing And that’s all the internet, afaik. Good luck! Source: Winning the Internet

    Read at 11:21 pm, Nov 18th

  • San Francisco And NYC Begin To See The Ugly Side Of ‘Fair Workweek’ Laws

    Read at 10:48 pm, Nov 18th

  • Chick-fil-A to End Donations to Christian Charities after LGBT Backlash | National Review

    .post-list-article__eyebrow New Bill Would Get Financial Institutions Involved in Gun Control .post-list-article__meta It comes via Representative Jennifer Wexton, the Democrat who recently replaced Barbara Comstock in Northern Virginia. The obvious inspiration is Andrew Ross Sorkin’s suggestion in the New York Times last year that financial institutions should reject or report gun purchases made on credit cards if they deem ... .post-list-article__entry .post-list-article__text .post-list-article__eyebrow What Do Republican Voters Want? .post-list-article__meta The latest entry in the post-Trump conservatism sweepstakes was Marco Rubio’s speech at the Catholic University of America in early November. The Florida senator made the case for a “common-good capitalism” that looks on markets in the light of Catholic social thought. “We must remember that our nation ... .post-list-article__entry .post-list-article__text .post-list-article__eyebrow Impeachment Woes and DACA Throes .post-list-article__meta This excerpt is from episode 176 of The Editors. Charlie: Yesterday was the day on which the rain stopped and the sun hid behind the clouds and the eyes of the nation turned in unison toward Capitol Hill for the first day of public hearings in the impeachment of Donald Trump. The results of that first day were ... .post-list-article__entry .post-list-article__text .post-list-article__eyebrow Elise Stefanik Stood Out on Day One of the Impeachment Hearings .post-list-article__meta Representative Elise Stefanik of New York earned high marks for her questioning of U.S. diplomats on Wednesday, the first day of public impeachment hearings. Bloomberg View columnist Eli Lake called Stefanik’s questioning “very impressive.” Fox News anchor Bret Baier agreed, as did former Obama ... .post-list-article__entry .post-list-article__text .post-list-article__eyebrow The Houellebecqian Moment .post-list-article__meta We are living in the imagination of Michel Houellebecq. The bête noire of French literature has spent decades deploring the erosion of Western mores that he believes resulted from the sexual revolution of the 1960s. His last novel, Submission, revolved around the election of a theocratic Muslim to the French ... .post-list-article__entry .post-list-article__text .post-list-article__eyebrow ‘Epstein Didn’t Kill Himself’ .post-list-article__meta It was just one more segment to fill out the hour, and thereby fill the long 24 hours of Saturday’s cable news on November 2. Or so it seemed. Navy SEAL Mike Ritland was on the Fox News program Watters World to talk to Jesse Watters about trained German shepherds like the one used in the raid that found ... .post-list-article__entry .post-list-article__text .post-list-article__eyebrow The GOP’s Jackson Pollock Impeachment Strategy .post-list-article__meta Maybe you’re a fan of Jackson Pollock’s paint-splatter stuff. That’s cool. My only point is that when you flick paint at a canvas, nobody expects the result to look like a tree, a person, or a bowl of fruit. Similarly, in politics, when you throw everything against the wall to see what will stick, the ... .post-list-article__entry .post-list-article__text Source: Chick-fil-A to End Donations to Christian Charities after LGBT Backlash | National Review

    Read at 07:27 pm, Nov 18th

  • Here’s the Waiver Colin Kaepernick Was Asked to Sign to Get Back on the NFL’s Plantation

    Shortly before the NFL held a sham one-man slave auction combine for Colin Kaepernick, the league presented the embattled activist and quarterback with a waiver that essentially torched the prospect of Kaepernick participating in the public relations hoax reportedly concocted by Jay-Z, NFL Commissioner Roger Goodell, and NFL owners. To be clear, this was a publicity stunt. NFL teams are free to evaluate, work out and sign players at their discretion. But after reaching out to every team in the league, there hasn’t been a single team interested in even talking to Kaepernick or watching a workout. Yet last week, without any prompting, the NFL’s front office suddenly demanded suggested that the teams who, again, had shown no interest in the former 49er QB — and who had to pay him millions in a grievance settlement — should head to Atlanta less than 24 hours before game time to watch Kaepernick exercise. “I’m a little bit pessimistic because I’ve talked to all 32 teams,” Kaepernick’s agent Jeff Nalley said to . “I’ve reached out to them recently, and none of them have had any interest. I’ll tell you this: No team asked for this workout. The league office asked for this workout.” Aside from the suspicious timing, ESPN’s Howard Bryant notes that the league also prohibited Kaepernick’s team from filming the workout, a stipulation that is almost unheard of. The issue that led to the impasse was the NFL’s insistence that Kaepernick sign an “unusual” waiver. Kaepernick has reportedly been mulling a collusion lawsuit against the NFL. Contrary to popular belief, Kaepernick has never challenged the NFL in a court of law. While news outlets have called Kaepernick’s previous settlement a “lawsuit,” it was technically an that was settled through arbitration, as required by the NFLPA union contract. ’s Mike Florio, who is also a lawyer, reports: The three-page, 13-paragraph documents contains several specific provisions that could be relevant to the question of whether the NFL was trying to parlay the waiver into a release of any claims for collusion/retaliation that Kaepernick could make as a result of his ongoing unemployment by the league since settling his first collusion case in February… If I were representing Kaepernick, and if the goal were to have a genuine workout aimed at enhancing his chances of being signed by an NFL team, I would have asked immediately for the document to be revised to specifically clarify that any and all potential employment rights would be preserved. If the league had refused, I wouldn’t have signed it, because the language leaves the door sufficiently ajar for a subsequent defense to a collusion/retaliation case that signing the waiver extinguished the claims. Here is the document in full: According to , rapper, NFL partner and heralded capitalist, Jay-Z was “disappointed with Colin’s actions and believes he turned a legitimate workout into a publicity stunt.” Of course, Sports Illustrated didn’t name its “sources” but some have speculated that the quote came from the Official Entertainment Minstrel of the National Football League: Shawn Corey Carter. While NFL insiders have said that Kaepernick than many of the who have signed contracts to play in the NFL since Kaepernick was whiteballed, the signal-caller remains unsigned. ESPN blowhard and Great Value Jason Whitlock, Stephen A. Smith, who explained that Kaepernick worked every day and spent his own money to show off his skills because Kaepernick wanted to be “a martyr,” remains a fucking joke. Some people will undoubtedly take issue with the implication that Kaepernick was, or is, a slave. But that’s not how analogies work. For instance, if I called Stephen A. Smith the Michael Jordan of sellouts, that does not mean that I think Shuck and Jive Hall-of-Famer Stephen Asswipe Smith (I’m pretty sure that’s his real name—or at least his rap handle) is a great basketball player. But if I did compare the NFL to a plantation, then Jay-Z would probably insist that working for Massa is better than freedom. Source: Here’s the Waiver Colin Kaepernick Was Asked to Sign to Get Back on the NFL’s Plantation

    Read at 07:09 pm, Nov 18th

  • Flat Application Structure in Go

    Rather than spending time trying to figure out how to break code into packages, an app with a flat structure would just place all of the .go files in a single package. A flat application structure is what almost everyone begins with when diving into Go.

    Read at 05:43 pm, Nov 18th

  • Mulvaney defies House subpoena, cites immunity 'one minute' before deposition

    Acting White House chief of staff Mick Mulvaney on Friday defied a subpoena for his testimony in the House impeachment probe at the last minute, in what is likely the Democrats’ final effort to hear privately from witnesses about President Trump’s contacts with Ukraine before their inquiry goes

    Read at 05:28 pm, Nov 18th

  • The Death of the Rude Press

    In April, Great Hill Partners, a private equity firm, purchased Gizmodo Media Group, the collection of websites formerly known as Gawker Media, from Univision.

    Read at 02:34 pm, Nov 18th

  • New York

    If you walk any direction other than south in Inwood, you’ll eventually reach a railing. And if you go any further, you’ll find yourself in one of three bodies of water. So wandering aimlessly in search of food isn’t the best tactic around the northern tip of Manhattan.

    Read at 02:22 pm, Nov 18th

  • Public keys are not enough for SSH security

    If your organization uses SSH public keys, it’s entirely possible you have already mislaid one. There is a file sitting in a backup or on a former employee’s computer which grants the holder access to your infrastructure.

    Read at 02:22 pm, Nov 18th

  • Why it's time to ditch the 'OK Boomer' meme

    You might not have noticed, but apparently you’re living through something of a revolution.

    Read at 02:16 pm, Nov 18th

  • “No one would tell to someone else what they should do”: Nicolò Ribaudo on developing Babel and other things

    Nicolò Ribaudo is both a core Babel developer and a TC39 invited expert — while also being a mathematics student. He’ll give a talk soon at HolyJS 2019 Moscow.

    Read at 02:11 pm, Nov 18th

  • NYPD Says It Was ‘Stabbed in the Back’ Because Voters Won’t Let Them Lie and Kill With Impunity

    New York Police Department officials are upset over the passage of a ballot measure that gives a civilian oversight watchdog more authority to investigate police officers who lie during investigations into police brutality, corruption and misconduct. Police officers will kill you.

    Read at 02:03 pm, Nov 18th

  • Democratic Socialists Had a Pretty Good Election Night

    Want the best of VICE News straight to your inbox? Sign up here. Democratic Socialists, the current bogeyman of the right, are celebrating some big Election Day wins.

    Read at 02:01 pm, Nov 18th

  • A Look at JAMstack’s Speed, By the Numbers

    Time To First Byte (TTFB) First Contentful Paint (FCP) First Input Delay (FID) BigQuery #standardSQL SELECT REGEXP_REPLACE(yyyymm, '(\\d{4})(\\d{2})', '\\1_\\2_01') AS date, UNIX_DATE(CAST(REGEXP_REPLACE(yyyymm, '(\\d{4})(\\d{2})', '\\1-\\2-01') AS DATE)) * 1000 * 60 * 60 * 24 AS timestamp, IF(devic

    Read at 01:20 pm, Nov 18th

  • The mixin PHP DocBlock - Freek Van der Herten's blog on PHP, Laravel and JavaScript

    Original – Oct 14th 2019 by Freek Van der Herten – 5 minute read When using PHP, you've probably used DocBlocks. They can be used to add additional information that can't be inferred by looking at the source code alone. DocBlocks can be used by IDEs, like PhpStorm, to improve autocomplete suggestions. In this blogpost, I'd like to highlight a not so well known DocBlock: mixin. more A first example of a DocBlock # Before looking at a mixin DocBlock, let's first get a feel of how DocBlocks can make autocompletion better. With regular type hints, you can only specify that the function returns an array. The DocBlock to signals that the function returns an array of AppModelsPost objects. When you loop through the value returned by allPosts an IDE knows which kind of object is inside the array and can provide autocompletion for that object. A theoretical first example # The mixin DocBlock allows you to signal that all properties and methods of another class are available on the class where the mixin is applied upon. Here's some contrived code to illustrate it: If you call a method a method on classB that isn't available, it will defer to calling classA. The intention here is to make every method that is available on classA part of classB as well. Thanks to that mixin DocBlock, an IDE knows that intention as well and will also suggest functions of classA when calling methods on classB A practical example # Let's take a look at some practical example of how this can be used. laravel-medialibrary is a package that can be used to associate Eloquent models with media. One of its features is the ability to generate conversions whenever an image is being associated with a model. A conversion can be defined on a model like this. So you first call addMediaConversion and then you can call any manipulations, like width and height, you want. Behind the scenes, the addMediaConversion will return an instance of SpatieMediaLibraryConversionConversion. This class is responsible for handling the registration of the image conversions. It does not directly handle image manipulations like width or height. Those are handled by SpatieImageManipulations. Whenever we call a function on Conversion that doesn't exist on itself, it will defer the call to Manipulations. The deferring is done by this piece of code. With this code in place, it will all work, but the developer experience won't be great. The IDE will offer no autocompletion when typing $this->addMediaConversion('thumb')->. To make autocompletion work we added this mixin at the top of the Conversion class. That mixin allows the IDE to add autocompletion, so developers can just pick the image manipulation method they want. Using a mixin DocBlock to autocomplete Laravel API resources # In the previous example the mixin DocBlock was used within package code, but you can use it inside projects too. At Spatie, they are often using in Laravel's API resources. An API resource is a class that maps the attributes of an model to the properties on an API response. Here's an example of such a resource. In an API resource in Laravel, calling a property on $this will get the property of the underlying model. But as it stands, typing $this-> will not offer autocompletion of the model attributes. We must perform two steps to get autocompletions. First, we must let our IDE know which attributes there are on the model. We can use the excellent barryvdh/laravel-ide-helper for this. With the package installed, executing php artisan ide-helper:models will generate a file that lets your IDE know which properties there are available on a model. The second and final step to get autocompletion working on API resource is adding a mixin DocBlock on it. With this in place, autocompletion will work. Closing thoughts # A mixin DocBlock can be used to hint that methods from another class are available on the class where the DocBlock is applied on. There is no formal standard of which DocBlocks are available. The de facto standard is this list on the documentation of phpDocumentor. You'll notice that the mixin DocBlock isn't there. So be aware that this DocBlock probably doesn't work in any IDE. In PhpStorm, it works perfectly. Source: The mixin PHP DocBlock – Freek Van der Herten’s blog on PHP, Laravel and JavaScript

    Read at 03:31 am, Nov 18th

  • Voters in Kentucky, Mississippi decide whether Trump can sway races for governor

    Voters are heading to the polls Tuesday to decide governor’s races in Kentucky and Mississippi, where President Trump has mounted an aggressive effort to stop Democratic candidates eager to prove their party can still win statewide contests in the conservative South.

    Read at 01:27 am, Nov 18th

Day of Nov 17th, 2019

  • The 11-day teachers strike in Chicago paid off

    Thousands of Chicago public school teachers are back in class. Teachers returned to school Friday after going on strike for 11 days. They had picketed in the snow and rain until union leaders and city officials struck a deal to raise teacher pay and to put a social worker and nurse in each school.

    Read at 04:03 pm, Nov 17th

Day of Nov 16th, 2019

  • Sondland reverses himself on Ukraine quid pro quo

    Sondland, Trump’s ambassador to the European Union, added that he later told Andriy Yermak, a top Ukrainian national security adviser, that the aid would be contingent on Trump’s desired investigations. “After that large meeting, I now recall speaking individually with Mr.

    Read at 05:45 pm, Nov 16th

  • Uber promised profits, but offered few details when analysts hammered it with skeptical questions

    Uber executives dangled a new and attractive profitability target in front of analysts on its earnings call Monday, but analysts were skeptical and pressed for more details, which Uber did not provide. Investors apparently share the skepticism, sending the stock down more than 8% on Tuesday.

    Read at 03:16 pm, Nov 16th

  • House impeachment committee release excerpts of Sondland and Volker testimonies

    House Democrats on Tuesday released excerpts of the transcripts of their closed-door depositions with former US Special Envoy for Ukraine Kurt Volker and US Ambassador to the European Union Gordon Sondland.

    Read at 03:11 pm, Nov 16th

  • Warren’s climb in the polls should horrify Democrats

    Correction: An earlier version of this column incorrectly referenced rural hospitals in Sen. Elizabeth Warren’s Medicare-for-all proposal. The plan assumes that non-rural hospitals “can meet their costs based on 110 percent (or less) of current Medicare payments.

    Read at 03:09 pm, Nov 16th

  • Sanders calls his Medicare for All plan "far more" progressive than Warren's

    Sen. Bernie Sanders defended his Medicare for All plan on the campaign trail in Iowa, telling ABC News that it's "much more progressive in terms of protecting the financial well being of middle income families" than Sen. Elizabeth Warren's plan, which she unveiled last week.

    Read at 03:02 pm, Nov 16th

  • 4-Day Workweek Boosted Workers' Productivity By 40%, Microsoft Japan Says

    Workers at Microsoft Japan enjoyed an enviable perk this summer: working four days a week, enjoying a three-day weekend — and getting their normal, five-day paycheck. The result, the company says, was a productivity boost of 40%.

    Read at 02:59 pm, Nov 16th

  • Pete Buttigieg Is an Iowa Front-Runner. Will That Help Him Anywhere Else?

    National polls have him firmly behind the leading candidates across the country, and questions remain over Mr. Buttigieg’s ability to create a diverse coalition. But in Iowa, he’s on the rise. DECORAH, Iowa — Ask almost any Iowa Democrat, and they’ll tell you: Pete Buttigieg is smart.

    Read at 03:34 am, Nov 16th

Day of Nov 15th, 2019

  • Logic: a Primer - LessWrong 2.0

    There are many definitions of logic but we can affirm, without loss of generality, that logic is the study of what is rational and of the inference methods that can be used to achieve a truth. Logic represents the foundations of philosophical and mathematical thought, we could even go so far as to say that logic is what the totality of human thought is based upon. Nowadays, however, logic seems to be nowhere to be found in everyday life or human affairs: if there is a disease of thought that inflicts the modern world, it is undoubtedly a terrible lack of the former. By this I do not mean that we find ourselves in the most irrational slice of history (Middle Ages, anyone?) and personally I do not believe that human history unfolds "asymptotically", that is from a lesser perfection to greater economic, political, of-thought perfection, towards the final self-realization as Hegel and Marx believed. I just want to say that we inhabitants of this space-time region we call the 21st century have been pardoned with the possibility of obtaining any information we need with times and costs approaching 0 and the fact that we are still so illogical in spite of everything makes us embarrassing and unworthy. If the tone of the speech makes me seem extremely embittered it is because I really am. Think for example of all the controversies that have arisen in recent years regarding vaccines: they make children autistic, they give rise to other diseases in adulthood etc. To disprove these statements, an internet connection, a minimum cognitive capacity and a semblance of critical thinking are enough. You just need to discriminate between fake sources and reliable sources. A quick glance at global statistics is sufficient to verify that: 1) Vaccines have saved millions of lives since they were invented. 2) There is no stochastic correlation between autism (or other diseases) and vaccines. In fact a rapid self-training on the subject should be sufficient to convince anyone that vaccines have been one of humanity's greatest achievements. And this is just one of the millions of indicators on the lack of inductive and deductive capacities of which we suffer. Let now concentrate on the basic aspects of the logical doctrine. Logic is the study of reasoning and it takes place in a well-defined and consistent formal system. The basic rules of the formal system are called axioms, ie fundamental prepositions which cannot be proved but which are so intuitive that their truth is accepted a priori. Based on these "atoms", (almost) all theorems can be derived. Now we will proceed to create our very simple formal system of which we will explore the logical attributes. Let's call our system S, we define the Axioms of S. Let P, Q, Z be Propositions of S, then: 1) P=P (identity) - in English: Every thing is equal to itself. 2) P=Q →Q=P (symmetry) - in English: if proposition1 = proposition2 then proposition2 = proposition1 . 3) P=Q and Q=Z →P=Z (transitivity) - in english: if proposition1 = proposition2 and proposition2 = proposition3 then proposition1 = proposition3. 4) ¬¬A=A - in English: saying "not not something" is equal to saying "something". 5) P∨¬ P = True - in English: The statement "one thing or its opposite" is always true (tautology). This axiom is the basis of the famouse joke: "I asked a logician if he wanted his coffee with or without sugar and he answered "Yes". 6) P∧¬ P = False - in english: The statement "one thing and its opposite" is always false (contradiction). These are generally the axioms of first-order logic. In the above rules we have listed the logical connectives (or, and, not) but not the quantifiers, of which no logic of the first order can do without. Simply put, quantifiers serve to expand the properties of propositions beyond themselves, to all propositions that share the same characteristics: Existential quantifier (∃) - in English: "There exist". Universal quantifier (∀) - in English: "For All". Now let's try to derive some theorems of our system S starting from the axioms and the quantifiers enunciated: ∀(P,Q,Z)  ((P∨Q∨Z)∨¬(P∨Q∨Z))) This means that for every propositions triad either their conjunction by "or" connective is true or the negation of their conjunction is true, this derive from the fifth Axiom (in fact it is nothing but a restatement of that axiom and applies to any grouping of propositions, not only for triads). ∃A∃B∃C  ((A∧B)∧(B∧C)∧(C∧A)) which means that there exists three propositions such that the above formula is always true, that is when A and B and C are true. ¬(¬A∨B)∨A=A This is a theorem whose utility is found in the simplification that it gives us, mapping a furmula with 4 connectives and two variables to a single variable of the formula itself. A∨(A∧B)=A Another simplification. It is easy to see that the two identities above hold up, just take a look at the following truth table: AB|OTPUT 0 0 | 0 0 1 | 0 1 0 | 1 1 1 | 1  Where 0 means false and 1 means true. This Boolean truth table reflects the behavior of the above formulas and it can be seen that the output is always equal to the value of the 'A' variable. At this point the basic mechanics of logical reasoning should be clear to everyone. Note that, in logic, we are interested in proving truths and not falsehoods: falsehoods are trivial, truths are not. What has always fascinated me about logic is its deductive power and its ability to produce tautologies. If you try, as an experiment, to ask a child "Is A equal to A ?" or if "A and not A" is true or false, a meaningful sample will answer correctly, this is because there is something innate behind these reasonings. Moreover, it is almost "magical" that, starting from very simple rules, we can get to prove the Poincarè conjecture or Fagin's theorem or Ads/CFT Correspondence or billions of others mathematical milestones (mathematics emerge from logic). The greatest value that mathematics/logic has for me (and here I could sound a little fundamentalist or Platonic) is to allow us to study eternal truths of priceless beauty. Think for example of the Pythagorean theorem, it was true before the birth of the Universe, before Pythagoras himself formally proved it, it is true today and will be true even after the thermal death of the universe. (Christian) Religion tells us that God created the world in seven days, that man was created from the mud and the divine breath, that Moses freed the slaves by opening a sea in two, that a virgin girl gave birth to the son of God that Christ rose from the dead after 3 days.... but never gives us any proof of anything. Logic and mathematics, on the other hand, show us substantial truths that , once proved, cannot be refuted. To be honest, mathematics is a process of discovery: when a theorem is proved it takes a truth value for us (human beings) but in fact it has always been and always will be true. Religion in comparison is ash. Excuse me for the small and emphatic philosophical digression, we can go back to examining concrete problems and the ways in which logic could eradicate them. In my country, Italy, you can't breathe good air lately. The revival of old and dangerous ideologies has been raging for some time now and this has led to the appearance on the scene of politicians with dubious ethical orientations and even more dubious management skills. The point is that if logic seems innate in man, his inclination to irrationality is innate too, the latter being much more dangerous and contagious than the first. One person, one thought, one irrational event inevitably attracts others like a magnet and, before realizing it, one finds oneself in a stinking social and cultural climate. I'm thinking that maybe I should have warned you that this post would have political content, but now it's too late. I stress out, however, that these contents are indispensable to the achievement of my point. I maintain that the blame for the rise of these dubious individuals, who would probably be treated as psychiatric patients in a healthy society, is not to be attributed to them but to the millions of supporters who, acting in an illogical manner, let themselves be misled by their empty words. Let me give you an example: The propaganda machine of these presumed politicians is mainly based on racial and gender hatred and on the most stringent nationalism. If you are reading this from the United States, from China, from Venezuela, from Brazil, from North Korea (assuming it is possible), from turkey ... you already know very well what I'm talking about. In one of the many public events, an Italian internet channel has interviewed some of the supporters of these ideologies, let me report an answer in particular: "I am in favor of the death penalty but against abortion because you cannot decide for the lives of others." Doesn't this sentence cause you some rational annoyance? Doesn't it cause you a cognitive short-circuit? Remeber our fifth Axioms? The above proposition is the is the English equivalent of P∧¬ P and if you are receptive readers you will remember that this axiom represents a contradiction, that is a thing that is always false, no matter what the proposition under consideration is. People who talk this way are the definitive proof that Aumann's theorem, something that users of this site know well, does not apply to humans, ie that men are not perfect Bayesian agents. Let me conclude by saying that I passionately believe in the power of logic as the sole deterrent against our self-destruction but, in order to emerge victorious, we must teach ourselves how to reason logically again and, above all, we must not be tempted by the simplest and most primitive pleasures of irrationality. Source: Logic: a Primer – LessWrong 2.0

    Read at 11:25 pm, Nov 15th

  • Narwhal, the 'unicorn' puppy with a tail growing out of his forehead - CNN

    Yes, his forehead. No, it doesn't wag. And, appropriately, his name is Narwhal. Well, his full name is "Narwhal the Little Magical Furry Unicorn," according to dog rescue nonprofit organization Mac's Mission, which took him in after he was discovered last Saturday. He was found in the freezing cold, with what appears to be the beginnings of frostbite on one paw. Unlike an actual narwhal whale, which has a protruding canine tooth that resembles a tusk, the tail on Narwhal's forehead is short and stubby, sprouting right between his eyes -- and flops from side to side when he plays. He has a normal tail, too, this one is just extra. Workers at Mac's Mission, which specializes in special needs dogs who had been abused or born with defects, say he's recovering quickly, with the frostbite healing. "He seems completely healthy other than some usual puppy worms he got meds for," said the organization in a Facebook post. Vets took X-ray scans which showed the tail isn't connected to anything. It has no real use, as far as they can tell, but it also doesn't cause him any pain and there's no medical reason to remove it -- so the forehead tail is here to stay. "The unicorn face tail does not bother Narwhal and he never slows down just like any normal puppy," said the Facebook post. He was found with another dog, which rescue workers speculate may be his father. This older dog, who has been named Poppa Smurf, is a Daschund Terrier mix -- so they assume Narwhal may have some Daschund in him as well. It's not clear what happened to the two of them before they were discovered, but a spokesperson from Mac's Mission told CNN Narwhal is from rural Missouri in the Midwest, and loves to play -- and now, he has thousands of fans online, after his special tail catapulted him to internet fame. The rush of online attention has been "crazy," the spokesperson, adding that the staff "feel like we're in a dream." He's not yet ready for adoption, Mac's Mission said online -- but that hasn't stopped Narwhal's fans from wanting to take him home. The organization has already received over 50 adoption applications for him, a spokesperson told CNN. Narwhal will likely be listed for adoption once he's older and has gone through more medical procedures like vaccinations. The staff say they also want to monitor his unicorn horn a little while longer to make sure it doesn't grow or become a problem. "Everyone is super interested in him," the spokesperson said — but "we are hopeful they are seeing the other available dogs as well!" Source: Narwhal, the ‘unicorn’ puppy with a tail growing out of his forehead – CNN

    Read at 10:56 pm, Nov 15th

  • Progressives, Hispanics are not 'Latinx.' Stop trying to Anglicize our Spanish language.

    Hispanic Americans face plenty of challenges as it is. The last thing we need are English-speaking progressives 'wokesplaining' how to speak Spanish.

    Read at 02:34 pm, Nov 15th

  • Warren wants to be a revolutionary — and electable. Her embrace of new taxes for health care shows the dilemma.

    Sen. Elizabeth Warren rolled out a $20.5 trillion health-care plan on Friday that sought to put an exclamation point on a central argument of her candidacy: that a liberal revolutionary can also be electable.

    Read at 02:33 pm, Nov 15th

  • Ousted Ukraine ambassador Yovanovitch says she was told to tweet praise of Trump to save her job

    The three House committees leading the Trump impeachment inquiry released two transcripts of the behind-closed-doors interviews they have conducted so far. Marie Yovanovitch, the ousted U.S. ambassador to Ukraine, told House impeachment investigators last month that U.S.

    Read at 02:28 pm, Nov 15th

  • Reiner Kraft

    Hello! What's your background and what do you do? Yunar is a startup in Berlin in the fintech space that was founded last year - with Deutsche Bank as the primary investor. I joined at the beginning of this year with the charter to build up a strong engineering culture and organization.

    Read at 02:27 pm, Nov 15th

  • Algebraic Structures: Things I wish someone had explained about functional programming

    Algebraic Structures are something I wish I’d understood better, sooner. I had a hazy idea of what they were, but didn’t know the correct terminology. That was a massive barrier to finding out more. What is an algebraic structure? Well, according to Wikipedia:

    Read at 02:25 pm, Nov 15th

  • Dear Apoorva Mehta (Founder and CEO of Instacart),

    On Sunday, November 3, 2019, through Tuesday, November 5, 2019, Instacart Shoppers will be walking-off for the fourth consecutive year.

    Read at 02:15 pm, Nov 15th

  • A white supremacist group filmed in front of the Emmett Till sign weeks after it was made bulletproof

    A white supremacist group filmed a video in front of the Emmett Till Memorial in Sumner, Mississippi, over the weekend, officials say.

    Read at 02:11 pm, Nov 15th

  • Attributes of object properties in JavaScript

    In this blog post, we take a closer look at the structure of properties in JavaScript. They are not atomic, but composed of multiple attributes (think fields in a record). Even the value of a data property is stored in an attribute! The following table lists all property attributes.

    Read at 02:10 pm, Nov 15th

  • Gaggle Knows Everything About Teens And Kids In School

    Gaggle monitors the work and communications of almost 5 million students in the US, and schools are paying big money for its services. Hundreds of company documents unveil a sprawling surveillance industrial complex that targets kids who can’t opt out.

    Read at 01:59 pm, Nov 15th

  • Taylor Swift says she's being banned from singing her old hits at AMAs

    Taylor Swift’s performance at the American music awards is in doubt, as is the future of a new Netflix documentary about her, the singer has claimed, thanks to an ongoing feud with “tyrannical” music managers Scooter Braun and Scott Borchetta.

    Read at 01:09 pm, Nov 15th

  • The Porch Pirate of Potrero Hill Can’t Believe It Came to This

    When a longtime resident started stealing her neighbors’ Amazon packages, she entered a vortex of smart cameras, Nextdoor rants, and cellphone surveillance.

    Read at 04:18 am, Nov 15th

  • How did the first world war actually end? - Paul Mason

    Journalist Paul Mason poses the question of how World War I actually ended, as this question is being roundly ignored amidst the often revisionist and pro-war centenary commemorations.

    Read at 04:13 am, Nov 15th

  • Zack de la Rocha guests on Run the Jewels’ new album RTJ3

    On their 2014 album, RTJ2, Run the Jewels brought Zack de la Rocha out of hiding for a cutting verse on the track “Close Your Eyes (And Count to Fuck)”.

    Read at 04:04 am, Nov 15th

  • Rage Against the Machine’s Zack de la Rocha unleashes debut solo single

    It’s only 7:00 a.m. here in Chicago, and already today the New York Mets signed Tim Tebow and Zack de la Rocha released his debut solo single. Maybe I should just go back to bed?

    Read at 04:04 am, Nov 15th

  • No really, pathlib is great

    I won some pathlib converts, but some folks also brought up concerns. Some folks noted that I seemed to be comparing pathlib to os.path in a disingenuous way. Some people were also concerned that pathlib will take a very long time to be widely adopted because os.

    Read at 03:17 am, Nov 15th

Day of Nov 14th, 2019

  • Why you should be using pathlib

    When I discovered Python’s new pathlib module a few years ago, I initially wrote it off as being a slightly more awkward and unnecessarily object-oriented version of the os.path module. I was wrong. Python’s pathlib module is actually wonderful!

    Read at 11:49 pm, Nov 14th

  • Why employers favor men — Quartz

    iStock It’s not news that women are much less likely to get hired for jobs than men, even when the candidates have the exact same qualifications. Now, new research sheds light on why this happens. Employers favor men not because they are prejudiced against women, but because they have the perception that men perform better on average at certain tasks, according to the research paper When Gender Discrimination Is Not About Gender. The paper was written by Katherine B. Coffman and Christine L. Exley, both assistant professors at Harvard Business School, who teamed up with Stanford University economics professor Muriel Niederle. “We find ample evidence of discrimination against women, as employers are significantly less likely to hire a woman compared to an equally able man,” the paper says. “This discrimination, however, does not appear to be driven by gender-specific stereotypes or animus.” The findings may help employers train recruiters to be aware of their biases and work around them. The two faces of discrimination Gender discrimination clearly runs through the workplace. Women earn about 78 cents on the dollar compared to men, the paper states. And in many industries, women are less likely to advance to the top of their fields. Women make up just 4.2 percent of CEOs at S&P 500 firms and 19.2 percent of board members. "This discrimination does not appear to be driven by gender-specific stereotypes or animus" The researchers wanted to take a closer look at the source of this gender divide, so they used online experiments to probe two types of gender discrimination: Statistical discrimination, which is rooted in beliefs about average gender differences in abilities or skills. Taste-based discrimination, which is driven by stereotypes, favoritism for one group, and a bias against another group. “With statistical discrimination, you have certain beliefs about men versus women and what they can do, and given those beliefs, you choose the person who you think is the best person to hire. You are simply acting in a way that you think will maximize your profits,” Coffman explains. “With taste-based discrimination, you know a certain person will be productive, but you’re sacrificing that by not hiring that person. We did not find so much of that at all.” While taste-based discrimination was not at play, they did find in their experiments that statistical discrimination does indeed work against women in the hiring process. Testing for gender bias To simulate a real-life hiring situation, the researchers created online experiments with 100 participants representing workers seeking jobs, and another 800 representing employers looking to hire workers. The workers were asked to complete a series of sports and math quizzes (stereotypically easier for men to answer), some of those questions easy and others hard. Overall, men performed slightly better than women, answering on average one extra question correctly. Employers then had to hire a candidate, choosing between one woman and one man. Each candidate’s score results on the easy questions were made available to the hiring official, but employers were not provided workers’ scores on the difficult questions--yet they were additionally told they would receive compensation if their hire did well on the hard quiz. When told that men did slightly better on average than women on sports or math tasks, employers were much less likely to hire a female worker than a male worker, even when two individual workers had identical easy quiz grades. The researchers then took gender out of the hiring decision. Workers were simply identified to potential employers as either born in an even month or an odd month. (In reality, but unknown to the employers, the researchers labeled all women candidates as odd-month, and all men as even-month.) Using test results as their guide, employees still steered clear of the odd-month, or female workers, choosing them only 37 percent of the time. When identified as women, they were chosen 43 percent of the time. “Just like the woman was hired less often, the odd-month worker was hired less often, too,” Coffman says. “That tells us the discrimination isn’t based on a prejudice against women, so it’s not that people in this setting don’t like hiring women. Instead, employees are drawing on the information about average performance and are not hiring members of lower-performing groups.” Women are more likely than men to hire other women Researchers also found evidence of “in-group” favoritism and “out-group” bias, meaning that employers were more willing to hire a member from the lower-performing group if the employers shared the same gender or birth month. In the gender experiment, female employers were much more likely to hire women than male employers were. When a woman was making the decision, women were hired 50 percent of the time, yet when a male employer was making the call, women had only a 40 percent chance of getting hired. This was true with the birth month groups, too: Even-month employers were much more likely to hire even-month workers than odd-month employers were. In fact, when birth month was the consideration, rather than gender, the difference was even bigger, with odd-month employers hiring even-month workers only 30 percent of the time. Clearly, sharing the same social identity can have an impact on hiring choices. “It seems to be the case that all employer types, on average, are willing to engage in discrimination against members of the lower-performing group,” the paper says. “But the extent of this discrimination is reduced when the employer shares a known demographic characteristic with the lower-performing group.” Fighting discrimination Coffman, who has conducted other research exploring the role of gender, hopes these findings will spur business executives to take a closer look at whether those doing the hiring within their organizations have general beliefs about men versus women that might affect their decisions about job candidates. ”Statistical discrimination … is thornier and is particularly difficult to root out” “We can all agree that taste-based discrimination is a really bad thing if you’re prejudiced against women and don’t want to hire them,” she says. “But statistical discrimination, where people act on their beliefs about average differences in ability between men and women, is thornier and is particularly difficult to root out. The people doing the hiring might not even realize they are acting on those beliefs. Having discussions about what beliefs we hold could help us to understand what factors are shaping our hiring decisions, and whether we are comfortable with those factors playing a role.” Job candidates should be aware that employers may have preconceived ideas about average ability differences among men and women in certain areas, so applicants need to provide any information they can to outweigh certain beliefs employers may have. “Anytime an employer has beliefs about differences on average between two groups and you’re a member of that lower-performing group, that may impact your ability to be hired, even when your own individual information is strong,” Coffman says. “In our sample, the employers have a small amount of information about this person. I would hope if an employer had more information about individuals, there would be less of a need to rely on average differences, and the information about group performance should become less and less important.” Clarification This article orginally included the sentence: "Women earn about 78 cents on the dollar compared to men." The line has been amended to include attribution. Related Reading: Researchers Prove C-Suite Gender Gap—but Can’t Explain It Gender and Competition: What Companies Need to Know Simple Ways to Take Gender Bias Out of Your Job Ads What do you think? Have you discriminated or been discriminated against because of gender beliefs? How would you coach a hiring officer through this trap? Source: Why employers favor men — Quartz

    Read at 03:41 pm, Nov 14th

  • Taming Dynamic Data in TypeScript

    I really like static types. A lot. When I would otherwise be using JavaScript, I’ve now fully embraced TypeScript. Fully utilizing static types, with all the safety they provide, can be a bit tricky when dealing with dynamic data — like JSON from an API call.

    Read at 01:20 pm, Nov 14th

  • Beyond Prefixing: A WordPress Developer’s Guide to PHP Namespaces

    Prefix everything. It is an adage that is old as the WordPress software itself. Prefixing has been a standard for WordPress developers for so long that it’s hard to imagine doing anything different. But, the time has come for something new.

    Read at 01:11 pm, Nov 14th

  • Techniques for instantiating classes

    In this blog post, we examine several approaches for creating instances of classes: Constructors, factory functions, etc. We do so by solving one concrete problem several times. The focus in this post is on classes, which is why alternatives to classes are ignored.

    Read at 12:51 pm, Nov 14th