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,121
» Latest member: gottaluvthatkill
» Forum threads: 21,748
» Forum posts: 22,617

Full Statistics

Online Users
There are currently 918 online users.
» 1 Member(s) | 913 Guest(s)
Applebot, Baidu, Bing, Google, albert42

 
  (Free Game Key) Sable - Free Epic Games Game
Posted by: xSicKxBot - 12-19-2022, 10:31 AM - Forum: Deals or Specials - No Replies

Sable - Free Epic Games Game

Sable - 24 hours only
https://store.epicgames.com/p/sable

This game is free to keep if claimed by December 19, 2022 5:00 PM or in a day

- Click on the GET Button
- Verify that the price is zero
- Click on the Place Order Button
- Thats it, the game will be added to you Epic Games 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] Fanatical Affiliate[www.fanatical.com]


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

Print this item

  News - Fortnite And My Hero Academia: How To Get Deku's Smash Mythic Weapon
Posted by: xSicKxBot - 12-19-2022, 10:30 AM - Forum: Lounge - No Replies

Fortnite And My Hero Academia: How To Get Deku's Smash Mythic Weapon

My Hero Academia has arrived in Fortnite, and over the next two weeks, it's going to have a huge impact on how you play. That's because this collab isn't just about item shop cosmetics--though it certainly does have those. But on top of that, the island is now home to a new MHA-themed Mythic weapon: Deku's Smash.

Deku's Smash is just as big of a shift to the Fortnite meta as the Kamehameha was during the Dragonball collaboration this past summer. This is to say you should expect things to blow up a lot more during the next two weeks, as players will no doubt be constantly throwing this thing around.

What actually is the Deku's Smash mythic weapon?

Remember how the Kamehameha was basically a giant laser that would melt anything that you pointed it at--provided you could survive the lengthy charge-up time? The Deku's Smash is a pretty similar concept, with the main difference being that it's more like you're throwing a very large bomb.

Continue Reading at GameSpot

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

Print this item

  PC - Dwarf Fortress
Posted by: xSicKxBot - 12-19-2022, 10:29 AM - Forum: New Game Releases - No Replies

Dwarf Fortress



The deepest, most intricate simulation of a world that's ever been created. The legendary Dwarf Fortress is now on Steam. Build a fortress and try to help your dwarves survive against a deeply generated world.

Publisher: Bay 12 Games

Release Date: Dec 06, 2022




https://www.metacritic.com/game/pc/dwarf-fortress

Print this item

  [Oracle Blog] JDK 15 Is Live!
Posted by: xSicKxBot - 12-18-2022, 11:52 AM - Forum: Java Language, JVM, and the JRE - No Replies

JDK 15 Is Live!

JDK 15 is live! Download it from the Java SE Downloads page. See the JDK 15 Release Notes for detailed information about this release. The following are some of the important additions and updates in Java SE 15 and JDK 15: Text Blocks, first previewed in Java SE 13, is a permanent feature in this re...


https://blogs.oracle.com/java/post/jdk-15-is-live

Print this item

  [Tut] I Made a Python Script That Beeps When BTC or ETH Prices Drop
Posted by: xSicKxBot - 12-18-2022, 11:52 AM - Forum: Python - No Replies

I Made a Python Script That Beeps When BTC or ETH Prices Drop

4.5/5 – (2 votes)

This tutorials shares my experience of creating a simple Python script that warns me if crypto price data (e.g., BTC or ETH) crosses a certain threshold.

Why would I need this? Well, the script can be useful for trading signals if I want to react quickly. While I don’t really trade, this script may be useful to time some buy or sell orders in a volatile market environment.

Besides — it’s fun and easy and quick, 5 minutes tops, so let’s just do it!

? Challenge: I want to create a small Python script — that also works for Jupyter notebooks — to play a tone or warning signal as soon as Bitcoin or ETH price cross a certain threshold!

My Python Script if Crypto Prices Drop

This short clip shows you the tone it generates when BTC falls under a certain price — wait for the beep:

YouTube Video

You can run the Bitcoin price warning script in your background in a separate browser tab in a Colab Jupyter Notebook (code below).

Okay, let’s build the code in three easy steps.

Step 1: Get Bitcoin, Ethereum, or Crypto Prices in Python


First, install the Historic Crypto library to access live cryptocurrency data.

Jupyter Notebook: ?
!pip install Historic-Crypto Shell or Terminal: ?
pip install Historic-Crypto

Second, create a new object of the LiveCryptoData class, passing in the currency pair

  • 'BTC-USD' for Bitcoin and USD
  • 'ETH-USD' for Ethereum and USD
  • 'BTC-ETH' for Bitcoin and Ethereum

Third, use the LiveCryptoData(...).return_data() method to return a DataFrame and store it in a variable called data.

from Historic_Crypto import LiveCryptoData
data = LiveCryptoData('BTC-USD').return_data()
print(data)

Output:

Collecting data for 'BTC-USD'
Checking if user supplied is available on the CoinBase Pro API...
Connected to the CoinBase Pro API.
Ticker 'BTC-USD' found at the CoinBase Pro API, continuing to extraction.
Status Code: 200, successful API call. ask bid volume \
time 2022-12-17 18:36:26.149769+00:00 16720.58 16720.56 28130.05026215 trade_id price size time 2022-12-17 18:36:26.149769+00:00 472092300 16720.58 0.0028569

Fourth, print the first element in the price Series, which represents the current price of Bitcoin in US Dollars. So to get the current price, I simply call:

print(data['price'][0])
# 16722.21

I’m sure the price is completely outdated when you read this. ?

Okay, now that I have the price data, I’ll create some code to create a warning tone.

Step 2: Play Sinus Tone in Jupyter Notebook



My goal is to play a tone — any audio signal, really — even when the Python script or Jupyter notebook is not in the foreground.

I decided on an audio signal rather than a popup because popups are more intrusive to my workflow, and they may “pop up” in the background without me even seeing it.

Also, I may want to walk around and get some coffee ☕ — and still be warned when BTC crosses my threshold! ⚠

? How to create a sinus wave in a Jupyter Notebook in Python?

This code imports the NumPy library and the IPython.display library. It then creates a waveform with a frequency of 500 Hz and a duration of 2 seconds. The code then plays the waveform using the Audio() function from the IPython.display library. The rate is set to 10,000 Hz and autoplay is set to True so the sound will automatically play when the code is run.

import numpy as np
from IPython.display import Audio wave = np.sin(2*np.pi*500*np.arange(15000*2)/15000)
Audio(wave, rate=10000, autoplay=True)

Note that this code will only work in a Jupyter Notebook. To make a tone in any Python script, you can read the following tutorial on the Finxter blog:

? Recommended: How to Create a Beep in Python?

YouTube Video

Step 3: Putting It All Together in a Jupyter Notebook


The following script for Jupyter Notebooks runs forever until the current Bitcoin price drops below a user-defined threshold. If it does, it issues an audio wave sound that makes you aware of the event.

!pip install Historic-Crypto
from Historic_Crypto import LiveCryptoData
import numpy as np
from IPython.display import Audio
import time wave = np.sin(2*np.pi*500*np.arange(15000*2)/15000)
threshold = 16710 # usd per btc def get_price(): data = LiveCryptoData('BTC-USD', verbose=False).return_data() return float(data['price'][0]) print('Price warning below', threshold, 'USD per BTC')
print('Starting price', get_price(), 'USD per BTC') while get_price() > threshold: time.sleep(4) Audio(wave, rate=10000, autoplay=True)

You can change the threshold variable that is highlighted in the code above to control the price threshold that will cause the beep sound to play.

Try it yourself in my interactive Jupyter notebook here (Colab):


You can change the price data to Ethereum by using this function instead:

def get_price(): data = LiveCryptoData('ETH-USD', verbose=False).return_data() return float(data['price'][0])

In a similar manner, this will also work for other crypto tickers or trading pairs.

Thanks! ♥


I loved having you here. Feel free to stay updated with all our programming projects and download your coding cheat sheets here:



https://www.sickgaming.net/blog/2022/12/...ices-drop/

Print this item

  (Indie Deal) FREE Suna, Maleficence Tales Bundle, Maximum Movie Deals
Posted by: xSicKxBot - 12-18-2022, 11:52 AM - Forum: Deals or Specials - No Replies

FREE Suna, Maleficence Tales Bundle, Maximum Movie Deals

Suna FREEbie
[freebies.indiegala.com]
Do you have the courage to confront your past?

https://www.youtube.com/watch?v=3r5jmr2yrF0
Maleficence Tales Bundle | 8 eBooks | 92% OFF
[www.indiegala.com]
?Sometimes being the bad guy doesn't mean you are a bad guy?...other times you may be the worst calamity threatening the world, known as evil incarnate & a malevolent monster on par to demons. A new villainous eBook bundle is here.

https://www.youtube.com/watch?v=flLl1N0bLKM
Movie Games S.A. Winter Sale, up to 90% OFF
[www.indiegala.com]
Maximum Games Winter Sale, up to 90%OFF
[www.indiegala.com]
New Vorax Video
https://youtu.be/IpNkEt-ypSs


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

Print this item

  (Free Game Key) Costume Quest 2 - Free Epic Games Game
Posted by: xSicKxBot - 12-18-2022, 11:52 AM - Forum: Deals or Specials - No Replies

Costume Quest 2 - Free Epic Games Game

This giveaway is on the Epic Games platform

Epic Games is giving away free games every week for a few years

To grab the game for free:
Costume Quest 2 - 24 hours only
https://store.epicgames.com/en-US/p/costume-quest-2
- Click on the GET Button
- Verify that the price is zero
- Click on the Place Order Button
- Thats it, the game will be added to you Epic Games 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] Fanatical Affiliate[www.fanatical.com]


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

Print this item

  PC - Need for Speed Unbound
Posted by: xSicKxBot - 12-18-2022, 11:51 AM - Forum: New Game Releases - No Replies

Need for Speed Unbound



START AT THE BOTTOM, RACE TO THE TOP. The world is your canvas in Need for Speed™ Unbound. Prove you have what it takes to win The Grand, Lakeshore’s ultimate street racing challenge. Across four intense weeks of racing, earn enough cash to enter weekly qualifiers, beat the competition, and make your mark on the street racing scene while outdriving and outsmarting the cops. Pack your garage with precision-tuned, custom rides and light up the streets with your unique style, exclusive fits, and a vibrant global soundtrack led by A$AP Rocky and AWGE that bumps in every corner of the world. Express yourself to the fullest with the freshest new art styles and signature tags that represent what you're all about. With separate single and multiplayer campaigns, this latest edition in the Need for Speed™ franchise from Criterion Games™ delivers hours of electric, adrenaline-pumping action.

• Graffiti comes to life in Need for Speed™ Unbound with an all-new, unique visual style that blends elements of the freshest street art with the most realistic looking cars in Need for Speed™ history. Access a brand-new toolkit of high-energy visual and sound effects to express your driving skills, including Burst Nitrous, a new boost tactic that delivers a dizzying rush of speed.

• To get to the top, you gotta take risks. Choose how and when to put it all on the line, pulling huge drifts on the street, outdriving the cops, or placing side bets with your own earnings against rival racers. Time is money, so find the fastest way to earn enough cash to enter the weekly qualifiers and make it to Lakeshore’s ultimate race, The Grand.

• The more you race, the more you build heat. While the cops pile on the pressure, you gotta make tactical decisions using new escape mechanics to take control of the chase. Do you outrun the cops, battle them head on, or hide out in Lakeshore's underground? Run these streets and you’ll reap the rewards.

• Pull up to a Meetup and show off your unique style with hundreds of cosmetic items to choose from, including exclusive gear from some of the world’s most pioneering fashion innovators. Extend that look to your ride, transforming your cars with unique wraps and cutaways for the ultimate legendary custom. And when you take first, don't forget to stunt on the competition with your own personal win poses.

Publisher: Electronic Arts

Release Date: Dec 02, 2022




https://www.metacritic.com/game/pc/need-...ed-unbound

Print this item

  [Oracle Blog] Java in 2020
Posted by: xSicKxBot - 12-17-2022, 03:17 PM - Forum: Java Language, JVM, and the JRE - No Replies

Java in 2020

(Authored by Manish Gupta, VP Global Marketing - Java and GraalVM) As we celebrate its 25th birthday in 2020, Java continues to be the world’s most popular programming language among developers. According to IDC’s latest report “Java Turns 25”, over nine million developers representing 69% of full-t...


https://blogs.oracle.com/java/post/java-in-2020

Print this item

  [Tut] How to Create a DataFrame From Lists?
Posted by: xSicKxBot - 12-17-2022, 03:17 PM - Forum: Python - No Replies

How to Create a DataFrame From Lists?

5/5 – (1 vote)

Pandas is a great library for data analysis in Python. With Pandas, you can create visualizations, filter rows or columns, add new columns, and save the data in a wide range of formats. The workhorse of Pandas is the DataFrame.

? Recommended: 10 Minutes to Pandas (in 5 Minutes)

So the first step working with Pandas is often to get our data into a DataFrame. If we have data stored in lists, how can we create this all-powerful DataFrame?

There are 4 basic strategies:

  1. Create a dictionary with column names as keys and your lists as values. Pass this dictionary as an argument when creating the DataFrame.
  2. Pass your lists into the zip() function. As with strategy 1, your lists will become columns in the DataFrame.
  3. Put your lists into a list instead of a dictionary. In this case, your lists become rows instead of columns.
  4. Create an empty DataFrame and add columns one by one.

Method 1: Create a DataFrame using a Dictionary



The first step is to import pandas. If you haven’t already, install pandas first.

import pandas as pd

Let’s say you have employee data stored as lists.

# if your data is stored like this
employee = ['Betty', 'Veronica', 'Archie', 'Jughead']
salary = [110_000, 20_000, 80_000, 70_000]
bonus = [1000, 500, 2500, 400]
tax_rate = [.1, .25, .17, .4]
absences = [0, 1, 0, 52]

Build a dictionary using column names as keys and your lists as values.

# you can easily create a dictionary that will define your dataframe
emp_data = { 'name': employee, 'salary': salary, 'bonus': bonus, 'tax_rate': tax_rate, 'absences': absences
}

Your lists will become columns in the resulting DataFrame.


Create a DataFrame using the zip function



Pass each list as a separate argument to the zip() function. You can specify the column names using the columns parameter or by setting the columns property on a separate line.

emp_df = pd.DataFrame(zip(employee, salary, bonus, tax_rate, absences))
emp_df.columns = ['name', 'salary', 'bonus', 'tax_rate', 'absences']

The zip() function creates an iterator. For the first iteration, it grabs every value at index 0 from each list. This becomes the first row in the DataFrame. Next, it grabs every value at index 1 and this becomes the second row. This continues until it exhausts the shortest list.

We can loop thru the iterator to see how this works.

i = 0
for value in zip(employee, salary, bonus, tax_rate, absences): print(f'zipped value at index {i}: {value}') i += 1

Each of these values becomes a row in the DataFrame:

zipped value at index 0: ('Betty', 110000, 1000, 0.1, 0)
zipped value at index 1: ('Veronica', 20000, 500, 0.25, 1)
zipped value at index 2: ('Archie', 80000, 2500, 0.17, 0)
zipped value at index 3: ('Jughead', 70000, 400, 0.4, 52)

Create a DataFrame using a list of lists


What if you have a separate list for each employee? In this case, we can just create a list of lists. Each of the inner lists becomes a row in the DataFrame.

# lists for employees instead of features
betty = ['Betty', 110000, 1000, 0.1, 0]
veronica = ['Veronica', 20000, 500, 0.25, 1]
archie = ['Archie', 80000, 2500, 0.17, 0]
jughead = ['Jughead', 70000, 400, 0.4, 52] emp_df = pd.DataFrame([betty, veronica, archie, jughead])
emp_df.columns = ['name', 'salary', 'bonus', 'tax_rate', 'absences']
emp_df

Create a DataFrame using a list of dictionaries



If the employee data is stored in dictionaries instead of lists, we use a list of dictionaries.

betty = {'name': 'Betty', 'salary': 110000, 'bonus': 1000, 'tax_rate': 0.1, 'absences': 0} veronica = {'name': 'Veronica', 'salary': 20000, 'bonus': 500, 'tax_rate': 0.25, 'absences': 1} archie = {'name': 'Archie', 'salary': 80000, 'bonus': 2500, 'tax_rate': 0.17, 'absences': 0} jughead = {'name': 'Jughead', 'salary': 70000, 'bonus': 400, 'tax_rate': 0.4, 'absences': 52} pd.DataFrame([betty, veronica, archie, jughead])

The columns are determined by the keys in the dictionaries. What if the dictionaries don’t all have the same keys?

betty = {'name': 'Betty', 'salary': 110000, 'bonus': 1000, 'tax_rate': 0.1, 'absences': 0, 'hire_date': '2001-01-01'} veronica = {'name': 'Veronica', 'salary': 20000, 'bonus': 500, 'tax_rate': 0.25, 'absences': 1} archie = {'name': 'Archie', 'salary': 80000, 'bonus': 2500, 'tax_rate': 0.17, 'absences': 0, 'title': 'Vice Chief Leader'} jughead = {'name': 'Jughead', 'salary': 70000, 'bonus': 400, 'tax_rate': 0.4, 'absences': 52, 'rank': 'yes'} pd.DataFrame([betty, veronica, archie, jughead])

All of the keys will be used. Anytime pandas encounters a dictionary with a missing key, the missing value will be replaced with NaN which stands for ‘not a number’.

Create an empty DataFrame and add columns one by one


This method might be preferable if you needed to create a lot of new calculated columns. Here we create a new column for after-tax income.

emp_df = pd.DataFrame()
emp_df['name'] = employee
emp_df['salary'] = salary
emp_df['bonus'] = bonus
emp_df['tax_rate'] = tax_rate
emp_df['absences'] = absences income = emp_df['salary'] + emp_df['bonus']
emp_df['after_tax'] = income * (1 - emp_df['tax_rate'])

How to add a list to an existing DataFrame


Here is a neat trick. If you want to edit a row in a DataFrame you can use the handy loc method. Loc allows you to access rows and columns by their index value.

To access a row:

emp_df.loc[3]

Output is the row with index value 3 as a Series:

name Jughead
salary 70000
bonus 400
tax_rate 0.4
absences 52
Name: 3, dtype: object

To access a column just pass in the column name as the index. Note that we have to specify the row and column indexes. The format is [rows, columns]. If you want all rows you can use “:” as we do here. The : also works if you want all columns.

emp_df.loc[:, 'salary']

Output is also a series

0 110000
1 20000
2 80000
3 70000
4 200000
Name: salary, dtype: int64

So how do we use loc to add a new row? If we use a row index that doesn’t exist in the DataFrame, it will create a new row for us.

new_emp = ['Fonzie', 200000, 30000, .05, 112]
emp_df.loc[4] = new_emp
emp_df

You can also update existing data with loc. Let’s drop Fonzie’s salary. It looks a bit excessive.

emp_df.loc[4, 'salary'] = 105000
emp_df

That’s more like it.

Conclusion


There are many different ways of creating a DataFrame. We looked at several methods using data stored in lists. Each will get the job done.

The most convenient method will depend on what your lists represent.

If each of your lists would best be represented as a column, then a dictionary of lists might be the easiest way to go.

If each of your lists would best be represented as a row, then a list of lists would be a good choice.

To add data in a list as a new row in an existing DataFrame, the loc method comes in handy. Loc is also useful for updating existing data.



https://www.sickgaming.net/blog/2022/12/...rom-lists/

Print this item

 
Latest Threads
RebatesMe Fashion Deals F...
Last Post: albert42
8 minutes ago
RebatesMe Coupon Code $5 ...
Last Post: albert42
14 minutes ago
RebatesMe Sign-Up Bonus C...
Last Post: albert42
22 minutes ago
RebatesMe Electronics Dea...
Last Post: albert42
29 minutes ago
Black Ops (BO1, T5) DLC's...
Last Post: gottaluvthatkill
33 minutes ago
Black Ops (BO1, T5) DLC's...
Last Post: gottaluvthatkill
37 minutes ago
RebatesMe Food Deals 8% C...
Last Post: albert42
39 minutes ago
New RebatesMe Code [OO8EI...
Last Post: albert42
48 minutes ago
Forza Horizon 5 Game Save...
Last Post: Vecanoidal
52 minutes ago
RebatesMe Invite Code [OO...
Last Post: albert42
55 minutes ago

Forum software by © MyBB Theme © iAndrew 2016