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,134
» Latest member: jax9090nnn
» Forum threads: 21,936
» Forum posts: 22,806

Full Statistics

Online Users
There are currently 1145 online users.
» 0 Member(s) | 1140 Guest(s)
Applebot, Baidu, Bing, Google, Yandex

 
  PC - Moonscars
Posted by: xSicKxBot - 10-19-2022, 03:08 AM - Forum: New Game Releases - No Replies

Moonscars



Push the limits of your combat skills, and master new abilities to progress through an unforgiving nonlinear 2D world. Face off against the relentless darkness that seeks to destroy you. In Moonscars, every death is a lesson learnt—and as you overcome each challenge, new truths will be revealed.

Publisher: Humble Games

Release Date: Sep 27, 2022




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

Print this item

  [Oracle Blog] Java Card at JavaOne 2022 in Las Vegas
Posted by: xSicKxBot - 10-18-2022, 05:27 AM - Forum: Java Language, JVM, and the JRE - No Replies

Java Card at JavaOne 2022 in Las Vegas

Did you know #JavaOne is back ? Among a plethora of great sessions, two Java Card sessions will be on stage. This is a great opportunity to follow up on the technology and features to come.
All details here: https://inside.java/javaone

https://blogs.oracle.com/java/post/java-...-las-vegas

Print this item

  [Tut] Plotly Dash Bootstrap Card Components
Posted by: xSicKxBot - 10-18-2022, 05:27 AM - Forum: Python - No Replies

Plotly Dash Bootstrap Card Components

Rate this post

Welcome to the bonus content of “The Book of Dash”. ?

? Here you will find additional examples of Plotly Dash components, layouts and style. To learn more about making dashboards with Plotly Dash, and how to buy your copy of “The Book of Dash”, please see the reference section at the bottom of this article.

As you read the article, feel free to run the explainer video on the Card components from one of our coauthors’ “Charming Data” YT channel:

YouTube Video

This article will focus on the Card components from the Dash Boostrap Component library. Using cards is a great way to create eye-catching content. We’ll show you how to make the card content interactive with callbacks, but first we’ll focus on the style and layout.

Plotly Dash App with a Bootstrap Card


We’ll start with the basics – a minimal Dash app to display a single card without any additional styling. Be sure to check out the complete reference for using Dash Bootstrap cards.

Next, we’ll show how to jazz it up to make it look better — and more importantly — so it conveys key information at a glance.


from dash import Dash, html
import dash_bootstrap_components as dbc app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB, dbc.icons.BOOTSTRAP]) card = dbc.Card( dbc.CardBody( [ html.H1("Sales"), html.H3("$104.2M") ], ),
) app.layout=dbc.Container(card) if __name__ == "__main__": app.run_server(debug=True)

Styling a Dash Bootstrap Card


An easy way to style content is by using Boostrap utility classes. See all the utility classes at the Dash Bootstrap Cheatsheet app. This handy cheatsheet is made by a co-author of “The Book of Dash”.

In this card, we center the text and change the color with “text-center” and “text-success“. The Bootstrap themes have named colors and “success” is a shade of green.

? Recommended Resource: For more information about styling your app with a Boostrap theme, see Dash Bootstrap Theme Explorer


card = dbc.Card( dbc.CardBody( [ html.H1("Sales"), html.H3("$104.2M", className="text-success") ], ), className="text-center"
)

Feel free to watch Adam’s explainer video on Bootstrap and styling your app if you need to get up to speed! ?

YouTube Video

Dash Bootstrap Card with Icons


You can add Bootstrap and/or Font Awesome icons to your Dash Bootstrap components. In this example, we will add the bank icon as well as change the background color using the Bootstrap utility class bg-primary.


card = dbc.Card( dbc.CardBody( [ html.H1([html.I(className="bi bi-bank me-2"), "Profit"]), html.H3("$8.3M"), html.H4(html.I("10.3% vs LY", className="bi bi-caret-up-fill text-success")), ], ), className="text-center m-4 bg-primary text-white",
)

To learn more, see the Icons section of the dash-bootstrap-components documentation. You can also find more information about adding icons to dash components in the buttons article.

? Recommended Tutorial: Plotly Dash Button Component – A Simple Illustrated Guide

Dash Bootstrap Cards Side-by-Side


In business intelligence dashboards, it’s common to highlight KPIs or Key Performance Indicators in a group of cards. You can find many examples in the Plotly App Gallery:


This app places three KPI cards side-by-side. We use the dbc.Row and dbc.Col components to create this responsive card layout. When you run this app, try changing the width of the browser window to see how the cards expand to fill the row based on the screen size.

This app also demonstrates the usage of Bootstrap border utility classes to add and style a border. Here we add a border on the left and change the color to highlight the results. Another trick is to use the “text-nowrap” class to keep the icon and the text together on the same line when the cards shrink to accommodate small screen sizes.


from dash import Dash, html
import dash_bootstrap_components as dbc app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB, dbc.icons.BOOTSTRAP]) card_sales = dbc.Card( dbc.CardBody( [ html.H1([html.I(className="bi bi-currency-dollar me-2"), "Sales"], className="text-nowrap"), html.H3("$106.7M"), html.Div( [html.I("5.8%", className="bi bi-caret-up-fill text-success"), " vs LY",] ), ], className="border-start border-success border-5" ), className="text-center m-4"
) card_profit = dbc.Card( dbc.CardBody( [ html.H1([html.I(className="bi bi-bank me-2"), "Profit"], className="text-nowrap"), html.H3("$8.3M",), html.Div( [ html.I("12.3%", className="bi bi-caret-down-fill text-danger"), " vs LY", ] ), ], className="border-start border-danger border-5" ), className="text-center m-4",
) card_orders = dbc.Card( dbc.CardBody( [ html.H1([html.I(className="bi bi-cart me-2"), "Orders"], className="text-nowrap"), html.H3("91.4K"), html.Div( [ html.I("10.3%", className="bi bi-caret-up-fill text-success"), " vs LY", ] ), ], className="border-start border-success border-5" ), className="text-center m-4",
) app.layout = dbc.Container( dbc.Row( [dbc.Col(card_sales), dbc.Col(card_profit), dbc.Col(card_orders)], ), fluid=True,
) if __name__ == "__main__": app.run_server(debug=True)

Creating Dash Bootstrap Cards in a Loop


In the previous example, notice that a lot of the code for creating the card is the same. To reduce the amount of repetitive code, let’s create cards in a function.

In this app, we introduce the dbc.CardHeader component and the "shadow" class to style the card. We’ll show you how to add more style later in the app that displays crypto prices.


from dash import Dash, html
import dash_bootstrap_components as dbc app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB]) summary = {"Sales": "$100K", "Profit": "$5K", "Orders": "6K", "Customers": "300"} def make_card(title, amount): return dbc.Card( [ dbc.CardHeader(html.H2(title)), dbc.CardBody(html.H3(amount, id=title)), ], className="text-center shadow", ) app.layout = dbc.Container( dbc.Row([dbc.Col(make_card(k, v)) for k, v in summary.items()], className="my-4"), fluid=True,
) if __name__ == "__main__": app.run_server(debug=True)

Dash Bootstrap Card with an Image


This card uses the dbc.CardImage component. This is a great format for the “who’s who” section of your app. It works well for displaying information about products too.


from dash import Dash, html
import dash_bootstrap_components as dbc app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB]) count = "https://user-images.githubusercontent.com/72614349/194616425-107a62f9-06b3-4b84-ac89-2c42e04c00ac.png" card = dbc.Card([ dbc.CardImg(src=count, top=True), dbc.CardBody( [ html.H3("Count von Count", className="text-primary"), html.Div("Chief Financial Officer"), html.Div("Sesame Street, Inc.", className="small"), ] )], className="shadow my-2", style={"maxWidth": 350},
) app.layout=dbc.Container(card) if __name__ == "__main__": app.run_server(debug=True)

Dash Bootstrap Card with an Image and a Link


This app has a card with the dbc.CardLink component.

When you run this app, try clicking on either the logo or the title. You will see that both are links to the Plotly site displaying the current job openings.

We do this by including both the html.Img component with the Plotly logo and the html.Span with the title in the dbc.CardLink component.


from dash import Dash, html
import dash_bootstrap_components as dbc app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB]) plotly_logo_dark = "https://user-images.githubusercontent.com/72614349/182967824-c73218d8-acbf-4aab-b1ad-7eb35669b781.png" card = dbc.Card( dbc.CardBody( [ dbc.CardLink( [ html.Img(src=plotly_logo_dark, height=65), html.Span("Plotly Job Openings", className="ms-2") ], className="text-decoration-none h2", href="https://plotly.com/careers/" ), html.Hr(), html.Div("Engineering", className="h3"), html.Div("Intermediate Backend Engineer", className="text-danger"), html.Div("Remote, Canada", className="small"), ] ), className="shadow my-2", style={"maxWidth": 450},
) app.layout=dbc.Container(card) if __name__ == "__main__": app.run_server(debug=True)

Dash Bootstrap Card with a Background Image


This app puts the image in the background and uses the dbc.CardImgOverlay component to place content on top of the image.

We also use dbc.Buttons to link to other sites for more information. See the buttons article for more information. Be sure to run the app and check out the links. The Webb Telescope app is pretty cool!


? Recommended Tutorial: Before After Image in Plotly Dash

from dash import Dash, html
import dash_bootstrap_components as dbc app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB, dbc.icons.BOOTSTRAP]) webb_deep_field = "https://user-images.githubusercontent.com/72614349/192781103-2ca62422-2204-41ab-9480-a730fc4e28d7.png"
card = dbc.Card( [ dbc.CardImg(src=webb_deep_field), dbc.CardImgOverlay([ html.H2("James Webb Space Telescope"), html.H3("First Images"), html.P( "Learn how to make an app to compare before and after images of Hubble vs Webb with ~40 lines of Python", style={"marginTop":175}, className="small", ), dbc.Button("See the App", href="https://jwt.pythonanywhere.com/"), dbc.Button( [html.I(className="bi bi-github me-2"), "source code"], className="ms-2 text-white", href="https://github.com/AnnMarieW/webb-compare", ) ]) ], style={"maxWidth": 500}, className="my-4 text-center text-white"
) app.layout=dbc.Container(card) if __name__ == "__main__": app.run_server(debug=True)

See this Plotly Dash app live: https://jwt.pythonanywhere.com/


Plotly Dash App with Live Updates


This app shows live updates of crypto prices. We use a dcc.Interval component to fetch the data from CoinGecko every 6 seconds.

The CoinGecko API is easy to use because you don’t need an API key, and it’s free if you keep the number of updates within the free tier limits. We pull the current price, 24 hour price change, and the coin logo from the data feed and display the data in a nicely styled card.

In this app we introduce callbacks to update the data, and show how to get the data from CoinGecko. All the other styling has been covered in previous examples.

Note that in this app, the color of the text and the up and down arrows are updated dynamically based on the data in the make_card function.


import dash
from dash import Dash, dcc, html, Input, Output
import dash_bootstrap_components as dbc
import requests app = Dash(__name__, external_stylesheets=[dbc.themes.SUPERHERO, dbc.icons.BOOTSTRAP]) coins = ["bitcoin", "ethereum", "binancecoin", "ripple"]
interval = 6000 # update frequency - adjust to keep within free tier
api_url = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd" def get_data(): try: response = requests.get(api_url, timeout=1) return response.json() except requests.exceptions.RequestException as e: print(e) def make_card(coin): change = coin["price_change_percentage_24h"] price = coin["current_price"] color = "danger" if change < 0 else "success" icon = "bi bi-arrow-down" if change < 0 else "bi bi-arrow-up" return dbc.Card( html.Div( [ html.H4( [ html.Img(src=coin["image"], height=35, className="me-1"), coin["name"], ] ), html.H4(f"${price:,}"), html.H5( [f"{round(change, 2)}%", html.I(className=icon), " 24hr"], className=f"text-{color}", ), ], className=f"border-{color} border-start border-5", ), className="text-center text-nowrap my-2 p-2", ) mention = html.A( "Data from CoinGecko", href="https://www.coingecko.com/en/api", className="small"
)
interval = dcc.Interval(interval=interval)
cards = html.Div()
app.layout = dbc.Container([interval, cards, mention], className="my-5") @app.callback(Output(cards, "children"), Input(interval, "n_intervals"))
def update_cards(_): coin_data = get_data() if coin_data is None or type(coin_data) is dict: return dash.no_update # make a list of cards with updated prices coin_cards = [] updated = None for coin in coin_data: if coin["id"] in coins: updated = coin.get("last_updated") coin_cards.append(make_card(coin)) # make the card layout card_layout = [ dbc.Row([dbc.Col(card, md=3) for card in coin_cards]), dbc.Row(dbc.Col(f"Last Updated {updated}")), ] return card_layout if __name__ == "__main__": app.run_server(debug=True)

Plotly Dash App with a Sidebar


A common layout for Dash apps is to put inputs in a sidebar, and the output in the main section of the page. We can place both the sidebar and the output in Dash Boostrap Card components.

See the app and the code live at the Dash Example Index


Plotly Dash Example Index


See more examples of interactive apps in the Dash Example Index


Reference


Order Your Copy of “The Book of Dash” Today!

The Book Of Dash


The Book of Dash Authors


Feel free to learn more about the book’s coauthors here:

Ann Marie Ward:

Adam Schroeder:

Chris Mayer:




https://www.sickgaming.net/blog/2022/10/...omponents/

Print this item

  (Indie Deal) FREE SAMOLIOTIK, Nioh 2, Borderlands, Bethesda Deals
Posted by: xSicKxBot - 10-18-2022, 05:27 AM - Forum: Deals or Specials - No Replies

FREE SAMOLIOTIK, Nioh 2, Borderlands, Bethesda Deals

SAMOLIOTIK FREEbie
[freebies.indiegala.com]
SAMOLIOTIK is a stylish shoot-em-up with different enemies, bosses, colour palettes, power-ups, set in different eras. Get it for FREE today!

Nioh 2, Borderlands, Bethesda Deals
[www.indiegala.com]
[www.indiegala.com]
[www.indiegala.com]
http://www.youtube.com/watch?v=i-XkYZpnY74
Final Day of Crypto Sale
[www.indiegala.com]
https://www.youtube.com/watch?v=egO5IvndkSM


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

Print this item

  News - Here's PT Running On An Unmodified PS5
Posted by: xSicKxBot - 10-18-2022, 05:27 AM - Forum: Lounge - No Replies

Here's PT Running On An Unmodified PS5

Hideo Kojima's Silent Hills experiment PT has largely been unavailable on current-gen consoles for a few years now, but video game modder Lance McDonald has managed to get the spooky survival-horror game running on a regular PS5. The catch here is that to get PT running on an unmodified PS5, McDonald needed a second PS5 that had been through the jailbreaking process.

In a new video, McDonald shows how the process works. You'll need to already own PT on your PlayStation account, log in to your account on a jailbroken PS5, and download the game through that system. Copy it over to a USB drive, insert that USB into your regular PS5, and you're good to go. It's actually quite easy to do, if you have a spare modified PS5 lying around. As a reminder, doing any of this is against Sony's terms of service, so do so at your own risk.

Hideo Kojima recently marked the eighth anniversary of PT with a quick tweet, posting an image of the cover art from the secret Silent Hill game project. What was meant to be a fresh start for the Konami franchise was infamously canceled several years ago, with the company eventually pulling PT from the PlayStation Network and aggressively pursuing any attempts by fans to remake the game.

Continue Reading at GameSpot

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

Print this item

  (Free Game Key) Darkwood & ToeJam & Earl: Back in the Groove! - Free Epic Games
Posted by: xSicKxBot - 10-18-2022, 05:27 AM - Forum: Deals or Specials - No Replies

Darkwood & ToeJam & Earl: Back in the Groove! - Free Epic Games

Grab these games on the Epic Games Store

❤️ Darkwood
Store Page[store.epicgames.com]

❤️ ToeJam & Earl: Back in the Groove!
Store Page[store.epicgames.com]

The games are free to keep if claimed by: Thursday, 20th October 2022 15:00 UTC.

Next week's freebies:
Evoland Legendary Edition
Fallout 3 Game of the Year Edition

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...3574196977

Print this item

  PC - Hokko Life
Posted by: xSicKxBot - 10-18-2022, 05:27 AM - Forum: New Game Releases - No Replies

Hokko Life



Hokko Life is a cosy, creativity filled community sim game.

Step off the train into the town of Hokko and get settled into your new home! This quiet village needs your help to turn it into the charming rural town everyone loves. With hammer and paints in hand it's up to you to design, build and decorate homes for all of your new friends!

Busy yourself away in the dusty old workshop and let your creativity flow! Craft materials and combine them in whatever way you desire to create new and wonderful furniture and items for your town. Collect flowers, mix paints and use them to design wallpapers, flooring and even clothing!

Will you design an urban-industrial furniture collection or maybe a bright flowery wallpaper set? With all of the workshop at your disposal, you'll have complete freedom to design a town your villagers will absolutely love.

Publisher: Team17

Release Date: Sep 27, 2022




https://www.metacritic.com/game/pc/hokko-life

Print this item

  [Oracle Blog] Top GraalVM sessions at Oracle CloudWorld 2022
Posted by: xSicKxBot - 10-17-2022, 03:24 AM - Forum: Java Language, JVM, and the JRE - No Replies

Top GraalVM sessions at Oracle CloudWorld 2022

OCW GraalVM Session guide that makes it easier for attendees to locate and scan QRcodes to find favorite GraalVM sessions.

https://blogs.oracle.com/java/post/ocw-g...tion-guide

Print this item

  [Tut] Python TypeError: ‘dict_keys’ Not Subscriptable (Fix This Stupid Bug)
Posted by: xSicKxBot - 10-17-2022, 03:24 AM - Forum: Python - No Replies

Python TypeError: ‘dict_keys’ Not Subscriptable (Fix This Stupid Bug)

5/5 – (1 vote)

Do you encounter the following error message?

TypeError: 'dict_keys' object is not subscriptable

You’re not alone! This short tutorial will show you why this error occurs, how to fix it, and how to never make the same mistake again.

So, let’s get started!

Solution


Python raises the “TypeError: 'dict_keys' object is not subscriptable” if you use indexing or slicing on the dict_keys object obtained with dict.keys(). To solve the error, convert the dict_keys object to a list such as in list(my_dict.keys())[0].

print(list(my_dict.keys())[0])

Example



The following minimal example that leads to the error:

d = {1:'a', 2:'b', 3:'c'}
print(d.keys()[0])

Output:

Traceback (most recent call last): File "C:\Users\...\code.py", line 2, in <module> print(d.keys()[0])
TypeError: 'dict_keys' object is not subscriptable

Note that the same error message occurs if you use slicing instead of indexing:

d = {1:'a', 2:'b', 3:'c'}
print(d.keys()[:-1]) # <== same error

Fixes


The reason this error occurs is that the dictionary.keys() method returns a dict_keys object that is not subscriptable.

You can use the type() function to check it for yourself:

print(type(d.keys()))
# <class 'dict_keys'>

Note: You cannot expect dictionary keys to be ordered, so using indexing on a non-ordered type wouldn’t make too much sense, would it? ⚡

You can fix the non-subscriptable TypeError by converting the non-indexable dict_keys object to an indexable container type such as a list in Python using the list() or tuple() function.

Here’s an example fix:

d = {1:'a', 2:'b', 3:'c'}
print(list(d.keys())[0])
# 1

Here’s an other example fix:

d = {1:'a', 2:'b', 3:'c'}
print(tuple(d.keys())[:-1])
# (1, 2)

Both lists and tuples are subscriptable so you can use indexing and slicing after converting the dict_keys object to a list or a tuple.

? Full Guide: Python Fixing This Subsctiptable Error (General)

Summary


Python raises the TypeError: 'dict_keys' object is not subscriptable if you try to index x[i] or slice x[i:j] a dict_keys object.

The dict_keys type is not indexable, i.e., it doesn’t define the __getitem__() method. You can fix it by converting the dictionary keys to a list using the list() built-in function.

Alternatively, you can also fix this by removing the indexing or slicing call, or defining the __getitem__ method. Although the previous approach is often better.

What’s Next?


I hope you’d be able to fix the bug in your code! Before you go, check out our free Python cheat sheets that’ll teach you the basics in Python in minimal time:

If you struggle with indexing in Python, have a look at the following articles on the Finxter blog—especially the third!

? Related Articles:



https://www.sickgaming.net/blog/2022/10/...tupid-bug/

Print this item

  (Indie Deal) Fantasy Idols Bundle, HITMAN Deals, Cities Radio Raffles
Posted by: xSicKxBot - 10-17-2022, 03:24 AM - Forum: Deals or Specials - No Replies

Fantasy Idols Bundle, HITMAN Deals, Cities Radio Raffles

Cities Radio Giveaways
[www.indiegala.com]

Fantasy Idols Bundle | 14 Adult Games | 94% OFF
[www.indiegala.com]
Behold our biggest and most exquisite erotic game selection for daring anime fans & idol connoisseurs. (Adult 18+)

HITMAN, Fireshine, Akupara Sales
[www.indiegala.com]
Pre-Order: Hearts of Iron IV: By Blood Alone
[www.indiegala.com]
https://www.youtube.com/watch?v=KzPi2mGjP4M
Happy Hour: Jazzy Beats #2 Bundle
[www.indiegala.com]
Gloomhaven - Solo Scenarios: Mercenary Challenges
https://www.youtube.com/watch?v=UJeVYYfYyM4
New Release![www.indiegala.com]


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

Print this item

 
Latest Threads
௹©Ukraine Shein COUPON Co...
Last Post: udwivedi923
21 minutes ago
௹©Morocco Shein COUPON Co...
Last Post: udwivedi923
22 minutes ago
௹©USA Shein COUPON Code ...
Last Post: udwivedi923
23 minutes ago
௹©Armenia Shein COUPON Co...
Last Post: udwivedi923
24 minutes ago
௹©Brazil Shein COUPON Cod...
Last Post: udwivedi923
27 minutes ago
௹©South Africa Shein COUP...
Last Post: udwivedi923
28 minutes ago
௹©Moldova Shein COUPON Co...
Last Post: udwivedi923
29 minutes ago
௹©Malta Shein COUPON Code...
Last Post: udwivedi923
31 minutes ago
௹©Luxembourg Shein COUPON...
Last Post: udwivedi923
33 minutes ago
௹©Kazakhstan Shein COUPON...
Last Post: udwivedi923
39 minutes ago

Forum software by © MyBB Theme © iAndrew 2016