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,149
» Latest member: GalacticNuddy
» Forum threads: 21,799
» Forum posts: 22,673

Full Statistics

Online Users
There are currently 1207 online users.
» 0 Member(s) | 1202 Guest(s)
Applebot, Baidu, Bing, DuckDuckGo, Google

 
  PC - LEGO Star Wars: The Skywalker Saga
Posted by: xSicKxBot - 04-28-2022, 10:51 AM - Forum: New Game Releases - No Replies

LEGO Star Wars: The Skywalker Saga



LEGO Star Wars: The Skywalker Saga will feature hundreds of playable characters - the most ever for a LEGO Star Wars game - and ships, LEGO's signature sense of humour and fun, and new innovations, options, and gameplay features. Players can start the game at any point in the Star Wars timeline; fans can jump in with Star Wars: The Phantom Menace, begin the original trilogy with Star Wars: A New Hope, or launch right into Star Wars: The Rise of Skywalker.

LEGO Star Wars: The Skywalker Saga marks the return to the franchise that kicked off the LEGO video game series. The game will give fans an all-new LEGO Star Wars experience with complete freedom to explore the LEGO Star Wars galaxy. With the Skywalker saga coming to an end, LEGO Star Wars: The Skywalker Saga will bring to life all those Star Wars adventures remembered and undiscovered in an epic culmination of all nine saga films as fans celebrate the closing of this chapter in Star Wars.

Publisher: Warner Bros. Interactive Entertainment

Release Date: Apr 05, 2022




https://www.metacritic.com/game/pc/lego-...alker-saga

Print this item

  News - Have A Nice Death - World 5 Guide
Posted by: xSicKxBot - 04-28-2022, 10:51 AM - Forum: Lounge - No Replies

Have A Nice Death - World 5 Guide

In Have A Nice Death, it's the reaper's mission to avoid burnout, but that can be tough when you're constantly fighting for your life. That remains true in the early access roguelike's newest content update, World 5, launching on April 28. In this new region of the gorgeous game, you'll explore the Modern Warfare department, where inter-office politics clash with deceased World War I vets like never before.

We got to go hands-on with Have A Nice Death's World 5 and you can read our full impressions here. In this guide, we'll walk you through the game's newest--and most difficult--world yet, so you're ready to go hands-on yourself. From breaking down all of the enemies you may encounter to the floors you may visit on the underworld's elevator, here's everything you need to know if you find yourself ready to take on World 5 in Have A Nice Death.

Have A Nice Death World 5 - Modern Warfare

In World 5, Death himself will need to contend with the spirits of deceased soldiers and civilians alike. It should be quite grim, and through a particular lens it surely is. But, given the game's cartoonish animation and light-hearted humor, it can also be seen in the same sort of light any World 5-ready players are used to. The new levels are rich with never-before-seen enemies and come alongside a patch that alters the way some things play across the entire game.

Continue Reading at GameSpot

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

Print this item

  [Oracle Blog] Java on Container Like A Pro
Posted by: xSicKxBot - 04-27-2022, 05:37 PM - Forum: Java Language, JVM, and the JRE - No Replies

Java on Container Like A Pro

JVM in containers Modern day software systems are moving towards containers. But there are a few important factors to understand before we move our Java/JVM based applications to containers. These factors raise questions about Java's suitability for containers. Imagine an environment in which 10 ins...

https://blogs.oracle.com/java/post/java-...like-a-pro

Print this item

  [Tut] How to Create a Dictionary from two Lists
Posted by: xSicKxBot - 04-27-2022, 05:37 PM - Forum: Python - No Replies

How to Create a Dictionary from two Lists

In this article, you’ll learn how to create a Dictionary from two (2) Lists in Python.

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

Biogenix, a Lab Supplies company, needs to determine the best element from the Periodic Table for producing a new product. They have two (2) lists. The Element Name, the other Atomic Mass. They would prefer this in a Dictionary format.

For simplicity, this article uses 10 of the 118 elements in the Periodic Table.

? Question: How would we create a Dictionary from two (2) Lists?

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


Method 1: Use dict() and zip()


This method uses zip() to merge two (2) lists into an iterable object and (dict()) to convert it into a Dictionary as key:value pairs.

el_name = ['Meitnerium', 'Darmstadtium', 'Roentgenium', 'Copernicium', 'Nihonium', 'Flerovium', 'Moscovium', 'Livermorium', 'Tennessine', 'Oganesson']
el_atom = [277.154, 282.166, 282.169, 286.179, 286.182, 290.192, 290.196, 293.205, 294.211, 295.216] merge_lists = zip(el_name, el_atom)
new_dict = dict(merge_lists) for k, v in new_dict.items(): print ("{:<20} {:<15}".format(k, v))
  • Lines [1-2] create two (2) lists containing the Element Name (el_name) and corresponding Atomic Mass (el_atom), respectively.
  • Line [3] merges the two (2) lists using zip() and converts them into an iterable object. The results save to merge_lists.
  • Line [4] converts merge_lists into a Dictionary (dict()). The results save to new_dict as key:value pairs.
  • Line [5] instantiates a For loop to return the key:value pairs from new_dict.
    • Each iteration outputs the key:value pair in a column format to the terminal.



Code (snippet)


Meitnerium 277.154
Darmstadtium 282.166
Roentgenium 282.169
Copernicium 286.179
Nihonium 286.182


Method 2: Use Dictionary Comprehension


This method uses Dictionary Comprehension to merge two (2) lists into an iterable object and convert it into a Dictionary as key:value pairs. A great one-liner!

el_name = ['Meitnerium', 'Darmstadtium', 'Roentgenium', 'Copernicium', 'Nihonium', 'Flerovium', 'Moscovium', 'Livermorium', 'Tennessine', 'Oganesson']
el_atom = [277.154, 282.166, 282.169, 286.179, 286.182, 290.192, 290.196, 293.205, 294.211, 295.216]
new_dict = {el_name[i]: el_atom[i] for i in range(len(el_name))} for k, v in new_dict.items(): print ("{:<20} {:<15}".format(k, v))
  • Lines [1-2] create two (2) lists containing the Element Name (el_name) and the corresponding Atomic Mass (el_atom), respectively.
  • Line [3] merges the lists as key:value pairs and converts them into a Dictionary. The results save to new_dict.
  • Line [4] instantiates a For loop to return the key:value pairs from new_dict.
    • Each iteration outputs the key:value pair in a column format to the terminal.



Code (snippet)


Meitnerium 277.154
Darmstadtium 282.166
Roentgenium 282.169
Copernicium 286.179
Nihonium 286.182


Method 3: Use Generator Expression with zip() and dict()


This method uses a Generator Expression to merge two (2) lists
into an iterable object (zip()) and convert it into a Dictionary (dict()) as key:value pairs.

el_name = ['Meitnerium', 'Darmstadtium', 'Roentgenium', 'Copernicium', 'Nihonium', 'Flerovium', 'Moscovium', 'Livermorium', 'Tennessine', 'Oganesson']
el_atom = [277.154, 282.166, 282.169, 286.179, 286.182, 290.192, 290.196, 293.205, 294.211, 295.216]
gen_exp = dict(((k, v) for k, v in zip(el_name, el_atom))) for k, v in new_dict.items(): print ("{:<20} {:<15}".format(k, v))
  • Lines [1-2] create two (2) lists containing the Element Name (el_name) and the corresponding Atomic Mass (el_atom) respectively.
  • Line [3] uses a Generator Expression to merge the lists (zip()) and create an iterable object. The object converts into a Dictionary (dict()) and saves back to gen_exp.
  • Line [5] instantiates a For loop to return the key:value pairs from new_dict.
    • Each iteration outputs the key:value pair in a column format to the terminal.

Code (snippet)


Meitnerium 277.154
Darmstadtium 282.166
Roentgenium 282.169
Copernicium 286.179
Nihonium 286.182





Method 4: Use a Lambda


This method uses a Lambda to merge two (2) lists into an iterable object (zip()) and convert it into a Dictionary (dict()) as key:value pairs.

el_name = ['Meitnerium', 'Darmstadtium', 'Roentgenium', 'Copernicium', 'Nihonium', 'Flerovium', 'Moscovium', 'Livermorium', 'Tennessine', 'Oganesson']
el_atom = [277.154, 282.166, 282.169, 286.179, 286.182, 290.192, 290.196, 293.205, 294.211, 295.216]
new_dict = dict((lambda n, a: {name: el_atom for name, el_atom in zip(n, a)})(el_name, el_atom)) for k, v in new_dict.items(): print ("{:<20} {:<15}".format(k, v))
  • Lines [1-2] create two (2) lists containing the Element Name (el_name) and the corresponding Atomic Mass (el_atom) respectively.
  • Line [3] uses a lambda to merge the lists (zip()) and create an iterable object. The results save to a Dictionary new_dict as key:value pairs.
  • Line [4] instantiates a For loop to return the key:value pairs from new_dict.
    • Each iteration outputs the key:value pair in a column format to the terminal.

Code (snippet)


Meitnerium 277.154
Darmstadtium 282.166
Roentgenium 282.169
Copernicium 286.179
Nihonium 286.182





Summary


After reviewing the above methods, we decide that Method 2 is best suited: minimal overhead and no additional functions required.

Problem Solved! Happy Coding!




https://www.sickgaming.net/blog/2022/04/...two-lists/

Print this item

  (Indie Deal) Vocalo-Beats Bundle, UBISOFT, Kalypso, Disney Sales
Posted by: xSicKxBot - 04-27-2022, 05:37 PM - Forum: Deals or Specials - No Replies

Vocalo-Beats Bundle, UBISOFT, Kalypso, Disney Sales

Vocalo-Beats Bundle | 12 Music Albums | 81% OFF
[www.indiegala.com]
Enjoy listening to a collection of tracks by Miku & her vocaloid friends, in different genres and languages, brought to you by Vocallective Records and featuring prominent artists like Craving DFC, Crux Zero, Hidaritsuu, Woolookologie, Lyle Music, NananaeUK, Softscape, The Rainfields & Zuharu.

https://www.youtube.com/watch?v=gMEzdYaGuBM
UBISOFT, Kalypso, Disney Sales, up to 80% OFF
[www.indiegala.com]
[www.indiegala.com]
[www.indiegala.com]

https://www.youtube.com/watch?v=3hWqtTb0zzA
Stay Inside, Stay Safe and Enjoy Good Games.
Check out IndieGala on Twitter, YouTube & Facebook[www.facebook.com]


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

Print this item

  PC - tERRORbane
Posted by: xSicKxBot - 04-27-2022, 05:37 PM - Forum: New Game Releases - No Replies

tERRORbane



In tERRORbane, you'd expect to save a generic fantasy RPG world from evil, right? Instead, the Developer who created the game keeps on commenting on everything you do, funny bugs and glitches keep on popping up everywhere you go and nothing seems to work the way it should?! What's a good Player to do, but dish out his trusty BUG LIST and use bugs to his advantage to get to the ending credits sequence?

There's nothing that could go hilariously wrong, right?

Enjoy exploring a crazy and outlandish world, full of unique, quirky characters and homages to the media of videogaming and its celebrated history, challenge the Developer with your creativity as you exploit and cheat your way through his sloppy design to try to get to the heart of what is truly needed to make the best games work.

Publisher: WhisperGames

Release Date: Apr 01, 2022




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

Print this item

  News - Twitch Exploring Subscription Revenue Cuts, Bigger Focus On Ads - Report
Posted by: xSicKxBot - 04-27-2022, 05:37 PM - Forum: Lounge - No Replies

Twitch Exploring Subscription Revenue Cuts, Bigger Focus On Ads - Report

Proposed changes to monetization approaches are reportedly being discussed at Twitch, with a big change to partner revenue cuts being proposed.

In a report by Bloomberg, several sources state that Amazon, Twitch's parent company, is continuing to look for long-term answers to financial stability for the streaming platform, sometimes at the expense of its users. One of the largest changes that could be introduced in the coming months will cut revenue from channel subscriptions (which can range from $5 to $25) from 70% to just 50% for Twitch partners, which consists of Twitch's biggest streamers.

Another proposed change is introducing new tiers to its partner program while loosening restrictions on where creators are allowed to stream should they be partnered with Twitch. By allowing creators to stream on YouTube and Facebook, Twitch seemingly hopes that the cut in revenue to its creators might be evened out.

Continue Reading at GameSpot

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

Print this item

  [Oracle Blog] Java and the New Duke Personality
Posted by: xSicKxBot - 04-26-2022, 07:21 PM - Forum: Java Language, JVM, and the JRE - No Replies

Java and the New Duke Personality

For 24+ years, Java technology has advanced the world we interact with every day. With Oracle’s stewardship, Java technology continues to offer developers innovative functionality to build out the next generation of applications that bring utility to us, both personally and professionally. And durin...

https://blogs.oracle.com/java/post/java-...ersonality

Print this item

  [Tut] How to Read an XLS File in Python?
Posted by: xSicKxBot - 04-26-2022, 07:21 PM - Forum: Python - No Replies

How to Read an XLS File in Python?

Problem Formulation and Solution Overview


In this article, you’ll learn how to read an XML file and format the output in Python.

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

Arman, a Music Appreciation student at the Royal Conservatory of Music, has been given course materials in an XML file format. Arman needs to purchase these books immediately. He’s into music, not computers. He needs you to format the output into a readable format.

Navigate to the Appendix Data section and download the XML file to follow along. Then, move this file to the current working directory.

? Question: How would we read in ax XML file and format the output?

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


Before any data manipulation can occur, two (2) new libraries will require installation.

  • The Pandas library enables access to/from a DataFrame.
  • The Beautiful Soup library enables the parsing of XML and HTML files.

To install these libraries, navigate to an IDE terminal. At the command prompt ($), execute the code below. For the terminal used in this example, the command prompt is a dollar sign ($). Your terminal prompt may be different.

$ pip install pandas

Hit the <Enter> key on the keyboard to start the installation process.

$ pip install bs4

Hit the <Enter> key on the keyboard to start the installation process.

If the installations were successful, a message displays in the terminal indicating the same.


Feel free to view the PyCharm installation guide for the required libraries.


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 pandas as pd from bs4 import BeautifulSoup
import xml.etree.ElementTree as ET
import base64, xml.dom.minidom
from xml.dom.minidom import Node

? Note: The additional libraries indicated above do not require installation as they come built-in to Python.


Method 1: Use Beautiful Soup


A clean, compact way to read an XML file is to use Python’s Beautiful Soup library. A “go-to” tool for web scraping and XML data extraction.

all_books = BeautifulSoup(open('books.xml'), 'xml')
pretty_xml = all_books.prettify()
print(pretty_xml)
  • The books.xml file is read and parsed using Beautiful Soup’s XML parser. The results are saved to all_books.
  • Next, Beautiful Soup’s prettify() method is used to improve the appearance of the output.
  • Finally, the formatted output is sent to the terminal.

Output (snippet)


<?xml version="1.0"?>
<catalog>   
<book>     
<isbn>978-0393050714</isbn>
      <title>Johann Sebastian Bach</title>
      <price>$5.99</price>
   </book>
......
</catalog>


Method 2: Use XML eTree


The ElementTree library is built-in to Python and contains functions to read and parse XML and XML-like data structures. The hierarchical data format is based on a tree structure: a root representing the tree and elements representing the nodes.

all_books = ET.parse('books.xml').getroot() for b in all_books.findall('book'): print ("{:<20} {:<30} {:<30}".format(b.find('isbn').text, b.find('title').text, b.find('price').text))
  • The books.xml file is read in and parsed using the eTree parse() function. The results are saved to all_books.
  • Next, a For loop is instantiated. It traverses through each book in all_books.
    • Each book’s details are formatted into columns and output to the terminal.

Output (snippet)


978-0393050714 Johann Sebastian Bach $5.99
978-1721260522 Ludwig van Beethoven $9.99
978-0679745822 Johannes Brahms $7.99
979-8653086533 Frederic Chopin $7.99
978-1580469036 Claude Debussy $13.99


Method 3: Use minidom


Minidom is a smaller version of DOM and comes with an API similar to other programming languages. However, feedback indicates this method is slow and a memory hogger.

with open("books.xml",'r') as fp: data = fp.read() i = 0
all_books = xml.dom.minidom.parseString(data)
for book in all_books.getElementsByTagName('book'): isbn = all_books.getElementsByTagName('isbn')[i].firstChild.nodeValue title = all_books.getElementsByTagName('title')[i].firstChild.nodeValue price = all_books.getElementsByTagName('price')[i].firstChild.nodeValue print ("{:<20} {:<25} {:<20}".format(isbn, title, price)) i +=1
  • The books.xml file is opened, and a file object, fp is created.
    • The contents of this file are read in and saved to data.
  • A counter variable i is created to loop through all_books and is assigned the value 0.
  • Then data is read and parsed. The results save to all_books.
  • A For loop is instantiated. It traverses through each book in all_books.
    • Four (4) variables are used to locate and save the appropriate values.
    • They are formatted and output to the terminal in columns.
    • The counter variable is increased by one (1).

Output (snippet)


978-0393050714 Johann Sebastian Bach $5.99
978-1721260522 Ludwig van Beethoven $9.99
978-0679745822 Johannes Brahms $7.99
979-8653086533 Frederic Chopin $7.99
978-1580469036 Claude Debussy $13.99


Method 4: Use Pandas read_xml()


The Pandas library has an option to read in an XML file and convert it to a DataFrame in one easy step.

df = pd.read_xml('books.xml')
print(df)



  • The books.xml file is read in and saved to the DataFrame df.
  • The output automatically formats into columns (including a header row) and is output to the terminal.

Output (snippet)


isbn title price
0 978-0393050714 Johann Sebastian Bach $5.99
1 978-1721260522 Ludwig van Beethoven $9.99
2 978-0679745822 Johannes Brahms $7.99
3 979-8653086533 Frederic Chopin $7.99
4 978-1580469036 Claude Debussy $13.99


Appendix Data


<?xml version="1.0"?>
<catalog>
   <book>
      <isbn>978-0393050714</isbn>
      <title>Johann Sebastian Bach</title>
      <price>$5.99</price>
   </book>
   <book>
      <isbn>978-1721260522</isbn>
      <title>Ludwig van Beethoven</title>
      <price>$9.99</price>
   </book>
   <book>
      <isbn>978-0679745822</isbn>
      <title>Johannes Brahms</title>
      <price>$7.99</price>
   </book>
   <book>
      <isbn>979-8653086533</isbn>
      <title>Frederic Chopin</title>
      <price>$7.99</price>
   </book>
   <book>
      <isbn>978-1580469036</isbn>
      <title>Claude Debussy</title>
      <price>$13.99</price>
   </book>
   <book>
      <isbn>978-0520043176</isbn>
      <title>Joseph Haydn</title>
      <price>$25.99</price>
   </book>
   <book>
      <isbn>978-1981659968</isbn>
      <title>Wolfgang Amadeus Mozart</title>
      <price>$8.99</price>
   </book>
   <book>
      <isbn>978-1482379990</isbn>
      <title>Franz Schubert</title>
      <price>$26.99</price>
   </book>
   <book>
      <isbn>978-0486257488</isbn>
      <title>Robert Schumann</title>
      <price>$14.99</price>
   </book>
   <book>
      <isbn>978-0486442723</isbn>
      <title>Peter Tchaikovsky</title>
      <price>$12.95</price>
   </book>
</catalog>

Summary


After reviewing the above methods in conjunction with Arman’s requirements, we decide that Method 4 best meets his needs.

Problem Solved! Happy Coding!




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

Print this item

  (Indie Deal) Easter Giveaways, 2K & Dangen Sales
Posted by: xSicKxBot - 04-26-2022, 07:20 PM - Forum: Deals or Specials - No Replies

Easter Giveaways, 2K & Dangen Sales

Easter Giveaways
[www.indiegala.com]

2K & Dangen Easter Sales, up to 92% OFF
[www.indiegala.com]
[www.indiegala.com]
https://www.youtube.com/watch?v=QYNwd93YKC0
Stay Inside, Stay Safe and Enjoy Good Games.
Check out IndieGala on Twitter, YouTube & Facebook[www.facebook.com]


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

Print this item

 
Latest Threads
Black Ops (BO1, T5) DLC's...
Last Post: GalacticNuddy
2 hours ago
Redacted T6 Nightly Offli...
Last Post: Marlo
4 hours ago
Black Ops 2 Jiggy v4.3 PC...
Last Post: SinjiKoto
4 hours ago
(Free Game Key) Epic Game...
Last Post: xSicKxBot
8 hours ago
News - Paralives’ Success...
Last Post: xSicKxBot
8 hours ago
[°NeW°]⩽United Arab Emira...
Last Post: abhi89
Today, 09:08 AM
[°NeW°]⩽Switzerland⟫°TℰℳU...
Last Post: abhi89
Today, 07:53 AM
[°NeW°]⩽Ireland⟫°TℰℳU Cou...
Last Post: abhi89
Today, 06:23 AM
[°NeW°]⩽Chile⟫°TℰℳU Coupo...
Last Post: abhi89
Today, 06:19 AM
[°NeW°]⩽Pakistan⟫°TℰℳU Co...
Last Post: abhi89
Today, 06:16 AM

Forum software by © MyBB Theme © iAndrew 2016