Create an account


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,192
» Latest member: stevenrobin79
» Forum threads: 22,060
» Forum posts: 22,947

Full Statistics

Online Users
There are currently 791 online users.
» 2 Member(s) | 783 Guest(s)
Applebot, Baidu, Bing, DuckDuckGo, Google, Yandex, jax9090qq, stevenrobin79

 
  Microsoft - New action to disrupt world’s largest online criminal network
Posted by: xSicKxBot - 03-10-2020, 10:41 PM - Forum: Windows - No Replies

New action to disrupt world’s largest online criminal network

Today, Microsoft and partners across 35 countries took coordinated legal and technical steps to disrupt one of the world’s most prolific botnets, called Necurs, which has infected more than nine million computers globally. This disruption is the result of eight years of tracking and planning and will help ensure the criminals behind this network are no longer able to use key elements of its infrastructure to execute cyberattacks.

A botnet is a network of computers that a cybercriminal has infected with malicious software, or malware. Once infected, criminals can control those computers remotely and use them to commit crimes. Microsoft’s Digital Crimes Unit, BitSight and others in the security community first observed the Necurs botnet in 2012 and have seen it distribute several forms of malware, including the GameOver Zeus banking trojan.

The Necurs botnet is one of the largest networks in the spam email threat ecosystem, with victims in nearly every country in the world. During a 58-day period in our investigation, for example, we observed that one Necurs-infected computer sent a total of 3.8 million spam emails to over 40.6 million potential victims.

Necurs is believed to be operated by criminals based in Russia and has also been used for a wide range of crimes including pump-and-dump stock scams, fake pharmaceutical spam email and “Russian dating” scams. It has also been used to attack other computers on the internet, steal credentials for online accounts, and steal people’s personal information and confidential data. Interestingly, it seems the criminals behind Necurs sell or rent access to the infected computer devices to other cybercriminals as part of a botnet-for-hire service. Necurs is also known for distributing financially targeted malware and ransomware, cryptomining, and even has a DDoS (distributed denial of service) capability that has not yet been activated but could be at any moment.

On Thursday, March 5, the U.S. District Court for the Eastern District of New York issued an order enabling Microsoft to take control of U.S.-based infrastructure Necurs uses to distribute malware and infect victim computers. With this legal action and through a collaborative effort involving public-private partnerships around the globe, Microsoft is leading activities that will prevent the criminals behind Necurs from registering new domains to execute attacks in the future.

This was accomplished by analyzing a technique used by Necurs to systematically generate new domains through an algorithm. We were then able to accurately predict over six million unique domains that would be created in the next 25 months. Microsoft reported these domains to their respective registries in countries around the world so the websites can be blocked and thus prevented from becoming part of the Necurs infrastructure. By taking control of existing websites and inhibiting the ability to register new ones, we have significantly disrupted the botnet.

Microsoft is also taking the additional step of partnering with Internet Service Providers (ISPs) and others around the world to rid their customers’ computers of malware associated with the Necurs botnet. This remediation effort is global in scale and involves collaboration with partners in industry, government and law enforcement via the Microsoft Cyber Threat Intelligence Program (CTIP). Through CTIP, Microsoft provides law enforcement, government Computer Emergency Response Teams (CERTs), ISPs and government agencies responsible for the enforcement of cyber laws and the protection of critical infrastructure with better insights into criminal cyber infrastructure located within their jurisdiction, as well as a view of compromised computers and victims impacted by such criminal infrastructure.

For this disruption, we are working with ISPs, domain registries, government CERTs and law enforcement in Mexico, Colombia, Taiwan, India, Japan, France, Spain, Poland and Romania, among others. Each of us has a critical role to play in protecting customers and keeping the internet safe.

To make sure your computer is free of malware, visit support.microsoft.com/botnets.

Tags: , , , , ,



https://www.sickgaming.net/blog/2020/03/...l-network/

Print this item

  News - Shigeru Miyamoto Approves Of People Uploading Gameplay Videos
Posted by: xSicKxBot - 03-10-2020, 10:41 PM - Forum: Nintendo Discussion - No Replies

Shigeru Miyamoto Approves Of People Uploading Gameplay Videos

Mario Approves And So Does Miyamoto

While streaming and uploading footage of video games online has become a common practice nowadays, not every company is necessarily thrilled about it. For example, a number of Japanese companies like Arc System Works and Atlus have released special recording and streaming guidelines for their new releases.

In 2017, Nintendo even went to the extent of ruling out live streaming of its games on YouTube. Fortunately, it ended up replacing this program with new guidelines early last year. As the company slowly begins to warm up to the idea of its game footage being shared online by creators, the famous Nintendo game designer Shigeru Miyamoto has recently shared his own thoughts about players uploading gameplay videos.

The response comes from his recent 12-page Famitsu interview, and was translated by BlackKite (via Japanese Nintendo):

I think it’s good that there’s a variety of ways to enjoy things. In the ROM era, we preferred to have [customers] play for a long time with materials created with very miniscule memory without publicising them. At that time, it would be problematic if the whole game content were to be revealed. But it is now an era where customers that bought [the games] publish videos broadly, and I think that may pique interest about those games to other people who watch it. I think I would also watch walkthrough videos of [games] made by someone else. Honestly, I don’t want to watch my own [games], but if it’s made by someone else it should still be okay.

As Miyamoto explains, sharing gameplay footage online can obviously help pique interest in certain titles. It’s also a great way to see a walkthrough of a video game. When Nintendo relaxed its content creator guidelines last year, the global head of YouTube said the video platform was glad to see the company take a “big step forward” and that it was a testament to what the power of creators can do.

What do you think about Miyamoto’s response? Does Nintendo need to do more? Share your thoughts below.



https://www.sickgaming.net/blog/2020/03/...ay-videos/

Print this item

  News - Apex Legends dev says Forge stab-and-switch was meant to foil data miners
Posted by: xSicKxBot - 03-10-2020, 09:49 PM - Forum: Lounge - No Replies

Apex Legends dev says Forge stab-and-switch was meant to foil data miners

Earlier this year Respawn debuted new playable Apex Legends character Revenant with a bit of a bait-and-switch, introducing him as the assassin of Forge, a ringer which design director Jason McCord told Dot eSports was designed explicitly to foil data miners and leakers.

“It started as a fun way to misdirect data miners who, at the time, felt like they had solved our next legend and had ruined our surprise,” said McCord, who credited the idea to Apex Legends designer Rayme Vinson. “We actually purposefully leaked fake concept art and details of Forge’s kit in patches, so there would be a bread crumb trail by the time we announced him. It’s pretty insane, really. I can’t think of any other game that has gone through such hijinks.”

It’s a remarkable bit of effort to outwit data miners and, sure enough, it seems many Apex Legends players were earnestly surprised by Revenant’s reveal, presaged by an animated teaser in which Forge is murdered mid-interview by the rapacious robot.

The surprise appeared to land even though Revenant’s existence was leaked ahead of time by said data miners, whose efforts continue to frustrate McCord and other game developers. Late last year, for example, Blizzard’s Jeff Kaplan made a point of highlighting how leaks of a game’s existence or assets can negatively impact game devs’ morale, as they lose out on getting to promote something they’ve worked hard on and instead often have to deal with misunderstandings and mistaken assumptions based on incomplete or unfinished work.



https://www.sickgaming.net/blog/2020/03/...ta-miners/

Print this item

  News - Microsoft aims to give hourly staff their full pay despite COVID-19 cutbacks
Posted by: xSicKxBot - 03-10-2020, 09:49 PM - Forum: Lounge - No Replies

Microsoft aims to give hourly staff their full pay despite COVID-19 cutbacks

This week many at Microsoft began working from home for an extended period due to COVID-19 concerns, and now the company says even though hourly contractors are working less, it still plans to pay them their usual rates.

“We recognize the hardship that lost work can mean for hourly employees,” reads today’s company blog post.  “As a result, we’ve decided that Microsoft will continue to pay all our vendor hourly service providers their regular pay during this period of reduced service needs. This is independent of whether their full services are needed.”

As COVID-19 drives more game makers to embrace the convenience of remote computing and collaboration, this is a good reminder that a lot of people whose labor is critical to the industry don’t have the same luxury. Microsoft makes a point of recognizing the contributions of on-site hourly workers, including folks who drive shuttles, care for on-site food services, and support Microsoft’s IT and A/V needs.

“We’re committed as a company to making public health our first priority and doing what we can to address the economic and societal impact of COVID-19​,” the Microsoft post continues. “We appreciate that what’s affordable for a large employer may not be affordable for a small business, but we believe that large employers who can afford to take this type of step should consider doing so.”

Destiny 2 developer Bungie announced this week it would enact a remote work policy in order to help curb the spread of COVID-19, while Take-Two CEO Strauss Zelnick suggested that the outbreak could lead to a seachange in how the game industry views remote work at large.



https://www.sickgaming.net/blog/2020/03/...-cutbacks/

Print this item

  (Indie Deal) ?Spintires at -80%, the award-winning & million-seller indie hit
Posted by: xSicKxBot - 03-10-2020, 04:20 PM - Forum: Deals or Specials - No Replies

?Spintires at -80%, the award-winning & million-seller indie hit

One of the Toughest Offroad Driving Simulation Steam Games
[www.indiegala.com]
Challenge your driving skills and endurance in large all-terrain Soviet vehicles with today's muddy Crackerjack Deal!
https://youtu.be/qiOt7SuHGPM
Grab Spintires at 80% OFF,[www.indiegala.com] start your engine and maybe...bring a comrade along for the ride? Need more? Here's a way:
Crypto Sale Day 2: IMGN.PRO Publisher Sale, up to -80%
[www.indiegala.com]
Join our Crypto Sale, and get an EXTRA 30% OFF on all bundles and 15% OFF on all store deals when paying with a supported cryptocurrency!
Happy Hour: Wizard Blast Bundle
[www.indiegala.com]

Check out IndieGala on Twitter, YouTube & Facebook[www.facebook.com]


https://steamcommunity.com/groups/indieg...2281080614

Print this item

  Microsoft - Microsoft named Fast Company’s most innovative workplace company of 2020
Posted by: xSicKxBot - 03-10-2020, 04:20 PM - Forum: Windows - No Replies

Microsoft named Fast Company’s most innovative workplace company of 2020

Whether helping employees to communicate more seamlessly or helping underemployed mid-career women boost their incomes, these 10 companies are creating new ways to make working life fairer and more rewarding.

advertisement

advertisement

For taking the slack out of messaging communications for first-line employees

It’s hard to argue with Microsoft’s dominance: Teams has more than 20 million daily users, with 91 of the Fortune 100 utilizing the platform. Last year’s improvements included greater AI integration, as well as additional tools for first-line workers (those working in people-facing positions, like doctors, or service industry employees).

Read more about why Microsoft is one of the World’s Most Innovative Companies of 2020.

2. Mursion


For teaching EQ via VR for the likes of Coca-Cola, Nationwide, and T-Mobile

Mursion is a virtual reality training tool that combines AI and interactions with trained actors to help develop stronger soft skills among employees, such as the ability to recognize bias. Clients include companies like T-Mobile, Coca-Cola, Best Western, and Nationwide.

3. Pipeline Equity


For giving companies the tools to improve gender equality when they hire and promote

advertisement

Founded in 2017, Pipeline demonstrates the connection between gender parity and economic opportunity. The subscription-based platform analyzes company-specific data to make recommendations about moves that will both increase business outcomes and improve gender balance.

4. Dropbox


For thinking outside the file folder

The company introduced numerous enhancements in 2019, including integrations with various other platforms (like Google Docs/Sheets/Slides) and a cold-storage option. Dropbox also acquired e-signature company HelloSign, and adopted SHR storage, which reduces energy use and costs for storage at data centers.

5. Docusign


For closing mortgages in the cloud

Document signing isn’t the sexiest topic, but it is a critical one. The company has expanded into a number of related areas, including DocuSign rooms for Mortgages and DocuSign Identity, for verification of IDs.

6. Coda


For applying app-like functionality to document creation

advertisement

A flexible doc and management tool, Coda emphasizes the idea of democratization of software, enabling users to build app-like solutions without a coding background. Officially launched in February 2019, Coda is already used by a number of companies, including Spotify, Cheddar, and Uber.

7. The Second Shift


For creating flexible gigs for mid-career women

The Second Shift is a small company, but it’s tackling a critical workforce problem: lack of flexible opportunities for women, especially mid-career, when many are assuming primary caregiving responsibilities for children and/or parents. The company connects employers with experienced women to fill in for positions or tackle special projects.

8. Bluecrew


For matching workers with hourly jobs with health insurance, overtime, sick pay, and workers comp

At a time when many gig-economy employers don’t offer workers comprehensive protections, Bluecrew is helping secure benefits for hourly workers at companies like Blue Bottle and Levi’s Stadium.

9. Lattice


For making performance reviews a continual process via apps

advertisement

The HR software company is working with more than 1,400 companies to integrate management processes into tools employees are already using, such as Slack.

10. Samepage


For putting chat, email, files, and tasks on the same . . . you know

Samepage is emerging as a leading collaborative tool in the booming intranet market, offering such features as integrated videoconferencing and threaded chats.

Read more about Fast Company’s Most Innovative Companies:



https://www.sickgaming.net/blog/2020/03/...y-of-2020/

Print this item

  News - Review: Afterparty – A Hellishly Good Night Out, Without The Hangover
Posted by: xSicKxBot - 03-10-2020, 04:20 PM - Forum: Nintendo Discussion - No Replies

Review: Afterparty – A Hellishly Good Night Out, Without The Hangover


Night School made a relatively big splash with its 2016 debut Oxenfree, a ghostly story-based video game that set new standards on how dialogue can be executed in a game. The follow up to that title was always going to be an interesting one, then, as the question would be how Night School would iterate or, potentially, break away from the precedent Oxenfree set. Enter Afterparty, a new equally story-driven experience released late last year. Although it takes a much different tone than its predecessor, Afterparty proves itself to be a worthy followup and a must-play game in its own right, telling an equally funny and serious tale that can be experienced in plenty of ways.

A key thing to bear in mind about Afterparty is the fact that this isn’t so much a game that you play, in the way you do most games, as it is one you influence. The vast majority of your experience is spent simply running back and forth on a 2D plane as either Milo or Lola, interacting with the odd demon or human with a tap of ‘B’. Sprinkled within this is the occasional drinking game, such as a round of beer pong or a cup-stacking mini game, but these are more like light palette cleansers than they are fulfilling challenges of skill. Those of you looking for a more hands-on type of experience won’t find much appealing here, then, but a title such as Afterparty is more focused on delivering an excellent storytelling experience above all else. In this regard, it certainly succeeds.


A big part of this success comes from how the narrative proves to be surprisingly player-driven, with there being multiple paths, endings, and potential outcomes in any given scenario. When it’s time for your character to speak, a conversation will usually allow you one of two potential replies, with an optional third one being dependent upon the drink in your hand. Every bar you visit has four or five drinks on offer, with each one giving you the push towards a certain persona. Some drinks will give you more confidence, while others will make you prone to speak like a pirate. Experimenting with these different effects can lead to some unpredictable and deeply entertaining results, while boosting replayability across the board. Due to branching paths, you definitely can’t see all that Afterparty has to offer in a single six(ish) hour playthrough, so it’s encouraged that you keep running through it and trying different things to see how events can unfold.

The story primarily follows the plight of Milo and Lola, two recent college grads who suddenly and unexpectedly find themselves dead and trapped in hell. Milo plays the part of a people-pleasing dork with a questionable moral compass, while Lola is the cynical and wise-to-it-all sort who approaches all situations with an air of pretentious judgment. Believing that their fate simply must be a mistake, the two deny their sentencing and learn that their only hope for escaping their fate lies in challenging the devil himself. Instead of a battle of wits or a knock down drag out fight, however, they must simply out-party him in a drinking competition. As you’d likely expect, this is no small task, and the two will journey to all corners of hell on their path to winning freedom.


The premise proves to be interesting from the get go, and this is only improved with each passing hour as you explore deeper into hell. If there’s one thing that Afterparty absolutely nails, it’s the experience of embarking on a debauched and increasingly more chaotic night out on the town with some friends. The torture dimension is amusingly laid out similarly to a college town, so there are bars galore to visit and a mixture of people and demons milling about between them. You bounce around from bar to bar, playing drinking games and striking up conversation with fascinating people you’ll never see again, then stumble on to the next place to repeat the cycle. Along the way, you sometimes pick up another friend or two who accompany you on this meandering pilgrimage, before they either grow bored of you or get left behind at one of the bars.

The social dynamics of hell are especially interesting to consider given that there’s a soft divide between humans and demons. At the end of the day this is still hell, so humans generally get the short end of the stick and their status as tortured souls is a sort of collectively acknowledged reality. Everyone parties and laughs and drinks all the same, but it doesn’t take much for things to take a dark turn or for some black humor to take effect. At one point early in the story, for example, one man is celebrating his death day with all his best human and demon friends. As part of their fun there’s another man affixed to the wall in the back by several knives, who a few patrons use as a dartboard. This sharp contrast between the grotesque and the humorous proves to be quite an effective concept for keeping various scenarios interesting, and it is frequently revisited as Milo and Lola find themselves caught up in all sorts of conflict.


It’s an amusing and usually funny story, for sure, but Afterparty can dial up the drama when it needs to, adding some much-needed gravitas to the plot. For example, it’s not made clear until later exactly why Milo and Lola are in hell. At one point, they speak up and ask Satan what they did to deserve ending up in hell, and he counters by cryptically asking them what they did to deserve anything better. Then, of course, there’s a recurring supporting character named Wormhorn who acts as a “Personal Demon” to both Milo and Lola. She pops up every now and then with her bubbly and happy demeanor and targets various insecurities and regrets of both characters, shining an unflinching and harrowing spotlight on their worst flaws. For all of the jokiness and levity present on the surface, Afterparty proves to have a surprising amount of depth to its storytelling and draws you deeper in as the plot slowly reveals itself.

We feel special attention needs to be paid, too, to the overall pacing and delivery of the thousands of lines of dialogue here. Janina Gavankar and Khoi Dao give incredible performances as Lola and Milo respectively, but it’s the way in which they—along with most of the other characters—do small things like stuttering and leaving room for natural pauses that elevates the dialogue from good to great. Just about every conversation in Afterparty follows the kind of cadence and rhythm of an equivalent talk you’d hear in real life, and while that might sound like a silly thing to be praising, this is an area that many video games—even big budget AAA releases—frequently miss. It’s the sort of thing that you don’t realize until you hear a script as well-executed as this; in many ways, one could say that Afterparty sets a bar that all other narrative-focused games should aspire to hit.


Afterparty does a great job with its visual presentation, too, going all out in designing a neon-infused, suburb-like hellscape that nonetheless contains all the brimstone and lava that you would expect. Each shot looks as though it could’ve been pulled straight from the pages of the concept artist’s notebook, mixing a surprising amount of color with plenty of shadow. And though most places you go often sell a lighthearted and fun-loving atmosphere through their pulsing lights and dancing demons, there’s a fantastic sense of looming menace in the background that follows you wherever you go. Our only complaint here lies with the performance, which—docked or handheld—can dip into sub 20 FPS regions on too many occasions. It’s not enough to ruin your experience, but it does take you out of it every time a dip occurs, and it’s difficult to see why a title as relatively simple as Afterparty demands so much from the Switch hardware.

Conclusion


Afterparty is certainly an acquired taste, but—like a fine wine or a good beer—it’s definitely worth the effort. From beginning to end, Night School’s follow up to Oxenfree is a thoroughly enjoyable narrative experience that draws you into a hellish world that you (ironically) won’t want to leave. Branching paths and a smartly implemented drink system add plenty of options for replayability, and though the performance leaves something to be desired, Afterparty proves itself to be a visual treat. We’d give Afterparty a high recommendation to anyone looking for a good story to immerse themselves in; this is one that goes down real smooth.



https://www.sickgaming.net/blog/2020/03/...-hangover/

Print this item

  News - 2K Will Make NFL Games Again, Challenging EA Sports And The Madden Series
Posted by: xSicKxBot - 03-10-2020, 04:20 PM - Forum: Lounge - No Replies

2K Will Make NFL Games Again, Challenging EA Sports And The Madden Series

In a big shake-up for the world of sports video games, 2K Games has announced a partnership with the NFL to make football video games, giving EA Sports and the Madden series a new challenger. However, don't expect this to be the return of the NFL 2K franchise as you remember it.

The multi-year deal will see 2K Sports creating non-simulation football games, which is a key detail to note. EA Sports' Madden NFL series is a simulation-based franchise, and those games will continue to be made alongside the new ones from 2K.

2K is not sharing any details on the specific games, who is making them, or when they will release, apart from confirming that the first of these will launch in calendar year 2021. All of the titles are in "early development" right now, 2K said.

Continue Reading at GameSpot

https://www.gamespot.com/articles/2k-wil...01-10abi2f

Print this item

  [Tut] How to Concatenate Lists in Python? [Interactive Guide]
Posted by: xSicKxBot - 03-10-2020, 09:22 AM - Forum: Python - No Replies

How to Concatenate Lists in Python? [Interactive Guide]

So you have two or more lists and you want to glue them together. This is called list concatenation. How can you do that?



These are six ways of concatenating lists:

  1. List concatenation operator +
  2. List append() method
  3. List extend() method
  4. Asterisk operator *
  5. Itertools.chain()
  6. List comprehension
a = [1, 2, 3]
b = [4, 5, 6] # 1. List concatenation operator +
l_1 = a + b # 2. List append() method
l_2 = [] for el in a: l_2.append(el) for el in b: l_2.append(el) # 3. List extend() method
l_3 = []
l_3.extend(a)
l_3.extend(b) # 4. Asterisk operator *
l_4 = [*a, *b] # 5. Itertools.chain()
import itertools
l_5 = list(itertools.chain(a, b)) # 6. List comprehension
l_6 = [el for lst in (a, b) for el in lst]

Output:

'''
l_1 --> [1, 2, 3, 4, 5, 6]
l_2 --> [1, 2, 3, 4, 5, 6]
l_3 --> [1, 2, 3, 4, 5, 6]
l_4 --> [1, 2, 3, 4, 5, 6]
l_5 --> [1, 2, 3, 4, 5, 6]
l_6 --> [1, 2, 3, 4, 5, 6] '''

What’s the best way to concatenate two lists?

If you’re busy, you may want to know the best answer immediately. Here it is:

To concatenate two lists l1, l2, use the l1.extend(l2) method which is the fastest and the most readable.

To concatenate more than two lists, use the unpacking (asterisk) operator [*l1, *l2, ..., *ln].

You’ll find all of those six ways to concatenate lists in practical code projects so it’s important that you know them very well. Let’s dive into each of them and discuss the pros and cons.

1. List Concatenation with + Operator


If you use the + operator on two integers, you’ll get the sum of those integers. But if you use the + operator on two lists, you’ll get a new list that is the concatenation of those lists.

l1 = [1, 2, 3]
l2 = [4, 5, 6]
l3 = l1 + l2
print(l3)

Output:

[1, 2, 3, 4, 5, 6]

The problem with the + operator for list concatenation is that it creates a new list for each list concatenation operation. This can be very inefficient if you use the + operator multiple times in a loop.

Performance:

How fast is the + operator really? Here’s a common scenario how people use it to add new elements to a list in a loop. This is very inefficient:

import time start = time.time() l = []
for i in range(100000): l = l + [i] stop = time.time() print("Elapsed time: " + str(stop - start))

Output:

Elapsed time: 14.438847541809082

The experiments were performed on my notebook with an Intel® Core™ i7-8565U 1.8GHz processor (with Turbo Boost up to 4.6 GHz) and 8 GB of RAM.

I measured the start and stop timestamps to calculate the total elapsed time for adding 100,000 elements to a list.

The result shows that it takes 14 seconds to perform this operation.

This seems slow (it is!). So let’s investigate some other methods to concatenate and their performance:

2. List Concatenation with append()


The list.append(x) method—as the name suggests—appends element x to the end of the list. You can read my full blog tutorial about it here.

Here’s a similar example that shows how you can use the append() method to concatenate two lists l1 and l2 and store the result in the list l1.

l1 = [1, 2, 3]
l2 = [4, 5, 6]
for element in l2: l1.append(element)
print(l1)

Output:

[1, 2, 3, 4, 5, 6]

It seems a bit odd to concatenate two lists by iterating over each element in one list. You’ll learn about an alternative in the next section but let’s first check the performance!

Performance:

I performed a similar experiment as before.

import time start = time.time() l = []
for i in range(100000): l.append(i) stop = time.time() print("Elapsed time: " + str(stop - start))

Output:

Elapsed time: 0.006505012512207031

I measured the start and stop timestamps to calculate the total elapsed time for adding 100,000 elements to a list.

The result shows that it takes only 0.006 seconds to perform this operation. This is a more than 2,000X improvement compared to the 14 seconds when using the + operator for the same problem.

While this is readable and performant, let’s investigate some other methods to concatenate lists.

3. List Concatenation with extend()


You’ve studied the append() method in the previous paragraphs. A major problem with it is that if you want to concatenate two lists, you have to iterate over all elements of the lists and append them one by one. This is complicated and there surely must be a better way. Is there?

You bet there is!

The method list.extend(iter) adds all elements in iter to the end of the list.

The difference between append() and extend() is that the former adds only one element and the latter adds a collection of elements to the list.

Here’s a similar example that shows how you can use the extend() method to concatenate two lists l1 and l2.

l1 = [1, 2, 3]
l2 = [4, 5, 6]
l1.extend(l2)
print(l1)

Output:

[1, 2, 3, 4, 5, 6]

The code shows that the extend() method is more readable and concise than iteratively calling the append() method as done before.

But is it also fast? Let’s check the performance!

Performance:

I performed a similar experiment as before for the append() method.

import time start = time.time() l = []
l.extend(range(100000)) stop = time.time() print("Elapsed time: " + str(stop - start))

Output:

Elapsed time: 0.0

I measured the start and stop timestamps to calculate the total elapsed time for adding 100,000 elements to a list.

The result shows that it takes negligible time to run the code (0.0 seconds compared to 0.006 seconds for the append() operation above).

The extend() method is the most concise and fastest way to concatenate lists.

But there’s still more…

4. List Concatenation with Asterisk Operator *


There are many applications of the asterisk operator (read this blog article to learn about all of them). But one nice trick is to use it as an unpacking operator that “unpacks” the contents of a container data structure such as a list or a dictionary into another one.

Here’s a similar example that shows how you can use the asterisk operator to concatenate two lists l1 and l2.

l1 = [1, 2, 3]
l2 = [4, 5, 6]
l3 = [*l1, *l2]
print(l3)

Output:

[1, 2, 3, 4, 5, 6]

The code shows that the asterisk operator is short, concise, and readable (well, for Python pros at least). And the nice thing is that you can also use it to concatenate more than two lists (example: l4 = [*l1, *l2, *l3]).

But how about its performance?

Performance:

You’ve seen before that extend() is very fast. How does the asterisk operator compare against the extend() method? Let’s find out!

import time l1 = list(range(0,1000000))
l2 = list(range(1000000,2000000)) start = time.time()
l1.extend(l2)
stop = time.time() print("Elapsed time extend(): " + str(stop - start))
# Elapsed time extend(): 0.015623092651367188 start = time.time()
l3 = [*l1, *l2]
stop = time.time() print("Elapsed time asterisk: " + str(stop - start))
# Elapsed time asterisk: 0.022125720977783203

I measured the start and stop timestamps to calculate the total elapsed time for concatenating two lists of 1,000,000 elements each.

The result shows that the extend method is 32% faster than the asterisk operator for the given experiment.

To merge two lists, use the extend() method which is more readable and faster compared to unpacking.

Okay, let’s get really nerdy—what about external libraries?

5. List Concatenation with itertools.chain()


Python’s itertools module provides many tools to manipulate iterables such as Python lists. Interestingly, they also have a way of concatenating two iterables. After converting the resulting iterable to a list, you can also reach the same result as before.

Here’s a similar example that shows how you can use the itertools.chain() method to concatenate two lists l1 and l2.

import itertools l1 = [1, 2, 3]
l2 = [4, 5, 6]
l3 = list(itertools.chain(l1, l2))
print(l3)

Output:

[1, 2, 3, 4, 5, 6]

The result is the same. As readability is worse than using extend(), append(), or even the asterisk operator, you may wonder:

Is it any faster?

Performance:

You’ve seen before that extend() is very fast. How does the asterisk operator compare against the extend() method? Let’s find out!

import time
import itertools l1 = list(range(2000000,3000000))
l2 = list(range(3000000,4000000)) start = time.time()
l1.extend(l2)
stop = time.time() print("Elapsed time extend(): " + str(stop - start))
# Elapsed time extend(): 0.015620946884155273 start = time.time()
l3 = list(itertools.chain(l1, l2))
stop = time.time() print("Elapsed time chain(): " + str(stop - start))
# Elapsed time chain(): 0.08469700813293457

I measured the start and stop timestamps to calculate the total elapsed time for concatenating two lists of 1,000,000 elements each.

The result shows that the extend() method is 5.6 times faster than the itertools.chain() method for the given experiment.

Here’s my recommendation:

Never use itertools.chain() because it’s not only less readable, it’s also slower than the extend() method or even the built-in unpacking method for more than two lists.

So let’s go back to more Pythonic solutions: everybody loves list comprehension…

6. List Concatenation with List Comprehension


List comprehension is a compact way of creating lists. The simple formula is [ expression + context ].

  • Expression: What to do with each list element?
  • Context: What list elements to select? It consists of an arbitrary number of for and if statements.

The example [x for x in range(3)] creates the list [0, 1, 2].

Need a refresher on list comprehension? Read this blog tutorial.

Here’s a similar example that shows how you can use list comprehension to concatenate two lists l1 and l2.

l1 = [1, 2, 3]
l2 = [4, 5, 6]
l3 = [ x for lst in (l1, l2) for x in lst ]
print(l3)

Output:

[1, 2, 3, 4, 5, 6]

What a mess! You’d never write code like this in practice. And yet, tutorials like this one propose this exact same method.

The idea is to first iterate over all lists you want to concatenate in the first part of the context lst in (l1, l2) and then iterate over all elements in the respective list in the second part of the context for x in lst.

Do we get a speed performance out of it?

Performance:

You’ve seen before that extend() is very fast. How does the asterisk operator compare against the extend() method? Let’s find out!

import time l1 = list(range(4000000,5000000))
l2 = list(range(6000000,7000000)) start = time.time()
l1.extend(l2)
stop = time.time() print("Elapsed time extend(): " + str(stop - start))
# Elapsed time extend(): 0.015620946884155273 start = time.time()
l3 = [ x for lst in (l1, l2) for x in lst ]
stop = time.time() print("Elapsed time list comprehension: " + str(stop - start))
# Elapsed time list comprehension: 0.11590242385864258

I measured the start and stop timestamps to calculate the total elapsed time for concatenating two lists of 1,000,000 elements each.

The result shows that the extend() method is an order of magnitude faster than using list comprehension.

Summary


To concatenate two lists l1, l2, use the l1.extend(l2) method which is the fastest and the most readable.

To concatenate more than two lists, use the unpacking operator [*l1, *l2, ..., *ln].

Want to use your skills to create your dream life coding from home? Join my Python freelancer webinar and learn how to create your home-based coding business.

Click: How to Become a Python Freelancer?



https://www.sickgaming.net/blog/2020/03/...ive-guide/

Print this item

  AppleInsider - watchOS 7, tvOS 14, iOS 14 could debut new workout demonstration app
Posted by: xSicKxBot - 03-10-2020, 09:22 AM - Forum: Apples Mac and OS X - No Replies

watchOS 7, tvOS 14, iOS 14 could debut new workout demonstration app

 

Apple is doubling-down again on health and fitness in its operating systems, and appears to be building an app to help users walk through different workouts, and perform them safely.

Apple Watch Series 5 heart rate tracking during a run

Apple Watch Series 5 heart rate tracking during a run

The app, reportedly called “Seymour,” looks to be a separate app from the Activity app. At present, it looks like it will be launched alongside iOS 14, watchOS 7, and tvOS 14. It isn’t clear how much data the two apps will pass between each other at this time.

“Seymour” is said to allow users to download fitness videos, with specific guidance provided on how to get proper credit for completion on the Apple Watch. While the download can be triggered on the Apple Watch, it appears that a larger screen, such as a television with an Apple TV, an iPad, or iPhone will be required to view the videos —which makes sense, given the size of the Apple Watch screen.

According to MacRumors who spotted the app on Monday night, workouts included are core training, cycling, strength training, some form of dance, yoga, and indoor running.

At present, there does not appear to be a monetization path for the videos. There are no in-app purchases or subscription fees currently associated with the training materials.

As with the previous PencilKit and Message improvement reports, it isn’t precisely clear when the features may roll out. They may or may not make a potential early June beta release during the annual WWDC —which is in question because of the ongoing coronavirus situation.



https://www.sickgaming.net/blog/2020/03/...ation-app/

Print this item

 
Latest Threads
Hungary Temu ⇶ promo [[“a...
Last Post: seetuvarma5
1 hour ago
France Temu ⇶ promo [[“al...
Last Post: seetuvarma5
1 hour ago
Finland Temu ⇶ promo [[“a...
Last Post: seetuvarma5
1 hour ago
Denmark Temu ⇶ promo [[“a...
Last Post: seetuvarma5
1 hour ago
Chile Temu ⇶ promo [[“ale...
Last Post: seetuvarma5
1 hour ago
Chile Temu ⇶ promo Code [...
Last Post: seetuvarma5
1 hour ago
Denmark Temu ⇶ promo Code...
Last Post: seetuvarma5
1 hour ago
Finland Temu ⇶ promo Code...
Last Post: seetuvarma5
1 hour ago
France Temu ⇶ promo Code ...
Last Post: seetuvarma5
1 hour ago
Hungary Temu ⇶ promo Code...
Last Post: seetuvarma5
1 hour ago

Forum software by © MyBB Theme © iAndrew 2016