10 things in tech you need to know today

Your Message Subject or Title

MANAGE SUBSCRIPTIONS
 | 
UNSUBSCRIBE
 | 
VIEW ONLINE

10 Things In Tech You Need To Know

March 03, 2017

Advertisement

Good morning! Here’s the news you need to know this Friday.

1. Snapchat parent Snap’s share price surged 44% on its stock market debut, after the company raised $3.4 billion (£2.8 billion) in its initial public offering. It was valued at $33 billion (£27 billion) at the opening price, and CEO Evan Spiegel is estimated to have a $4.5 billion (£3.7 billion) stake in the business.

2. Amazon blamed a major outage on Tuesday on an employee “incorrectly” entering an input command, removing a number of servers from service. The glitch meant sites including Quora and Slack were down for most of the afternoon.

3. Susan Fowler, the former Uber engineer who documented her sexual harassment complaints in a viral blogpost, has said the company is blaming her for users deleting their accounts. Uber denied the allegations and said it wasn’t investigating Fowler personally.

4. Google will roll out Google Assistant more widely across Android M and N devices from today. The virtual assistant was initially limited to Google’s own Pixel smartphone, but will launch for US users, then in Germany, Australia, Canada, and the UK.

5. SolarCity, the solar power company owned by Elon Musk’s Tesla, cut around 20% of staff jobs last year, marking a sharp reversal on its previous growth. The company cut staff across operations, installations, manufacturing, sales and marketing, possibly due to a slowdown in the rooftop solar market.

6. Uber is applying for permits to test its self-driving vehicles in California, marking a U-turn on its previous position. The company had originally packed up its self-driving cars and taken them to Arizona for testing, after Californian authorities said it didn’t have the correct permits.

7. US Vice President Mike Pence used an AOL email address to send sensitive messages while he was governor of Indiana — which was then hacked. Pence’s emails dealt with issues like terror attacks, but the account was compromised by a scammer who sent fake messages to his contacts.

8. Snapchat creator Mike Platco has 500,000 followers but he can’t even get a meeting at the company’s HQ. “That was the very first in a long history of instances where Snapchat really solidified its position as giver of zero fucks,” Platco told BuzzFeed News. It might cost the company: Several major creators are moving their audiences to Instagram, where they say they get more support.

9. Chinese shopping giant Alibaba will invest $177 million (£144 million) in one of India’s biggest ecommerce businesses, Paytm. Alibaba is leading a $200 million investment round which values the company at $1 billion.

10. Nintendo made the cartridges for its new Switch console taste awful so that kids wouldn’t swallow them by accident. The games company coated the cartridges in the same agent used in anti-nail biting solution, which has an extremely bitter taste.

Share this:

Email sent to:  
baolei1234@gmail.com

  |  
Manage your email preferences

  |  

Unsubscribe

Terms of Service
  |  
Privacy Policy
150 Fifth Avenue, 8th Floor New York, NY 10011

Tags: IFTTT Gmail

React Newsletter - Issue 53

React Newsletter - Issue 53

 

View on the web    Archives

ISSUE 53  December 1st 2016

  Articles  

The magic behind 💅 styled-components

Ever wonder what styled-components are doing under the hood? Now you’ll know.

mxstbr.blog  

A Practical Guide to Redux

This is a hands on guide for setting up Redux in a React project. The post includes a repo and demo app to help you get up and running with Redux as painlessly as possible.

lorenstewart.me  

What the heck is a ‘thunk’?

Spoiler alert! A thunk is a function that is returned by another function! I am still not sure why they didn’t just call it a funfunction but hey, that’s just me.

Dave Ceddia talks about thunks and how we can use them effectively in our code!

daveceddia.com  

Should you store your form state in Redux?

In the world of Redux there are a couple different ways people are thinking about how and when to use it. Some people say you should use Redux everywhere, while others say that it should be limited. Gosha Arinich weighs in on this issue with his thoughts on the matter.

goshakkk.name  

Why Redux need reducers to be “pure functions”

You may have heard that Redux depends on “pure functions” from functional programming. Well, what exactly does that mean? Raja Rao DV is going to tell us!

freecodecamp.com  

Rules For Structuring (Redux) Applications

It can often be hard to figure out a good application structure when starting with a new technology. Usually documentation isn’t going to get deep enough to tell you how to outline your app. In this article Jack Hsu lays out his method for architecting his frontend apps with Redux.

jaysoo.ca  

 

  Tutorials  

React Component Profiling

The React library is still evolving and Facebook’s React team is working on a set of features to improve it, both internally (e.g the new reconciler algorithm) and to upgrade developer experience. In this quick blogpost you’ll take a look at a feature that was presented in the latest released version (v15.4.0): Component Profiling, which clearly could help developers to debug their code.

yld.io  

Go React native with restdb.io and Auth0

Building a fully functional react-native app with persistence and authentication is surprisingly easy. Using restdb.io for cloud hosted data and Auth0 for user authentication, you get lots of features right out of the box. Follow the steps in this post and you’ll be up and running in no time.

restdb.io  

 

  Resources  

React Router + Firebase Auth Example

If you’re using Firebase and React Router and are curious how you set up out with React Router V4, check out this guide form Tyler McGinnis

github.com  

 

  Projects  

React Native Touchbar

TouchBar for react-native-macos!

github.com  

 

  Videos  

ReactCasts #7: Hot Module Replacement in Create-React-App

Hot Module Replacement (or HMR) is a WebPack feature that allows “on the fly” module updates for your app. Create-React-App uses WebPack internally, but HMR working out-of-the-box only for for stylesheets (and not for React components). This episode discusses the reasoning behind this and shows two ways you can add Hot Module Replacement to projects created with Create-React-App.

youtube.com  

 

React Training

Want expert React training from Ryan Florence and Michael Jackson, the authors of React Router?

New York, NY - Dec 8th - Dec 9th - Advanced React

React Training  

You received this email because you subscribed via the React Newsletter site. We’ll be sorry to see you go but you can unsubscribe instantly.

Immutable Alley Draper, Utah

 

 

©2016 React Newsletter | Privacy Policy | Twitter

Tags: IFTTT Gmail

What’s next for Lima? Follow our progress on the roadmap

Lima

Hello,

Your Lima experience is the most important thing for us, which is why we keep improving the product and adding features with each new release.

To make sure you have the best overview of what’s coming next, we want to give you more insights of what we’re currently working on here at Lima.

That’s why we’ve decided to make our Product Roadmap public, so that you can see what’s planned and subscribe to the features that interest you the most.

We hope you like it!

Visit our roadmap

Curious about how it works? Read our blogpost.

BLOG        
MEETLIMA.COM
      
      
      

This email was sent to bao.lei@me.com
unsubscribe from this list

Lima Technology Inc. · 2915 Ogletown Road #1837 · Newark, DE 19713 · USA

Tags: IFTTT Gmail

Drawing sunset beach

testing blog post from gmail with IFTTT. blogpost

I’m setting up a new ifttt recipe to automatically post the same article to Wordpress and tumblr.=

Tags: IFTTT Gmail

cougarguy-blog asked: I've just tried your technique for running my xcode IOS tests from the command line. What does your ruby script expect in the "TEST_HOST" variable? That one doesn't exist on my system.

It should be the full path of the binary file, i.e. ~/Library/Developer/Xcode/DerivedData/YourApp-somerandomstring/Build/Products/Debug-iphonesimulator/YourApp.app/YourApp

Are you able to see all the other environment variables like TARGET_NAME,  TEST_AFTER_BUILD? If you can see other ones except TEST_HOST, you can try to navigate to the test target in Xcode, choose Build Settings, under “Unit Testing”, see if you can find the field Test Host. If so, check if it is set to $(BUNDLE_LOADER).

pthor asked: In your blog entry "iOS Unit Test from command line (iOS6, Xcode4.5)" one of your steps is to "3. Create a scheme in Xcode, make sure that the “Build” step includes your Application Test target. ". I have a scheme. Should it be a scheme different from the one created automatically for my test target?

No. The one created automatically for the test target should work. Just make sure that “Build” is checked inside “Build” of the scheme, and the right target (the test target) is selected. Then just add the post action script there.

getschh-blog asked: Hi Bao. I tried your approach concerning ios unit-testing with xcode 4.5 and ios 6 with the ruby script. I reconfigured the jenkins job. First I thought: wow, this works great. When I took a close look at it, i found a big problem. I always get the following error: FATAL: Log statements out of sync: current test case was 'testBarcodeUtilWithCorrectValues'. It always happens with a different Unit-Test. The result of this error: After the error occurs, no more unit-tests are testet. What can I do?

Does it work when you run the script on a local machine (instead of through Jenkins)? If not, maybe you can try create a brand new project with just one simple test case, and use the script. If you can get a new project working fine, you can then try commenting out most of the test cases in your real project, leaving only a few tests, and see what happens. iOS test setup is finicky sometimes you really have to experiment a lot to get everything working smoothly.

iOS Unit Test from command line (iOS6, Xcode4.5)

iOS developers have to accept it: Apple is not a big fan of stuff like continuous integration. Want to run automated tests from command line and integrate with Jenkins? Be prepared to spend a lot of time to hack and make it work.

The this post by Mark has inspired a lot of people:

http://longweekendmobile.com/2011/04/17/xcode4-running-application-tests-from-the-command-line-in-ios/

However, it’s broken since iOS6 and Xcode 4.5.

Luckily, I’ve find a way that works for now (not sure if iOS7 will break it next year).

The steps:

1. Install ios-sim. (As of today, brew install ios-sim doesn’t work on my mac. I had to checkout the github repo and install from source code.)

2. Create a script that launches the app in simulator and runs all the tests. A ruby version that worked for me:

# Use ios-sim to trigger the unit test
# Reference: http://stackoverflow.com/questions/5403991/xcode-4-run-tests-from-the-command-line-xcodebuild

launcher_path = "/usr/local/bin/ios-sim"
test_bundle_path= File.join(ENV['BUILT_PRODUCTS_DIR'], "#{ENV['PRODUCT_NAME']}.#{ENV['WRAPPER_EXTENSION']}")

environment = {
    'DYLD_INSERT_LIBRARIES' => "/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection",
    'XCInjectBundle' => test_bundle_path,
    'XCInjectBundleInto' => ENV["TEST_HOST"]
}

environment_args = environment.collect { |key, value| "--setenv #{key}=\"#{value}\""}.join(" ")

app_test_host = File.dirname(ENV["TEST_HOST"])

cmd = "#{launcher_path} launch \"#{app_test_host}\" #{environment_args} --args -SenTest All #{test_bundle_path}"
cmd.gsub! "iphoneos", "iphonesimulator"
system(cmd)

Note that this takes a lot of environment variables from Xcode, so we have to run this as a post build script from an Xcode scheme.

3. Create a scheme in Xcode, make sure that the “Build” step includes your Application Test target. And inside post-actions, add a script to perform the ruby script above. Something like this:

ruby $SRCROOT/path_to_the_script_above/run_tests.rb

4. From here you can just run “xcodebuild -scheme TheTestSchemeName -sdk iphonesimulator” to perform the test. But if you want to go further, e.g. collect and parse the test result so Jenkins can send email notifications when something is broken, you can create a wrapper script like this (again in Ruby)

cmd = "xcodebuild -scheme ApplicationTests -sdk iphonesimulator clean build > #{RESULT_PATH}/buildlog.txt 2> #{RESULT_PATH}/testlog.txt"
system(cmd)

result = ""
File.open("#{RESULT_PATH}/testlog.txt", "r") do |f|
	result = f.read
end

fails = result.scan /Test Case .* failed/
passes = result.scan /Test Case .* passed/

if fails.length>0
	puts fails
	raise "Unit Tests failed"
else
	if passes.length>0
		puts "Unit Tests passed"
	else
		puts result
		raise "Unit Test setup problem"
	end
end