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: 22,004
» Forum posts: 22,971

Full Statistics

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

Latest Threads
[WoW Retail News] Comment...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 14
How to unlock Maya Aguina...
Forum: PC Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 19
[Steam Release] The Unive...
Forum: New Game Releases
Last Post: xSicKxBot

» Replies: 0
» Views: 22
[DevBlog MS] Creating a m...
Forum: C#, Visual Basic, & .Net Frameworks
Last Post: xSicKxBot

» Replies: 0
» Views: 25
[WoW Retail News] Fixed C...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 29
[PS.Blog] Fading Echo mak...
Forum: Sony Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 26
[Steam Release] Cowbots a...
Forum: New Game Releases
Last Post: xSicKxBot

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

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

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

» Replies: 0
» Views: 35

 
  PC - Card Shark
Posted by: xSicKxBot - 06-12-2022, 11:45 PM - Forum: New Game Releases - No Replies

Card Shark



Card Shark is an adventure game full of cunning, intrigue, and delectable deceit. "Our adversaries tonight? An unscrupulous group of scoundrels and rogues, rumoured to possess an unlimited fund between them. If we stick to the strategies you’ve learnt, this will be a walkover."
- Comte de Saint-Germain

LEARN AND MASTER NEW TRICKS
Cheat your way to the top of 18th-century French society. Master deceptions using card marking, false shuffles, deck switching, false deals, and more! Use your ill-gotten gains to buy your way into the closed world of high-stakes tables.

UNCOVER A CONSPIRACY
... as you climb from local card parlors to the King's table.
A word of advice: Don't get caught. Your fellow gamblers do not take kindly to cheats…

TRAVEL THROUGH 18TH CENTURY FRANCE
Discover small towns, remote mansions, and luxurious lounges imagined by Nerial team (Reigns), game creator Arnaud De Bock (Pikuniku). Immerse yourself in the ornate visual artwork of Nicolai Troshinsky. Have your every move accompanied by an original score from Andrea Boccadoro as interpreted by an orchestra.

Publisher: Devolver Digital

Release Date: Jun 02, 2022




https://www.metacritic.com/game/pc/card-shark

Print this item

  [Tut] Python Program zur Berechnung der Deutschen Einkommensteuer
Posted by: xSicKxBot - 06-12-2022, 07:25 AM - Forum: Python - No Replies

Python Program zur Berechnung der Deutschen Einkommensteuer

Rate this post

Das folgende Python Program implementiert eine einfache Faustformel zur Berechnung der Einkommensteuer in Deutschland:

def calc_tax(zvE): ''' Formula: https://www.finanz-tools.de/einkommenste...rmeln/2021 ''' if zvE <= 9744: return 0 elif zvE <= 14753: y = (zvE - 9744)/10000 return (995.21 * y + 1400) * y elif zvE <= 57918: z = (zvE - 14753)/10000 return (208.85 * z + 2397) * z + 950.96 elif zvE <= 274612: return 0.42 * zvE - 9136.63 else: return 0.45 * zvE - 17374.99

Hier ist ein einfaches Schaubild, dass das Verhältnis von zu versteuertem Einkommen (zvE) und der geschätzten Steuerlast darstellt:


Der folgende Python code wurde zur Berechnung dieses Schaubilds herangezogen:

import matplotlib.pyplot as plt max_income = 1*10**5
xs = list(range(0, max_income, 1000))
ys = [calc_tax(income) for income in xs] plt.plot(xs, ys)
plt.xlabel('Einnahmen (T€)')
plt.ylabel('Steuer (T€)')
plt.grid()
plt.title('Einkommensteuer in Deutschland')
plt.show()

Dies ist nur eine Heuristic von dieser Quelle—es scheint aber relativ korrekt zu sein (Größenordnung!). ?



https://www.sickgaming.net/blog/2022/06/...mensteuer/

Print this item

  [Oracle Blog] Java Magazine New Edition: Java Present and Future
Posted by: xSicKxBot - 06-12-2022, 07:25 AM - Forum: Java Language, JVM, and the JRE - No Replies

Java Magazine New Edition: Java Present and Future

There is a lot happening in Java, and in this issue we do our best to make the state of Java as clear as possible. We begin with a survey (page 15) of Java developers. The survey covers JDK, tools in use, processes, and finally a profile of Java developers. We follow that up with a look at Java 11 (...

https://blogs.oracle.com/java/post/java-...and-future

Print this item

  PC - Diablo Immortal
Posted by: xSicKxBot - 06-12-2022, 07:25 AM - Forum: New Game Releases - No Replies

Diablo Immortal



Diablo® Immortal is a mobile Massively Multiplayer Online Action RPG (MMOARPG) developed by Blizzard Entertainment in partnership with NetEase, coming exclusively to Android, iPhone and iPad.
Experience the world of Sanctuary in a persistent, always-online adventure anywhere, anytime.
Join a worldwide community as you battle side by side to vanquish ancient evils, explore perilous dungeons, and of course, get legendary loot.

* The Story: An Untold Chapter of the Diablo Saga
The Worldstone lies shattered, yet great power remains within its corrupted fragments. Power that Diablo's minions hope to harness to bring about the return of the Lord of Terror.The Archangel Tyrael is presumed dead, and mankind is left to deal with the aftermath of his actions. Fragments of the corrupted Worldstone taint the land, bringing forth ancient evils who are looking to harvest the stone's power and use it to control humanity.

* Unique Zones & Dungeons
From the peaceful town of Wortham, to the jungle island of Bilefen and the ancient Library of Zoltun Kulle, each zone in Diablo Immortal has new challenges to master and familiar faces to see.Will you choose to help Valla and her teacher in the Shassar Sea, or delve the tomb of Fahir, an ancient disciple of Akarat? Or storm the Countess' Forgotten Tower and stop her dark reign once more? The possibilities are many. The choices are yours.

* Massively Multiplayer Action in Your Pocket
Meet other demon-slayers as you wander Sanctuary, and join them to take on deep, treacherous dungeons. Visit vast social hubs like Westmarch and conduct business with local merchants before setting off on your next adventure.Drop in or out of groups easily and engage in dynamic events all over the world, teaming up with other heroes as you take down Skarn's minionsand reap powerful rewards.

* Westmarch
Explore the sprawling streets of Westmarch in a time before Malthael's corruption. The city is always bustling with activity as visitors from all over the world come to marvel at its sights, enjoy its landmarks, and more.Westmarch is where you can meet all your adventuring needs. You'll have access to your stash and vendors, but more importantly it's the place to meet fellow travelers, relax and take a breather.

* Designed for Mobile
Diablo Immortal is being designed from the ground-up to give you an authentic Diablo experience on touch-screen devices. Intuitive actions, gestures and touch controls put you in full command of your hero. Slay endless hordes of demons as effortlessly as you would with a controller or keyboard and mouse.

* Zero in on Your Enemies
Directional controls make it easy to move around in the world; demolishing the denizens of hell is as easy as holding down your thumb on a skill from your hotbar to aim it, then releasing it to unleash hell. Quickly access potions for a gradual health refresh, and equip recently looted items with a single tap on your screen.

Publisher: Blizzard Entertainment

Release Date: Jun 02, 2022




https://www.metacritic.com/game/pc/diablo-immortal

Print this item

  News - Downwell Creator's New Game Poinpy Is Available Now
Posted by: xSicKxBot - 06-12-2022, 07:25 AM - Forum: Lounge - No Replies

Downwell Creator's New Game Poinpy Is Available Now

The creator of Downwell, Ojiro Fumoto, surprised everyone today by revealing and releasing their new game, Poinpy, on Netflix's mobile gaming platform. The game is published by Devolver on Netflix's growing gaming platform and is available by searching for the game in the dedicated gaming section in Netflix's streaming app.

In Downwell you progressively make your way down a well (hence the title), but in Poinpy, you make your way up. You are a little creature that must leap and climb upward while dodging bad guys and outrunning a giant blue beast on the bottom of the screen. You also feed the blue beast various collected fruits to calm them while making your way upward. The game is included with your standard Netflix subscription and features no microtransations or ads.

Downwell was released in 2015 for mobile devices and has been ported to various platforms in the interim. Poinpy's surprise release marks nearly seven years since Fumoto released an original game. Following Downwell's release Fumoto took a job at Nintendo and worked on Ringfit Adventure. They left in 2019 writing on Twitter, "I was working at Nintendo for most of 2018 but I quit at the end of the year to pursue being an indie dev again. Working there was an incredible experience but ultimately I found my passion to simply be making a thing I want to make. So yeah, I'll get working on that this year!" Fumoto also has a special thanks credit in Spelunky 2 where they apparently provided a voice.

Continue Reading at GameSpot

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

Print this item

  McEcon.SickGaming.net Updated to 1.19 Minecraft Version
Posted by: SickProdigy - 06-12-2022, 05:04 AM - Forum: SG Official Info - No Replies

Hello everyone, quick update to the minecraft server.
We are now on 1.19 with our main world updated. No need to generate a new world or start over.
Seems to have updated normally.
Few plugins are still awaiting updates. Most generally should work still:
Sleep-Most, Residence, Player-kits, Worlds, and more!

If there are any issues please drop a thread here: https://www.sickgaming.net/forum-3.html
or join our discord here: https://discord.gg/GnJcNmhMzN
Direct Link to mc-support channel.

Thanks for your continued support!
Sick Gaming Staff

Print this item

  [Oracle Blog] Oracle JDK Mission Control 8.1.0 Released
Posted by: xSicKxBot - 06-11-2022, 02:50 PM - Forum: Java Language, JVM, and the JRE - No Replies

Oracle JDK Mission Control 8.1.0 Released

Blog post announcing release of Oracle JMC 8.1.0

https://blogs.oracle.com/java/post/oracl...0-released

Print this item

  [Tut] How to Open Multiple Files in Python
Posted by: xSicKxBot - 06-11-2022, 02:50 PM - Forum: Python - No Replies

How to Open Multiple Files in Python

Rate this post

In this article, you’ll learn how to open multiple files in Python.

Problem Formulation and Solution Overview


? Question: How would we write Python code to open multiple files?

We can accomplish this task by one of the following options:

  • Method 1: Open Multiple Text Files using open()
  • Method 2:Open Multiple Text Files using open() and backslash (\)
  • Method 3: Open Multiple Text Files using Parenthesized Context Managers and open()
  • Method 4: Open Multiple Text Files using the os library and open()

To make it more fun, we have the following running scenario:

You have been contacted by the Finxter Academy to write code that opens multiple files and writes the contents from one file to another.


Preparation & Overview


If your script opens files, it is a good practice to check for errors, such as:

  • No Such File Or Directory
  • Not Readable
  • Not Writable

In this regard, all examples in this article will be wrapped in a try/except statement to catch these errors.

Contents of orig_file.txt

To follow along with this article, create orig_file.txt with the contents below and place it in the current working directory.


30022425,Oliver,Grandmaster,2476
30022437,Cindy,Intermediate,1569
30022450,Leon,Authority,1967

Add the following code to the top of each code snippet. This snippet will allow the code in this article to run error-free.

import logging

This allows us to log any error message that may occur when handling the files.


Method 1: Open Multiple Text Files with open()


This method opens multiple text files simultaneously on one line using the open() statement separated by the comma (,) character.

try: with open('orig_file.txt', 'r') as fp1, open('new_file.txt', 'w') as fp2: fp2.write(fp1.read())
except OSError as error: logging.error("This Error Occurred: %s", error)

This code snippet is wrapped in a try/except statement to catch errors. When this runs, it falls inside the try statement and executes as follows:

  • Opens two (2) text files on one line of code.
    • The file for reading, which contains a comma (,) character at the end to let Python know there is another file to open: open('orig_file.txt', 'r') as fp1
    • The second is for writing: open('new_file.txt', 'w') as fp2
  • Then, the entire contents of orig_file.txt writes to new_file.txt.

If an error occurs during the above process, the code falls to the except statement, which retrieves and outputs the error message to the terminal.

? Note: The strip() function removes any trailing space characters.
The newline character (\n) is added to place each iteration on its own line.

If successful, the contents of orig_file.txt and new_file.txt are identical.

Output of new_file.txt


30022425,Oliver,Grandmaster,2476
30022437,Cindy,Intermediate,1569
30022450,Leon,Authority,1967





Method 2: Open Files Across Multiple Lines with open() and Backslash (\)


Before Python version 3.10, and in use today, opening multiple files on one line could be awkward. To circumvent this, use the backslash (\) character as shown below to place the open() statements on separate lines.

try: with open('orig_file.txt', 'r') as fp1, \ open('new_file3.txt', 'w') as fp2: fp2.write(fp1.read())
except OSError as error: logging.error("This Error Occurred: %s", error)

This code snippet is wrapped in a try/except statement to catch errors. When this runs, it falls inside the try statement and executes as follows:

  • Opens the first file using open('orig_file.txt', 'r') for reading and contains a backslash (\) character to let Python know there is another file to open.
  • Opens the second file using open('new_file.txt', 'w') for writing.
  • Then, the entire contents of orig_file.txt writes to new_file.txt.

If an error occurs during the above process, the code falls to the except statement, which retrieves and outputs the error message to the terminal.

? Note: The strip() function removes any trailing space characters.
The newline character (\n) is added to place each iteration on its own line.

If successful, the contents of orig_file.txt and new_file.txt are identical.


Method 3: Open Multiple Text Files using Parenthesized Context Managers and open()


In Python version 3.10, Parenthesized Context Managers were added. This fixes a bug found in version 3.9, which did not support the use of parentheses across multiple lines of code. How Pythonic!

Here’s how they look in a short example:

try: with ( open('orig_file.txt', 'r') as fp1, open('new_file.txt', 'w') as fp2 ): fp2.write(fp1.read())
except OSError as error: logging.error("This Error Occurred: %s", error)

This code snippet is wrapped in a try/except statement to catch errors. When this runs, it falls inside the try statement and executes as follows:

  • Declare the opening of with and the opening bracket (with ()).
    • Opens orig_file.txt (open('orig_file.txt', 'r') as fp1,) for reading with a comma (,) to let Python know to expect another file.
    • Open new_file.txt (open('new_file.txt', 'w') as fp2) for writing.
  • Closes the with statement by using ):.
  • Then, the entire contents of orig_file.txt writes to new_file.txt.

If an error occurs during the above process, the code falls to the except statement, which retrieves and outputs the error message to the terminal.

If successful, the contents of orig_file.txt and new_file.txt are identical.


Method 4: Open Multiple Text Files using the os library and open()


This method calls in the os library (import os) which provides functionality to work with the Operating System. Specifically, for this example, file and folder manipulation.

import os os.chdir('files')
filelist = os.listdir(os.getcwd()) for i in filelist: try: with open(i, 'r') as f: for line in f.readlines(): print(line) except OSError as error: print('error %s', error)

? Note: In this example, two (2) files are read in and output to the terminal.

This code snippet imports the os library to access the required functions.

For this example, we have two (2) text files located in our files directory:
file1.txt and file2.txt. To access and work with these files, we call os.chdir('files') to change to this folder (directory).

Next, we retrieve a list of all files residing in the current working directory
(os.listdir(os.getcwd()) and save the results to filelist.

IF we output the contents of filelist to the terminal, we would have the following: a list of all files in the current working directory in a List format.


['file1.txt', 'file2.txt']

This code snippet is wrapped in a try/except statement to catch errors. When this runs, it falls inside the try statement and executes as follows:

  • Instantiates a for loop to traverse through each file in the List and does the following:
    • Opens the current file for reading.
    • Reads in this file one line at a time and output to the terminal.

If an error occurs during the above process, the code falls to the except statement, which retrieves and outputs the error message to the terminal.

Output

The contents of the two (2) files are:


Contents of File1.
Contents of File2.


Summary


These four (4) methods of how to multiple files should give you enough information to select the best one for your coding requirements.

Good Luck & Happy Coding!


Programmer Humor


❓ Question: How did the programmer die in the shower? ☠

Answer: They read the shampoo bottle instructions:
Lather. Rinse. Repeat.



https://www.sickgaming.net/blog/2022/06/...in-python/

Print this item

  (Free Game Key) Ninja Stealth - Free Steam Game
Posted by: xSicKxBot - 06-11-2022, 02:50 PM - Forum: Deals or Specials - No Replies

Ninja Stealth - Free Steam Game

Got to the giveaway page

Ninja Stealth

Click Add to Account


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] Epic Tag: GrabFreeGames


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

Print this item

  News - Netflix Releases New Sonic Prime Clip
Posted by: xSicKxBot - 06-11-2022, 02:50 PM - Forum: Lounge - No Replies

Netflix Releases New Sonic Prime Clip

As part of Netflix Geeked Week, the streaming service has released a new clip from its upcoming Sonic Prime TV series. And if you can believe it, the Blue Bomber is still very much devoted to running very quickly and collecting rings.

Back in May, Netflix released an appropriately abbreviated blink-and-you'll-miss-it appearance of Sonic Prime footage as part of a bigger preview reel. This new clip, which you can see below, places greater emphasis on Sonic and the other new characters in the series.

Sonic Prime Season 1 will span 24 episodes. Netflix says the series will feature Sonic in a "high-octane adventure where the fate of a strange new multiverse rests in his gloved hands… Sonic's adventure is about more than a race to save the universe, it’s a journey of self-discovery and redemption." Deven Mack voices Sonic in Sonic Prime, and the series is expected to hit the streaming service sometime this year.

Continue Reading at GameSpot

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

Print this item