“Plus Codes” by Google
- Adding two further digits to the code, reduces the area to 1/20th of a degree by 1/20th of a degree within the previous area.
- This reduces the number of digits that must be remembered, by using a location to identify an approximate area, and then generating the nearest matching code.
- The degree to which a code can be shortened depends on the proximity of the reference location.
- If the reference location is derived from a town or city name, it is dependent on the accuracy of the geocoding service.
- Rather than a large city size feature to generate the reference location, it is better to use smaller, neighbourhood features, that will not have as much variation in their geocode results.
- Recovering shortened codes works by providing the short code and a reference location.
AI assisted code completion for C++
- You begin to identify and use these coding patterns over time, but what if Visual Studio already knew these common patterns and could suggest them to you as you code?
- IntelliCode uses machine learning to train over thousands of real-world projects including open-source projects on GitHub. As such, IntelliCode will be most helpful when using common libraries such as STL.
- Based on this training, IntelliCode saves your time by putting what you’re most likely to use at the top of your IntelliSense completion list.
- As you use the IntelliCode extension, you will start to notice starred items at the top of your Member List – those are IntelliCode recommendations.
- IntelliCode is new for C++ developers using Visual Studio, so we are eager to hear your feedback as we continue to improve your experience.
Understanding the basics of Ruby on Rails: SQL Databases and how they work
- Now it’s time to learn about databases and how they connect with Ruby on Rails.
- We usually use a condition to delete, like “I want to delete all people under 21 years old.” We will learn how later in this post!
- Now we can use SQL language to query (select, delete, insert, update) data.
- We now understand the meaning of databases, we’ve tried some basic queries, and have talked about the relationship between tables.
- So we create a migration (Ruby code), run the rake db:migrate command in the terminal, and it generates a table Authors with first_name, last_name, email, birthday, created_at, and updated_at columns.
- So when we create a Posts table, we need to store a reference to the post’s author (column author_id in the Posts table).
- Behind the scenes, it is executing SELECT * FROM posts WHERE title = 'Database & Rails'query.
Get the most out of hackathons
- In the past I mostly joined Hackathons to gather experience with new languages, frameworks or gadgets like Alexa, Hue etc.
- What I can not do at home is meet awesome people that hang out at such events or get my hands on some prototypes or industrial equipment worth several thousand Euros 💰.
- We wanted to have fun - and we got our hands on one of these badasses: The Festo Bionic Cobot a humanoid robot arm powered by air pressure instead of electrical motors.
- If you are a student you might be tempted by the prizes available at Hackathons but I seriously encourage you to use the time to meet new people and exchange ideas and experiences with others - this is the most valuable thing you can get out of such events.
Simulating identification by zip code, sex, and birthdate
- As mentioned in the previous post, Latanya Sweeney estimated that 87% of Americans can be identified by the combination of zip code, sex, and birth date.
- We have 56,940 possible birth date and sex combinations for 9,330 people.
- There have to be many unused birth date and sex combinations in a typical zip code, and it’s plausible that many combinations will only be used once.
- The array demo below will keep track of the possible demographic values, i.e. combinations of birth date and sex.
- To find the expected number of demographic slots with exactly one entry we multiply by d, and to get the proportion of p of people this represents we divide by z.
- By the way, a similar calculation shows that the expected number of demographic slots containing two people is r exp(-r)/2 where r = z/d.
Which Data Center Design Standards to Follow?
- This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.
- Informa PLC's registered office is 5 Howick Place, London SW1P 1WG.
- This series of articles will focus on the major best practices applicable across all types of data centers, including enterprise, colocation, and internet facilities.
- We will discuss best practices with respect to facility conceptual design, space planning, building construction, and physical security, as well as mechanical, electrical, plumbing, and fire protection.
- Following appropriate codes and standards would seem to be an obvious direction when designing new or upgrading an existing data center.
- Data center design and infrastructure standards can range from national codes (required), like those of the NFPA, local codes (required), like the New York State Energy Conservation Construction Code, and performance standards like the Uptime Institute’s Tier Standard (optional).
Facebook’s acquisition of Instagram was the greatest regulatory failure of the past decade, says Stratechery’s Ben Thompson
- For years, Facebook has argued that it’s a platform: An unbiased technology service for all ideas, brands, media companies and people to distribute their work.
- That’s not really the case, argues Ben Thompson, the founder of the influential tech newsletter Stratechery.
- Thompson presented Thursday at Recode’s annual Code Conference and argued that Facebook and Google, two well-known “platforms,” are actually more like aggregators, an important distinction.
- He also argued that, as an aggregator, Facebook’s $1 billion acquisition of Instagram, which is one of the best tech acquisitions of all time, was also a massive regulatory failure.
- Sign up for our Recode Daily newsletter to get the top tech and business news stories delivered to your inbox.
Get web projects off the ground faster with this $24 Flask coding bundle
- It’s also a brilliant entry point for young programmers, something you’ll learn fast with The Professional Flask Developer course bundle, now just $23.20 (over 90 percent off) from TNW Deals with promo code: GREENMONDAY20.
- After a crash course in Python Web Programming, you’ll dive into what Flask can do.
- With Professional RESTful API Design Using Python Flask, you’ll find how Flask facilitates user requests and responses; while the Advanced Scalable Python Web Development Using Flask course shows you exactly how to build a functioning social web application from scratch.
- You’ll also get nitty gritty training in the ways of back-end development (Python Web Development with Flask) and how to use Dockers (Essential Docker for Python Flask Development) to further refine and speed up your programming work.
Don't use the greater than sign in programming
- I think its perfectly fine to write small, "trivial" functions if they improve the expressiveness and readability of your code.
- I'm the biggest fan in the world of creating functions to improve the expressiveness and readability of code, but I don't think that in this case it does so.
- The original expression is so clear and explicit that replacing it with a function call actually obscures important details of the operation such as the boundary conditions (i.e. is it '<' or '<=' for the start and end boundary?) Nothing that can't be figured out, with a quick 'go to definition', but in requiring the reader to do that, you've actually made the code harder to read, not easier.
- But a discussion like this one is often all that's needed for everyone on the team to realise they all feel the same way about it.
What is your tale of lasagna code? (Code with too many layers)
- This week on our show we discuss this quote.
- Does OOP encourage too many layers in code?
- So what is your story of there being too many layers in the code?
- Or do you disagree with the quote, or us?
- It is always up to the task.
- For small programms of course you don't need so many layers, interfaces and so on.
- For a bigger, more complex one you need it to avoid a lot of issues: code duplications, unreadable code, constant merge conflicts etc.
- So build layers only as needed.
- I would agree with that.
- Better understand your code.
- We’re a place where coders share, stay up-to-date and grow their careers.
- We strive for transparency and don't collect excess data.