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,114
» Latest member: gfhfhfh
» Forum threads: 21,709
» Forum posts: 22,575

Full Statistics

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

 
  PC - Lone Ruin
Posted by: xSicKxBot - 01-13-2023, 11:35 AM - Forum: New Game Releases - No Replies

Lone Ruin



LONE RUIN is a spell-based roguelike twin-stick shooter with a focus on replayability. Play as an explorer who seeks a mysterious ancient power and venture in a ruined magical city, built atop a source of magic used by olden mages to power and transform themselves.
 
Dive deeper and deeper, battling your way through twisted creatures, utilising your very own magic abilities to ultimately reach the center of the Lone Ruin.

Publisher: Super Rare Games

Release Date: Jan 12, 2023




https://www.metacritic.com/game/pc/lone-ruin

Print this item

  Youth Player development should every now
Posted by: MMOexp2023 - 01-13-2023, 05:11 AM - Forum: Lounge - No Replies

Youth gamers might have been generated with unrealistically proportioned arms.Youth participant names and numbers did now no longer seem on their kits at some stage in fits. In participant profession, the Pro’s OVR and positions may be by accident modified after modifying them.When approaching as a sub in participant profession, the crew’s procedures, play fashion, and trouble degree should get reset.Youth Players born after 2005 had been displaying a 1980 delivery date while being edited.Youth Player development should every now and then turn out to be by accident caught.In a few instances, renewed contracts should observe to gamers with 1 12 months much less than what turned into agreed upon in negotiations.Editing a participant’s boots should every now and then bring about them sporting gloves.Post Title Update #four – Career Mode Thoughts - buy FIFA 23 Coins.

FIFA 23 Guide: Best 4231 Custom Tactics Post Patch - New Formation and Tactics

https://www.mmoexp.com/News/fifa-23-guid...ctics.html

Print this item

  [Oracle Blog] Reactive Java on the Blockchain with web3j
Posted by: xSicKxBot - 01-12-2023, 03:26 PM - Forum: Java Language, JVM, and the JRE - No Replies

Reactive Java on the Blockchain with web3j

In this article we’re going to have some fun with the Ethereum blockchain, RxJava and web3j. Background During the past year, the technology and financial press has been full of talk about blockchain and it’s disruptive potential. A blockchain is an decentralised, immutable data store. As it is immu...


https://blogs.oracle.com/java/post/react...with-web3j

Print this item

  [Tut] Image to PDF Converter and PDF Merger | Python
Posted by: xSicKxBot - 01-12-2023, 03:26 PM - Forum: Python - No Replies

Image to PDF Converter and PDF Merger | Python

Rate this post


Project Description


In my university days, I often came across scenarios where I needed to convert image files to PDF files and then merge all the PDF files together to submit my assignments. Now, you will find tons of online resources to convert images to PDFs and also merge PDFs. But the big question is – “Are they all safe?”

That is why I decided to take things into my hands and create a script that would not only convert my image files to PDFs but also merge those PDFs together. That is exactly what I will be demonstrating in this project.

So we will be performing a couple of tasks in this project –

  • Convert all the images to PDF files.
  • Merge all the converted PDF files into a single PDF file.

So, without further delay, let us dive into our project.

Step 1: Install and Import the Necessary Libraries


We will need to install a couple of libraries that will help us to complete our task. The first library is the PIL (Python Imaging Library) which is Python’s  de facto image processing package. To install it, open your terminal and type the following command:

pip install pillow

The next library that you need to install is known as PyPDF2. PyPDF2 is a free and open-source pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. It can also add custom data, viewing options, and passwords to PDF files. PyPDF2 can retrieve text and metadata from PDFs as well. To install it, open your terminal and type the following command:

pip install PyPDF2

Once you have installed the necessary libraries, go ahead and import them into your script. Note that you will also need to import the os module to open the required files from their respective paths.

Code:

import os
from PIL import Image
from PyPDF2 import PdfMerger

Step 2: Fetch the Path of the Source and Destination Directories


You need to fetch the path of the source folder where you have stored the images and also the path of the destination folder where you will save the PDF files.

Code:

img_dir = './image_files'
pdf_dir = './pdf_files'

In my case, I have created two different directories by the name ‘image_files‘ and ‘pdf_files‘ within my project folder and then stored them in two different variables which I will be using later on in my code.

Step 3: Converting Image to PDF


We are all set to create the image to PDF converter function that will convert an image into a PDF. The idea is to navigate the image folder with the help of the os.listdir method and grab all the image files within it. If an image file is located we open it up using the Image module of the PIL package.

You then have to specify the color profile of the PDF and you can mention that to be RGB. You can do this with the help of the convert function. Then you can directly save this converted RGB image to the destination folder in the PDF format using the save method. To save it as a PDF file you can pass the extension as .pdf as '{0}.pdf'.format(file.split('.')[-2]). That’s it. This should convert all the images in the images folder to individual PDF files.

Code:

def img_to_pdf_converter(): for file in os.listdir(img_dir): if file.split('.')[-1] in ('png', 'jpg', 'jpeg'): image = Image.open(os.path.join(img_dir, file)) coneverted_image = image.convert('RGB') coneverted_image.save(os.path.join(pdf_dir, '{0}.pdf'.format(file.split('.')[-2]))) print("PDF Created!")

Step 4: Merge the PDFs


Once you have all the PDF versions of the image files, you can then merge them using the PyPDF2 library. Go ahead and create an empty list that will store the names of all the PDFs that were created from the image files. Then create an instance of the PdfMerger class that resides with the PyPDF2 module.

Then navigate the PDF folder and fetch all the PDF files and merge them together using a for loop and within the for loop use the append method to merge them together. As simple as that!

Code:

def merger(): pdfs = [] merge = PdfMerger() for file in os.listdir(pdf_dir): pdfs.append(pdf_dir+"/"+file) for pdf in pdfs: merge.append(pdf) merge.write('merged_pdf.pdf') merge.close() print("PDFs Merged!")

Putting It All Together


We have successfully created both functions to convert images to PDFs and then merge them. All that remains to be done is to call these functions and your script should work like a charm. ?

Finally, when you put everything together, this is how the complete script looks like –

import os
img_dir = './image_files'
pdf_dir = './pdf_files' def img_to_pdf_converter(): from PIL import Image for file in os.listdir(img_dir): if file.split('.')[-1] in ('png', 'jpg', 'jpeg'): image = Image.open(os.path.join(img_dir, file)) coneverted_image = image.convert('RGB') coneverted_image.save(os.path.join(pdf_dir, '{0}.pdf'.format(file.split('.')[-2]))) print("PDF Created!") def merger(): pdfs = [] from PyPDF2 import PdfMerger merge = PdfMerger() for file in os.listdir(pdf_dir): pdfs.append(pdf_dir+"/"+file) for pdf in pdfs: merge.append(pdf) merge.write('merged_pdf.pdf') merge.close() print("PDFs Merged!") img_to_pdf_converter()
merger()

Conclusion


Woohoo!!! We have successfully completed our fun project, and now we do not need the aid of any third-party application to convert our images to PDFs or merge our PDFs. I hope this project added some value and helped you in your coding quest. Stay tuned and subscribe for more interesting projects and tutorials.




https://www.sickgaming.net/blog/2023/01/...er-python/

Print this item

  [Tut] Chart JS Bar Chart Example
Posted by: xSicKxBot - 01-12-2023, 03:26 PM - Forum: PHP Development - No Replies

Chart JS Bar Chart Example

by Vincy. Last modified on January 11th, 2023.

In this tutorial, we will see examples of using the Chartjs JavaScript library to create bar charts.

This quick example gives you the code to display a simple bar chart on the browser.

The below JavaScript code shows how to include and initiate the ChartJS library. It uses static data to set the bar chart labels and dataset in JavaScript.

Quick example – Simple bar chart example via ChartJS


<!DOCTYPE html>
<html>
<head>
<title>Chart JS Bar Chart Example</title>
<link rel='stylesheet' href='style.css' type='text/css' />
</head>
<body> <div class="phppot-container"> <h1>Chart JS Bar Chart Example</h1> <div> <canvas id="bar-chart"></canvas> </div> </div> <script src="https://cdn.jsdelivr.net/npm/chart.js@4.0.1/dist/chart.umd.min.js"></script> <script> // Bar chart new Chart(document.getElementById("bar-chart"), { type: 'bar', data: { labels: ["Elephant", "Horse", "Tiger", "Lion", "Jaguar"], datasets: [ { label: "Animals Count", backgroundColor: ["#51EAEA", "#FCDDB0", "#FF9D76", "#FB3569", "#82CD47"], data: [478, 267, 829, 1732, 1213] } ] }, options: { legend: { display: false }, title: { display: true, text: 'Chart JS Bar Chart Example' } } }); </script>
</body>
</html>

Output:

This example sets the chart parameters to the ChartJS data and the options array and displays the following bar chat to the browser.

This is a very easy client-side solution to display professional graphical representation in the form of a bar chart.

You can simply use this code in your project by tweaking the data points slightly.

Example 2: Horizontal bar chart


This library supports creating both vertical and horizontal bar charts. But, the default is the vertical bar chart.

In this example, it creates a horizontal bar chart using the ChartJS plugin.

For the vertical or horizontal bar charts, the direction depends on the indexAxis option.

This example sets indexAxis=’y’ to display the bars horizontally.

<!DOCTYPE html>
<html>
<head>
<title>Chart JS Horizontal Bar Chart Example</title>
<link rel='stylesheet' href='style.css' type='text/css' />
</head>
<body> <div class="phppot-container"> <h1>Chart JS Horizontal Bar Chart Example</h1> <div> <canvas id="horizontal-bar-chart"></canvas> </div> </div> <script src="https://cdn.jsdelivr.net/npm/chart.js@4.0.1/dist/chart.umd.min.js"></script> <script> new Chart(document.getElementById("horizontal-bar-chart"), { type: 'bar', data: { labels: ["Elephant", "Horse", "Tiger", "Lion", "Jaguar"], datasets: [{ label: "Animals count", backgroundColor: ["#51EAEA", "#FCDDB0", "#FF9D76", "#FB3569", "#82CD47" ], data: [478, 267, 829, 1732, 1213] }] }, options: { indexAxis: 'y', legend: { display: false }, title: { display: true, text: 'Chart JS Horizontal Bar Chart Example' } } }); </script>
</body>
</html>

Output:

This output screenshot plots the bar chart data index on the ‘y’ axis and has the readings on the ‘x-axis.

Previously, we used this JS library to create a pie chart using this ChartJS library. But, it is not supporting to display of 3D pie charts. See the linked article that uses Google charts for creating the 3D pie chart.

Example 3: Grouped bar chart


Grouped bar charts are useful for showing a comparative reading.

<!DOCTYPE html>
<html>
<head>
<title>Chart JS Grouped Bar Chart Example</title>
<link rel='stylesheet' href='style.css' type='text/css' />
</head>
<body> <div class="phppot-container"> <h1>Chart JS Grouped Bar Chart Example</h1> <div> <canvas id="bar-chart"></canvas> </div> </div> <script src="https://cdn.jsdelivr.net/npm/chart.js@4.0.1/dist/chart.umd.min.js"></script> <script> new Chart(document.getElementById("bar-chart"), { type: 'bar', data: { labels: ["900", "950", "999", "1050"], datasets: [{ label: "Lion", backgroundColor: "#FF9D76", data: [234, 345, 567, 568] }, { label: "Tiger", backgroundColor: "#51EAEA", data: [233, 566, 234, 766] }] }, options: { legend: { display: false }, title: { display: true, text: 'Chart JS Grouped Bar Chart Example' } } }); </script>
</body>
</html>

Output:

It displays the record of two animals’ counts at a particular point. This will help compare the readings of two or more indexes.

ChartJS type parameter


ChartJS is a dependable JS library to create and display graphs on a webpage.

In a previous tutorial, we have seen how to create a line chart using this ChartJS library.

Also, it supports generating more types of charts. The type parameter is used to define the type of the chart.

The dataset and the options definition may vary based on the type of chart.
Download

↑ Back to Top



https://www.sickgaming.net/blog/2023/01/...t-example/

Print this item

  (Indie Deal) Hentai Avenger Bundle & Twin Sails Interactive Sale
Posted by: xSicKxBot - 01-12-2023, 03:25 PM - Forum: Deals or Specials - No Replies

Hentai Avenger Bundle & Twin Sails Interactive Sale

Hentai Avenger Bundle | 8 Adult Games | 93% OFF
[www.indiegala.com]
?Vengeance may come in many shapes and forms, but in eroge form, not as often. Start this new year with a sensual & titillating erotic anime / hentai DRM-FREE game selection.

Twin Sails Interactive Sale, up to 80% OFF
[www.indiegala.com]

New Vorax DevLog & Video[/h1]


https://www.youtube.com/watch?v=_O1DrfIxY1I


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

Print this item

  News - Today's Wordle Answer (#572) - January 12, 2022
Posted by: xSicKxBot - 01-12-2023, 03:25 PM - Forum: Lounge - No Replies

Today's Wordle Answer (#572) - January 12, 2022

Who doesn't enjoy a little Thursday Wordle action every now and again? While the answers in 2023 have been generally non-trivial, today's answer on January 12 bucks that trend. While the word itself is somewhat common, it features an uncommon spelling and some interesting letter placements. We'd be surprised if any player was able to get this word in their first three guesses, but it's not completely impossible to get without any help.

If you haven't started the Wordle just yet, then you can check out our list of recommended starting words. However, if you're already past the starting point, then you might be looking for some hints if you've hit a wall. Luckily, we provide just that further down in this guide. We will also spell out the full answer for players looking to simply get out of today unscathed.

Today's Wordle Answer - January 12, 2022

We'll begin with a few hints that directly relate to today's Wordle answer, but don't give it away immediately.

Continue Reading at GameSpot

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

Print this item

  [Oracle Blog] Streamlining JDK 9
Posted by: xSicKxBot - 01-11-2023, 11:00 PM - Forum: Java Language, JVM, and the JRE - No Replies

Streamlining JDK 9

Java SE 9 is feature complete. As part of the modernization of the Java SE platform, Jigsaw project and many features will be added to this next release. Part of improving the platform also means removing features, that have become obsolete or would slow development and deployment down. Iris Clark a...


https://blogs.oracle.com/java/post/streamlining-jdk-9

Print this item

  [Tut] I Used This Python Script to Check a Website Every X Seconds for a Given Word
Posted by: xSicKxBot - 01-11-2023, 11:00 PM - Forum: Python - No Replies

I Used This Python Script to Check a Website Every X Seconds for a Given Word

5/5 – (1 vote)

I host multiple websites such as

Many of them use caching services to speed up the loading time for visitors worldwide. Consequently, when I do change a website, the change does often not appear immediately on the site (because the stale cached site is served up).

The Project



To ensure that my website is up-to-date, I wrote a simple Python script that helps me regularly check my website every few seconds to see if a certain word appears there.

Because I thought many people will probably have the same problem, I’ll share this code here. So, let’s get started! ?

? Project Challenge: How to write a Python script that reads content from a website every x seconds and checks if a specific word appears there?

The Code



I used the following code to accomplish this easily and quickly. You can copy&paste it, just make sure to adjust the highlighted url, word, and x variables to your need:

import requests
import time url = 'https://en.wikipedia.org/wiki/Graph_partition'
word = 'finxter'
x = 60 # seconds between two requests # Repeat forever
while True: # Get the content from the website r = requests.get(url) # Check if word is on website if word in r.text: print("The word appears on the website") else: print("The word does not appear on the website") # Do nothing for some time (e.g., 60 seconds) to avoid spam requests time.sleep(x)

In this case, I check the Wikipedia page on Graph Partitioning if the keyword 'finxter' appears there. If you need to check another word on another URL, just change the variables accordingly.

Code Explanation



This code snippet uses the Python requests library to read from a website every two seconds and check if a certain word appears there.

You use the requests library to issue an HTTP request to the specified website and save the response in the variable r.

? Recommended: Python Request Library – Understanding get()

Then you check if the word appears in the response text using r.text.

  • If it does, it prints the message "The word appears on the website" and
  • If it does not, it prints the message "The word does not appear on the website".

Finally, the code pauses for two (or x!) seconds before making another request. This process is repeated continuously to ensure that the website is checked regularly.

You can stop the code by hitting CTRL+C.

? Recommended: How to Stop a Python Script?



https://www.sickgaming.net/blog/2023/01/...iven-word/

Print this item

  (Indie Deal) FREE Byte Family, HITMAN & Nacon Deals
Posted by: xSicKxBot - 01-11-2023, 10:59 PM - Forum: Deals or Specials - No Replies

FREE Byte Family, HITMAN & Nacon Deals

Byte Family Freebie
[freebies.indiegala.com]
https://youtu.be/4CWwdfe02GU
Hitman Franchise Sale, up to 87% OFF [www.indiegala.com]
[www.indiegala.com]
Final chance to grab HITMAN & HITMAN 2.
Nacon Sale, up to 90% OFF
[www.indiegala.com]
Anime Flakes Bundle Happy Hour
[http//hhttps]


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

Print this item

 
Latest Threads
(Free Game Key) [GOG] Sil...
Last Post: xSicKxBot
9 minutes ago
News - $2.50 Steam Sale H...
Last Post: xSicKxBot
9 minutes ago
Forza Horizon 5 Game Save...
Last Post: poxah56770
10 hours ago
(Xbox One) Vantage - Mod ...
Last Post: levihaxk
Today, 03:59 AM
News - Christopher Nolan’...
Last Post: xSicKxBot
Today, 03:31 AM
News - GameStop Is Not Hu...
Last Post: xSicKxBot
Yesterday, 11:06 AM
News - Subnautica 2’s Leg...
Last Post: xSicKxBot
07-05-2026, 06:45 PM
Redacted T6 Nightly Offli...
Last Post: Ngixk0
07-05-2026, 03:21 PM
News - Sony To End PlaySt...
Last Post: xSicKxBot
07-05-2026, 02:23 AM
Black Ops (BO1, T5) DLC's...
Last Post: BrookesBot
07-04-2026, 06:29 PM

Forum software by © MyBB Theme © iAndrew 2016