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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,946
» Latest member: blackopsdlc
» Forum threads: 21,996
» Forum posts: 22,963

Full Statistics

Online Users
There are currently 1394 online users.
» 0 Member(s) | 1389 Guest(s)
Applebot, Baidu, Bing, Facebook, Google

Latest Threads
[Steam Release] Cowbots a...
Forum: New Game Releases
Last Post: xSicKxBot

» Replies: 0
» Views: 8
[Dev News] September Free...
Forum: Game Development
Last Post: xSicKxBot

» Replies: 0
» Views: 9
Marvel Rivals Venom guide...
Forum: PC Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 13
[WoW Retail News] Midnigh...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 15
[Steam Release] Kodon
Forum: New Game Releases
Last Post: xSicKxBot

» Replies: 0
» Views: 17
[WoW Retail News] Downloa...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 18
[PS.Blog] (For Southeast ...
Forum: Sony Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 15
[Steam Release] RAILGRADE...
Forum: New Game Releases
Last Post: xSicKxBot

» Replies: 0
» Views: 20
Fortnite Winterfest 2024 ...
Forum: PC Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 20
[WoW Retail News] World o...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 18

 
  News - Call Of Duty Has A Long, Strange History On Nintendo Consoles
Posted by: xSicKxBot - 12-08-2022, 01:22 PM - Forum: Lounge - No Replies

Call Of Duty Has A Long, Strange History On Nintendo Consoles

Microsoft's recent announcement that it intends to put Call Of Duty games onto Nintendo consoles for the next 10 years came as a surprise to many. After all, the best-selling shooter franchise has not yet appeared on the Nintendo Switch, despite that console holding onto a huge portion of market share for years now.

However, the truth is that despite Nintendo's reputation as a more "kid-friendly" publisher, several COD games have appeared on its consoles in the past. In fact, it's only in the past decade or so that the Tokyo gaming giant has completely divested itself of the famed series, and we can't help but wonder if that'll change soon.

Early Call Of Duty fans may remember the days of console-exclusive spin-offs like Finest Hour and Big Red One in the mid-2000's, which came out for the GameCube, PS2, and Xbox. In fact, the first COD game was PC-exclusive, which limited its appeal. That would change in subsequent years, of course.

Continue Reading at GameSpot

https://www.gamespot.com/articles/call-o...01-10abi2f

Print this item

  PC - Call of Duty: Warzone 2.0
Posted by: xSicKxBot - 12-08-2022, 01:22 PM - Forum: New Game Releases - No Replies

Call of Duty: Warzone 2.0



As shown at Call of Duty: Next, Call of Duty: Warzone 2.0, the sequel to the seminal Battle Royale experience over 125 million players dropped in to play, is set to arrive this November 16, as part of Modern Warfare II's Season One.

This massive, free-to-play offering leverages new technology shared with Modern Warfare II, introduces a host of new innovations, and continues the new era of Call of Duty coming this Fall, starting with Modern Warfare II's launch on October 28.

Publisher: Activision

Release Date: Nov 16, 2022




https://www.metacritic.com/game/pc/call-...warzone-20

Print this item

  [Oracle Blog] Accelerate Your Java Programming Career
Posted by: xSicKxBot - 12-07-2022, 06:41 AM - Forum: Java Language, JVM, and the JRE - No Replies

Accelerate Your Java Programming Career

Looking for a flexible and affordable way to get started with Java SE? Look no further.


https://blogs.oracle.com/java/post/accel...ing-career

Print this item

  [Tut] Python | Split String Variable Spaces
Posted by: xSicKxBot - 12-07-2022, 06:41 AM - Forum: Python - No Replies

Python | Split String Variable Spaces

Rate this post

⭐Summary: The most efficient way to split a string using variable spaces is to use the split function like so given_string.split(). An alternate approach is to use different functions of the regex package to split the string at multiple whitespaces.

Minimal Example


text = "a b c d"
# Method 1
print(text.split())
# Method 2
import re
print(re.split('\s+', text))
# Method 3
print([x for x in re.findall(r'\S+', text) if x != ''])
# Method 4
print(re.sub(r'\s+', ',', text).split(','))
# Method 5
print(list(filter(None, text.split()))) # ['a', 'b', 'c', 'd']

Problem Formulation


?Problem: Given a string. How will you split the string using multiple spaces?

Example


# Input
text = "abc xyz lmn pqr"
# Output
['abc', 'xyz', 'lmn', 'pqr']

The given input has multiple spaces between each substring, i.e., there are three spaces after abc, two spaces after xyz while a single space after lmn. So, not only do you have multiple spaces between the substring but also varied number of spaces. Can you split the string by varied and multiple spaces?


Though the question might look daunting at first but once you get hold of it, the solutions to this problem are easier than one can imagine. So, without further delay let us dive into the different ways of solving the given problem.

Method 1: Using split()


The built-in split('sep') function allows you to split a string in Python based on a given delimiter. By default the split function splits a given string at whitespaces. Meaning, if you do not pass any delimiter to the split function then the string will be split at whitespaces.

You can use this default property of the split function and successfully split the given string at multiple spaces just by using the split() function.

Code:

text = "abc xyz lmn pqr"
print(text.split()) # ['abc', 'xyz', 'lmn', 'pqr']

?Recommended DigestPython String split()

Method 2: Using re.split


The re.split(pattern, string) method matches all occurrences of the pattern in the string and divides the string along the matches resulting in a list of strings between the matches. For example, re.split('a', 'bbabbbab') results in the list of strings ['bb', 'bbb', 'b'].

Approach: To split the string using multiple space characters use re.split("\s+", text) where \s+ is the matching pattern and it represents a special sequence that returns a match whenever it finds any whitespace character and splits the string. So, whenever there’s a space or multiple spaces (any number of occurrences of space are whitespace characters) the string will be split.

Code:

import re
text = "abc xyz lmn pqr"
print(re.split('\s+', text))
# ['abc', 'xyz', 'lmn', 'pqr']

?Recommended Read:  Python Regex Split.

Method 3: Using re.findall


The re.findall(pattern, string) method scans the string from left to right, searching for all non-overlapping matches of the pattern. It returns a list of strings in the matching order when scanning the string from left to right.

?Recommended Read: Python re.findall() – Everything You Need to Know

Code:

import re
text = "abc xyz lmn pqr"
print([x for x in re.findall(r'\S+', text) if x != ''])
# ['abc', 'xyz', 'lmn', 'pqr']

Method 4: Using re.sub


The regex function re.sub(P, R, S) replaces all occurrences of the pattern P with the replacement R in string S. It returns a new string. For example, if you call re.sub('a', 'b', 'aabb'), the result will be the new string 'bbbb' with all characters 'a' replaced by 'b'.

Approach: Use the re.sub method to replace all occurrences of space characters in the given string with a comma. Thus, the string will now have commas instead of space characters and you can simply split it using a normal string split method by passing comma as the delimiter.

Silly! Isn’t it? Nevertheless, it works.

Code:

import re
text = "abc xyz lmn pqr"
res = re.sub(r'\s+', ',', text).split(',')
print(res)
# ['abc', 'xyz', 'lmn', 'pqr']

Method 5: Using filter


Python’s built-in filter() function filters out the elements that pass a filtering condition. It takes two arguments: function and iterable. The function assigns a Boolean value to each element in the iterable to check whether the element will pass the filter or not. It returns an iterator with the elements that pass the filtering condition.

?Related Read: Python filter()

Approach: You can use the filter() method to split the string by space. Feed in None as the first argument and the list of split strings as the second argument into the filter function. The filter() function then iterates through the list and filters out the spaces from the given string and returns only the non-whitespace characters. As the filter() method returns an object, we need to use the list() to convert the object into a list.

Code:

text = "abc xyz lmn pqr"
print(list(filter(None, text.split())))
# ['abc', 'xyz', 'lmn', 'pqr']

Conclusion


Hurrah! We have successfully solved the given problem using as many as five different ways. I hope you enjoyed reading this article and it helped you in your Python coding journey. Please subscribe and stay tuned for more interesting articles!

Happy coding! ?

?Suggested Read: Python Regex Superpower [Full Tutorial]


Do you want to master the regex superpower? Check out my new book The Smartest Way to Learn Regular Expressions in Python with the innovative 3-step approach for active learning: (1) study a book chapter, (2) solve a code puzzle, and (3) watch an educational chapter video.



https://www.sickgaming.net/blog/2022/12/...le-spaces/

Print this item

  (Indie Deal) Development Update #3 - Elcado Needs Help
Posted by: xSicKxBot - 12-07-2022, 06:41 AM - Forum: Deals or Specials - No Replies

Development Update #3 - Elcado Needs Help


Greetings Mercenaries,

For this Friday’s devlog, we wanted to show you our most recent YouTube video highlighting some of the exciting things the development team has been working on.

While you’re checking the video out, be sure to head over to IndieGala[freebies.indiegala.com] or Steam to play the new Vorax alpha 0.3, which is still available for a limited time

“Bilial-Like” Creatures Stalk the Night
There are more dangerous things than simple zombies that lurk in the dark on the island. Not only do they present a physical threat, but their terrifying appearance will test even the most hardened mercenary’s sanity.

While it can be dangerous to engage them, they often drop special loot that can be extremely useful. Remember, good things come to those that are brave.

Sergeant Elcado Needs Help

While much of the island has been ravaged by the virus, there are still people who have managed to survive. One such survivor is Sergeant Elcado, who is the only surviving member of a NATO squad sent to investigate the ongoing events on the island. Survivors like him can often help you throughout your mission, but they will often ask that you do something for them in exchange.

Community Highlight: Gameplay Versatility & Compatibility
One of our goals in developing Vorax, is to provide the player with multiple different ways to play the game. Whether it’s going in guns blazing, or cleverly trapping an area to avoid fighting enemies head on, we want the player to choose how they approach each and every situation.
https://youtu.be/6FZJgo-0c2s
To highlight this, check out some of the content created by our community members showcasing how they tackle difficult situations.

What's next?
That’s all for this week, everyone. But look forward to the next one when we will take a closer look at some of the strategic aspects of the game, such as trap crafting and building fortifications.

Remember, the Open Alpha is still available for those of you wishing to experience some of the new content and updates we’ve added to the game. Also, be sure to join our Discord to get exclusive news on updates, events, and more.

Wishlist now:
https://store.steampowered.com/app/1874190/Vorax/
[discord.gg]


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

Print this item

  News - Rainbow Six Siege Shines In The Solar Raid Update With A New Operator And Map
Posted by: xSicKxBot - 12-07-2022, 06:41 AM - Forum: Lounge - No Replies

Rainbow Six Siege Shines In The Solar Raid Update With A New Operator And Map

The Operation Solar Raid update for Rainbow Six Siege is out today and brings a new operator, a new map, cross-play/cross-progression, a revamped battle pass, and a new system for Ranked.

The new player character is Operator Solis from Colombia. She's a defender who wields the SPEC-IO sensor, which can pick up and highlight essential intel. She uses the gadget to identify Attacker devices. Her gloves can interact with gadget overlays and she can activate cluster scans. She has medium health, medium speed, and wields the P90 or the ITA 12L for her primary as well as the SMG-11 as her secondary.

The new map is called Nighthaven Labs. It will not be bannable for the duration of the Operation Solar Raid season to ensure that players get the chance to familiarize themselves with the map. Set in an extension of the Nighthaven headquarters, the map features multiple access points, via many breakable walls and a runout hatch.

Continue Reading at GameSpot

https://www.gamespot.com/articles/rainbo...01-10abi2f

Print this item

  (Free Game Key) Fort Triumph and RPG in a box - Free Epic Games
Posted by: xSicKxBot - 12-07-2022, 06:41 AM - Forum: Deals or Specials - No Replies

Fort Triumph and RPG in a box - Free Epic Games

❤️ Fort Triumph
https://store.epicgames.com/p/fort-triumph


❤️ RPG in a Box
https://store.epicgames.com/p/rpg-in-a-box

This game is free to keep if claimed by December 8, 2022 5:00 PM

Next weeks freebies:
Saints Row IV Re-Elected
Wildcat Gun Machine


We are welcoming everyone to join our discord[discord.gg]. We are more active there on finding giveaways, small or large, and there are daily raffles you can participate.

?GrabFreeGames.com ?Twitter ?Steam Curator ?Facebook[fb.me]?Discord[discord.gg]
❤️Support us: HumbleBundle Partner[www.humblebundle.com] Fanatical Affiliate[www.fanatical.com]


https://steamcommunity.com/groups/GrabFr...2920688459

Print this item

  PC - Somerville
Posted by: xSicKxBot - 12-07-2022, 06:41 AM - Forum: New Game Releases - No Replies

Somerville



Jumpship’s debut title immersse players in a hand-crafted narrative set across a vivid and rural landscape. Set in the wake of a catastrophe and grounded in the intimate repercussions of large-scale conflict, players navigate through perilous terrain as they unravel the mysteries of Earth’s visitors.

Publisher: Xbox Game Studios

Release Date: Nov 15, 2022




https://www.metacritic.com/game/pc/somerville

Print this item

  [Oracle Blog] JDK 13.0.2, 11.0.6, 8u241, and 7u251 Have Been Released!
Posted by: xSicKxBot - 12-06-2022, 10:04 AM - Forum: Java Language, JVM, and the JRE - No Replies

JDK 13.0.2, 11.0.6, 8u241, and 7u251 Have Been Released!

The JDK 13.0.2, 11.0.6, 8u241, and 7u251 update releases are now available. You can download the latest JDK releases from the Java SE Downloads page. OpenJDK 13.0.2 is available on http://jdk.java.net/13/. New Features, Changes, and Notable Bug Fixes For information about the new features, changes, ...


https://blogs.oracle.com/java/post/jdk-1...n-released

Print this item

  [Tut] Python | Split String Multiple Whitespaces
Posted by: xSicKxBot - 12-06-2022, 10:04 AM - Forum: Python - No Replies

Python | Split String Multiple Whitespaces

Rate this post

?Summary: The most efficient way to split a string using multiple whitespaces is to use the split function like so given_string.split(). An alternate approach is to use different functions of the regex package to split the string at multiple whitespaces.

Minimal Example:


import re text = "mouse\nsnake\teagle human"
# Method 1
print(text.split()) # Method 2
res = re.split("\s+", text)
print(res) # Method 3
res = re.sub(r'\s+', ',', text).split(',')
print(res) # Method 4
print(re.findall(r'\S+', text)) # ['mouse', 'snake', 'eagle', 'human']

Problem Formulation


?Problem: Given a string. How will you split the string using multiple whitespaces?

Example


# Input
text = "abc\nlmn\tpqr xyz\rmno"
# Output
['abc', 'lmn', 'pqr', 'xyz', 'mno']

There are numerous ways of solving the given problem. So, without further ado, let us dive into the solutions.

Method 1: Using Regex


The best way to deal with multiple delimiters is to use the flexibility of the regular expressions library. There are different functions available in the regex library that you can use to split the given string. Let’s go through each one by one.

1.1 Using re.split


The re.split(pattern, string) method matches all occurrences of the pattern in the string and divides the string along the matches resulting in a list of strings between the matches. For example, re.split('a', 'bbabbbab') results in the list of strings ['bb', 'bbb', 'b'].

?Recommended Read:  Python Regex Split.

Approach: To split the string using multiple whitespace characters use re.split("\s+", text) where \s is the matching pattern and it represents a special sequence that returns a match whenever it finds any whitespace character and splits the string.

Code:

import re
text = "abc\nlmn\tpqr xyz\rmno"
res = re.split("\s+", text)
print(res) # ['abc', 'lmn', 'pqr', 'xyz', 'mno']

1.2 Using re.findall


The re.findall(pattern, string) method scans the string from left to right, searching for all non-overlapping matches of the pattern. It returns a list of strings in the matching order when scanning the string from left to right.

?Recommended Read: Python re.findall() – Everything You Need to Know

Code:

import re text = "abc\nlmn\tpqr xyz\rmno"
print(re.findall(r'\S+', text))

Explanation: In the expression, i.e., re.findall(r"\S'+", text), all occurrences of characters except whitespaces are found and stored in a list. Here, \S+ returns a match whenever the string contains one or more occurrences of normal characters (characters from a to Z, digits from 0-9, etc. However, not the whitespaces are considered).

1.3 Using re.sub


The regex function re.sub(P, R, S) replaces all occurrences of the pattern P with the replacement R in string S. It returns a new string. For example, if you call re.sub('a', 'b', 'aabb'), the result will be the new string 'bbbb' with all characters 'a' replaced by 'b'.

Aprroach: Use the re.sub method to replace all occurrences of whitespace characters in the given string with a comma. Thus, the string will now have commas instead of whitespace characters and you can simply split it using a normal string split method by passing comma as the delimiter.

Code:

import re
text = "abc\nlmn\tpqr xyz\rmno"
res = re.sub(r'\s+', ',', text).split(',')
print(res) # ['abc', 'lmn', 'pqr', 'xyz', 'mno']

Do you want to master the regex superpower? Check out my new book The Smartest Way to Learn Regular Expressions in Python with the innovative 3-step approach for active learning: (1) study a book chapter, (2) solve a code puzzle, and (3) watch an educational chapter video.


Method 2: Using split()


By default the split function splits a given string at whitespaces. Meaning, if you do not pass any delimiter to the split function then the string will be split at whitespaces. You can use this default property of the split function and successfully split the given string at multiple whitespaces just by using the split() function.

Code:

text = "abc\nlmn\tpqr xyz\rmno"
print(text.split())
# ['abc', 'lmn', 'pqr', 'xyz', 'mno']

?Recommended Digest: Python String split()

Conclusion


We have successfully solved the given problem using different approaches. Simply using split could do the job for you. However, feel free to explore and try out the other options mentioned above. I hope this article helped you in your Python coding journey. Please subscribe and stay tuned for more interesting articles.

Happy Pythoning! ?


Python Regex Course


Google engineers are regular expression masters. The Google search engine is a massive text-processing engine that extracts value from trillions of webpages.  

Facebook engineers are regular expression masters. Social networks like Facebook, WhatsApp, and Instagram connect humans via text messages

Amazon engineers are regular expression masters. Ecommerce giants ship products based on textual product descriptions.  Regular expressions ​rule the game ​when text processing ​meets computer science. 

If you want to become a regular expression master too, check out the most comprehensive Python regex course on the planet:




https://www.sickgaming.net/blog/2022/12/...itespaces/

Print this item