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: 21,996
» Forum posts: 22,963

Full Statistics

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

Latest Threads
[Steam Release] Cowbots a...
Forum: New Game Releases
Last Post: xSicKxBot

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

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

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

» Replies: 0
» Views: 17
[Steam Release] Kodon
Forum: New Game Releases
Last Post: xSicKxBot

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

» Replies: 0
» Views: 18
[PS.Blog] (For Southeast ...
Forum: Sony Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 16
[Steam Release] RAILGRADE...
Forum: New Game Releases
Last Post: xSicKxBot

» Replies: 0
» Views: 23
Fortnite Winterfest 2024 ...
Forum: PC Discussion
Last Post: xSicKxBot

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

» Replies: 0
» Views: 22

 
  PC - Call of Duty: Modern Warfare II
Posted by: xSicKxBot - 11-18-2022, 10:38 AM - Forum: New Game Releases - No Replies

Call of Duty: Modern Warfare II



A global squad of iconic veterans and new legends of yet untold clandestine missions, these Operators are set to deliver a new era of Call of Duty when Modern Warfare II releases on October 28, 2022.

Initial asset intel brings revelations about key members of Task Force 141, including Team leader Captain John Price, Sergeant Kyle "Gaz" Garrick, Sergeant "Soap" MacTavish, lone-wolf Simon "Ghost" Riley, and Colonel Alejandro Vargas of the Mexican Special Forces.

Publisher: Activision

Release Date: Oct 28, 2022




https://www.metacritic.com/game/pc/call-...warfare-ii

Print this item

  [Tut] Solidity Ether Units, Time Units, and Global Variables
Posted by: xSicKxBot - 11-17-2022, 02:30 PM - Forum: Python - No Replies

Solidity Ether Units, Time Units, and Global Variables

5/5 – (1 vote)
YouTube Video

With this article, we’re opening a new area of our study, that of units and globally available variables in Solidity.

To begin with, we’ll learn about ether units and time units. After that, we’ll start with a block of subsections on special variables and functions, stretching through this and the next two articles.


It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official Solidity documentation.

Ether Units



When mentioning Ether units of currency, we can express them with a literal number and a suffix of wei, gwei or ether.

These suffixes specify a sub-denomination of Ether. We assume amounts written without a suffix as Wei.


The purpose and effect of using sub-denomination is a multiplication of the denomination by a power (exponent) of ten.

assert(1 wei == 1);
assert(1 gwei == 1e9);
assert(1 ether == 1e18);

? Note: There can be found denominations, such as finney and szabo, but they were deprecated in Solidity v0.7.0.

Time Units



Solidity has a nice and natural way of expressing time units with suffixes, such as seconds, minutes, hours, days, and weeks.

Seconds are the base unit, and units are considered to correspond to:

  • 1 == 1 seconds
  • 1 minutes == 60 seconds
  • 1 hours == 60 minutes
  • 1 days == 24 hours
  • 1 weeks == 7 days

When working with calendar calculations using these units, we should take extra care, because only some years have 365 days, and because of leap seconds, not even every day has 24 hours.

Since leap seconds are unpredictable, an exact calendar always has to be updated by an external source (oracle), which motivated Solidity authors to remove the suffix years in Solidity v0.5.0.

We should remember that these suffixes cannot be applied to variables, meaning if we want to interpret a function parameter expressed in days, we can easily do so like in the example below:

function f(uint start, uint daysAfter) public { if (block.timestamp >= start + daysAfter * 1 days) { // ... }
}

Special Variables and Functions


The global namespace contains special variables and functions primarily used to provide us with information about the blockchain. They are also available utility functions for general use.


Block and Transaction Properties


The following is a list of block and transaction properties, as shown  in the official Solidity documentation. Parentheses next to each block/transaction property define the member type:

  • blockhash(uint blockNumber) returns (bytes32): hash of the given block when blocknumber is one of the 256 most recent blocks; otherwise returns zero
  • block.basefee (uint): current block’s base fee (as defined in Ethereum Improvement Proposals EIP-3198 and EIP-1559)
  • block.chainid (uint): current chain id
  • block.coinbase (address payable): current block miner’s address
  • block.difficulty (uint): current block difficulty
  • block.gaslimit (uint): current block gas limit
  • block.number (uint): current block number
  • block.timestamp (uint): current block timestamp as seconds since Unix epoch
  • gasleft() returns (uint256): remaining gas
  • msg.data (bytes calldata): complete calldata
  • msg.sender (address): the sender of the message (current call)
  • msg.sig (bytes4): first four bytes of the calldata (i.e. function identifier)
  • msg.value (uint): number of Wei sent with the message
  • tx.gasprice (uint): the gas price of the transaction
  • tx.origin (address): the sender of the transaction (full call chain)

Note: We should expect the values of all members of msg, including msg.sender and msg.value will change with every external function call. This expectation also applies to library functions.

? Info: Off-chain computation is simply a computation that takes place outside a blockchain. Oracle networks can provide a trust-minimized form of off-chain computation to extend the capabilities of blockchains – this is known as oracle computation. (Chainlink)

Contracts can be evaluated both off-chain and on-chain, i.e. in the context of a transaction included in a block.

If a contract is evaluated off-chain, we should assume that block.* and tx.* members don’t refer to a specific block or transaction. Instead, the values we’d find in these members are provided by the EVM implementation executing the contract, and therefore, they can be completely arbitrary.

? Note: It is suggested to avoid block.timestamp or blockhash member values as sources of randomness. The reason for this suggestion lies in the fact that, in some instances, miners can manipulate both the timestamp and the block hash. The timestamp of the current block must be strictly larger than the timestamp of the last block, and the only thing we can know for sure is that it will be between the timestamps of two neighboring blocks in the canonical chain; how far it will be from any particular block timestamp is not known.

? Info: “The word canonical is used to indicate a particular choice from a number of possible conventions. This convention allows a mathematical object or class of objects to be uniquely identified or standardized.” (Wolfram.com)

Only the recent 256 blocks’ hashes are available, due to scalability reasons. A hash of any older block will be zero.

In Solidity versions prior to 0.5, the current blockhash(...) function was previously known and available as block.blockhash(...); the current gasleft(...) function was previously known and available as msg.gas(...).

In Solidity v0.7.0 the now alias (for block.timestamp) was removed.

ABI Encoding and Decoding Functions



The following list contains ABI-appropriate functions for low-level interactions with EVM, as laid out in the official Solidity documentation:

  • abi.decode(bytes memory encodedData, (...)) returns (...): ABI-decodes the given data, while the types are given in parentheses as second argument. Example: (uint a, uint[2] memory b, bytes memory c) = abi.decode(data, (uint, uint[2], bytes))
  • abi.encode(...) returns (bytes memory): ABI-encodes the given arguments
  • abi.encodePacked(...) returns (bytes memory): Performs packed encoding of the given arguments. Note that packed encoding can be ambiguous!
  • abi.encodeWithSelector(bytes4 selector, ...) returns (bytes memory): ABI-encodes the given arguments starting from the second and prepends the given four-byte selector
  • abi.encodeWithSignature(string memory signature, ...) returns (bytes memory): Equivalent to abi.encodeWithSelector(bytes4(keccak256(bytes(signature))), ...)
  • abi.encodeCall(function functionPointer, (...)) returns (bytes memory): ABI-encodes a call to functionPointer with the arguments found in the tuple. Performs a full type-check, ensuring the types match the function signature. Equivalent to abi.encodeWithSelector(functionPointer.selector, (...))

? Note: “These encoding functions can be used to craft data for external function calls without actually calling an external function. Furthermore, keccak256(abi.encodePacked(a, b)) is a way to compute the hash of structured data (although be aware that it is possible to craft a “hash collision” using different function parameter types).” (docs)

Conclusion



In this article, we learned about ether and time units, followed by special variables and functions.

First, we introduced ether units and discussed the use of the main unit and its sub-denominations.

Second, we introduced time units and discussed the possibilities of expressing time in different time units.

Third, we took a closer look at the block and transaction properties, but also listed many of them with descriptions and notes on specific behaviors for a more thorough understanding.

Fourth, we also touched on the topic of ABI encoding and decoding functions, described them, and gave a usage hint in a form of a note.

What’s Next?


This tutorial is part of our extended Solidity documentation with videos and more accessible examples and explanations. You can navigate the series here (all links open in a new tab):



https://www.sickgaming.net/blog/2022/11/...variables/

Print this item

  News - OG Warzone Goes Offline Today As Warzone 2.0 Launches
Posted by: xSicKxBot - 11-17-2022, 02:30 PM - Forum: Lounge - No Replies

OG Warzone Goes Offline Today As Warzone 2.0 Launches

[UPDATE] The original Call of Duty: Warzone is now officially offline. GameSpot attempted to play the original Warzone on Xbox today and we were not able to. The game instead directs players to Warzone 2.0, which launched today, November 16.

Goodbye, Warzone
Goodbye, Warzone

Activision is marking the end of Warzone, too, with a Twitter post asking fans to press F to pay respects, leaning into the popular meme. Warzone will be offline for 12 days, returning November 28, if all goes to plan. Activision will continue to support the game, but the extent to which it will do so is unknown.

The original story is below.

Continue Reading at GameSpot

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

Print this item

  (Free Game Key) Evil Dead: The Game & Dark Deity - Free Epic Games
Posted by: xSicKxBot - 11-17-2022, 02:30 PM - Forum: Deals or Specials - No Replies

Evil Dead: The Game & Dark Deity - Free Epic Games

❤️ Evil Dead: The Game
Store Page[store.epicgames.com]

❤️ Dark Deity
Store Page[store.epicgames.com]

The games are free to keep if claimed by Thursday, 24th November 2022 16:00 UTC

Next weeks freebies:
Star Wars Squadrons

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

Print this item

  PC - Resident Evil Village: Winters' Expansion
Posted by: xSicKxBot - 11-17-2022, 02:29 PM - Forum: New Game Releases - No Replies

Resident Evil Village: Winters' Expansion



New Content in the Winters' Expansion:

- Third Person Mode - Allows you to enjoy the main game from a third-person perspective.
- The Mercenaries Additional Orders - Adds new playable characters and stages.
- Shadows of Rose - Introduces a new story with Ethan's daughter Rose as the protagonist.

16 years have passed since that incident... Ethan's beloved daughter, Rosemary Winters, is living a healthy life. But struggling to come to terms with her innate special powers, she decides to dive into the world of the Megamycete's consciousness, or the "realm of consciousness," to seal them.

What she discovers is an extraordinary world far from the reality of the past. A collection of memories of "that village" absorbed by the Megamycete.

Publisher: Capcom

Release Date: Oct 28, 2022




https://www.metacritic.com/game/pc/resid...-expansion

Print this item

  [Oracle Blog] Go Native with Spring Boot 3 and GraalVM
Posted by: xSicKxBot - 11-16-2022, 11:10 AM - Forum: Java Language, JVM, and the JRE - No Replies

Go Native with Spring Boot 3 and GraalVM

A quick "how to" on using the native image support in Spring Boot 3.0

https://blogs.oracle.com/java/post/go-na...nd-graalvm

Print this item

  [Tut] Getting To Know Your Basic UCTRONICS Raspberry Pi Pico Kit
Posted by: xSicKxBot - 11-16-2022, 11:10 AM - Forum: Python - No Replies

Getting To Know Your Basic UCTRONICS Raspberry Pi Pico Kit

5/5 – (1 vote)

Now that we’ve covered Thonny and MicroPython, it’s time to get to know the components in your basic Raspberry Pi Pico kit.

? Note: There is more than one kit out there, but it is this author’s opinion that the best value for beginners is the one from UCTRONICS. Most of them have similar components, but this one just happens to be my go-to and is the subject of this installment.

*If you have not yet read our previous installments on learning MicroPython for the Raspberry Pi Pico or Thonny, be sure you review those before moving beyond this short tutorial.

Alright, let’s jump in! Here’s what the kit looks like:


First things first, though. We’re going to start with the Pico itself. The main thing you’ll need to know about it (at least for the purposes of doing experiments) is its pins.

Your Pico and Its Pins


Your Pico talks to hardware through a series of pins along both its edges. Most of these pins work as a general-purpose input/output (GPIO) pin, meaning they can be programmed to act as either an input or an output and have no fixed purpose of their own.

  • Some pins have extra features and alternative modes for communicating with more complicated hardware;
  • Others have a fixed purpose, providing connections for things like power.

Raspberry Pi Pico’s 40 pins are labeled on the underside of the board, with three also labeled with their numbers on the top of the board: Pin 1, Pin 2, and Pin 39.

These top labels help you remember how the numbering works: Pin 1 is at the top left as you look at the board from above with the micro USB port to the upper side, Pin 20 is the bottom left, Pin 21 the bottom right, and Pin 39 one below the top right with the unlabeled Pin 40 above it.


While you will generally use actual pin numbers when writing your code, we may reference some of them by their functions, as well.

As you can see, there are several different kinds of pins with different functions. Here’s a quick reference guide to help you remember:


You’ll learn more about these functions in later tutorials as we get into projects. For now, all you need to focus on is the basics. This is not meant to be an exhaustive electronics course. ?

Other Electronic Components


Obviously, your Pico isn’t the only thing you’re going to need if you’re going to be conducting any experiments.

The other things are the components that your Pico’s pins will be controlling. There are tons of components out there, but the cool thing about this kit is that these are useful regardless of how complicated your projects ultimately get – and if you have fun with these, I guarantee you’ll start coming up with your own.

Breadboard


Anyway, let’s start with the second most important component (well, besides the micro USB cord that connects the Pico to your computer) – your breadboard.


This little beauty makes life a WHOLE lot easier. This unit eliminates the need for a circuit board and soldering. Instead, you can just shove – ok, maybe not shove, but insert – wires and pins into the right spots and remove them as needed to do new projects. Hard to beat that!

Jumper Wires


Next are your jumper wires, which connect components to circuits on your breadboard and take the place of those little “wire trails” you see on circuit boards.

That way, they aren’t permanent and can be moved as you see fit. They can also be used to lengthen wires or pins as needed.

To accomplish this, they come in 3 types – male-to-male (M2M), male-to-female (M2F), and of course F2F (can you guess?).


Momentary Switch


Next up, we have a push-button switch, or momentary switch. This doodad is exactly what it looks like – a button.

However, in this case, it’s not the same as a latching switch, which stays depressed once you click it. This one only has to be held down to make it keep working.


Now this one’s going to shock you. It’s called… a light-emitting diode, or LED! I know, I know, you’ve never heard of it, right? ?


I don’t think I have to say much of anything about these, but I will make two points.

  • First, not all LEDs are going to work with your Pico. 5V and 12V aren’t good, so if you decide to buy more, make sure you keep that in mind.
  • Second, the two legs are different lengths. The long one is positive, and the short is negative.

When we’re running a current through stuff, we can sometimes run the risk of blowing them out, especially the LEDs. So how do we prevent that from happening?

Resistor


With resistors, of course! Now, there are a lot of resistors out there with different stripes on them to tell you the level of resistance they provide in a unit called ohms(?). I’m not going to get into that kind of detail here because it isn’t necessary for Pico jobs.

Suffice it to say that if you run out of resistors and want more, you’ll be using little 330? guys.


Just one little note – yours might not be the same color, but the stripes will be. The ones I got in my kit are blue, but that doesn’t matter; 330? is 330?.

Piezoelectric Buzzer


Everyone’s favorite component to play with – well, as long as you have people in your place to annoy – is the piezoelectric buzzer. Oh, boy, this one’s fun! It does exactly what its name indicates, and it does it by vibrating two metal plates together when a current is run through it. Heh, heh.


I’m an avid guitar player, and I LOVE the electric guitar the most. I’m the heaviest of metal heads! Ok, maybe not that heavy. I only clock in at 5’7” and 140lb. Sorry – if you’re not an American reader, that ain’t big. Martial arts has done me a lot of good in life. ?

Aaaaaaaanyway, there are at least two knobs on an electric guitar – one for volume, and one for tone.

Potentiometer


These both use potentiometers that can be used either as a variable resistor (with two legs connected) or a voltage divider (with all three wired up). In other words, one hookup controls ohms and the other controls volts. I’ll let you guess which version controls which function on the guitar.


Motion Detector


Ever tried to break into somebody’s house, but they had one of those pesky motion detectors that lit up the whole property and nearly got you busted? No? I guess that’s just… a friend… ?

Well, you get one of those pesky… I mean… cool motion detectors, too. It’s actually called a passive infrared sensor (PIR), and it makes things happen when you wave your hand in front of it. Better than a button? You be the judge.


Screen and Display


Last but not least (I love overused, trite cliches, don’t you?), we have a screen. It’s actually called an inter-integrated circuit or I2C display. It can show all kinds of nifty stuff from text to pictures. There are some fun things to do with this baby!


Obviously, there are other components you can get like motors, current sensors, reverse-LEDs, and a whole host of things. Some of them require special drivers and such, though, so they wouldn’t be considered basic. For the purposes of this series, we will be focusing on more basic components and projects before graduating to higher-level (and more expensive) experiments.

Keep Learning! ?


Next time, we’ll get into our first project. It’s pretty easy, but it’s fun and totally worth it. I can’t wait to get started, so I’ll talk to you soon. Until then, try some more of the MicroPython I taught you before. Happy coding!



https://www.sickgaming.net/blog/2022/11/...-pico-kit/

Print this item

  News - Get A Free $30 Gift Card With Costco Membership Ahead Of Black Friday
Posted by: xSicKxBot - 11-16-2022, 11:10 AM - Forum: Lounge - No Replies

Get A Free $30 Gift Card With Costco Membership Ahead Of Black Friday

If you’re looking for some of the best Black Friday deals of 2022, you’ll need to keep an eye on Costco. The bulk retailer offers huge discounts on an assortment of popular tech--but only members are eligible for the best savings. Right now, however, you can pick up an annual Gold Star membership and a $30 Digital Costco Shop Card for just $60, making this a great time to join. Costco's early Black Friday sale is live now, so you can start shopping for deals immediately.

An annual Gold Star membership typically costs $60. But with a free $30 digital gift card thrown in with this bundle, you can now join the program for one of the lowest prices we’ve seen in 2022. Costco memberships are always a great way to save cash (thanks to generous discounts on bulk goods, gas stations, and various auxiliary perks), but with Black Friday around the corner, a Costco membership might be able to pay for itself by the time December rolls around.

While anyone can shop online at Costco, some of the best Black Friday deals will be restricted to members. Joining the Gold Star program will give you access to the entire Costco catalog--and with this bundle, you’ll also get $30 to spend on your first purchase. And believe it or not, the retailer often has some incredible price cuts on gaming and tech gadgets, including several laptops and MacBooks that are currently discounted. Expect to see things become even more exciting as we inch closer to Black Friday.

Continue Reading at GameSpot

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

Print this item

  PC - Sackboy: A Big Adventure
Posted by: xSicKxBot - 11-16-2022, 11:10 AM - Forum: New Game Releases - No Replies

Sackboy: A Big Adventure



Iconic PlayStation hero Sackboy bursts back into breathtaking action with a huge, fun and frantic 3D multiplayer platforming adventure and a whole new edgy sackitude!

The dastardly Vex (a near-mythical being born of chaos and fear, no less) kidnaps Sackboy's friends and forces them to build his Topsy Turver.

Set off alone or with your bravest friends on a whirlwind of capers across the snowiest mountains, the leafiest jungles, the wettest underwater realms and the, uh, spaciest of space colonies.

Take down Vex. Save the sack-folk. Save the day. It's time to fulfil your destiny, Sackboy. From woolly wonderkid and hessian hero rise our Knitted Knight.

Publisher: PlayStation PC

Release Date: Oct 27, 2022




https://www.metacritic.com/game/pc/sackb...-adventure

Print this item

  [Oracle Blog] Announcing GraalVM Enterprise 22.3
Posted by: xSicKxBot - 11-15-2022, 12:49 AM - Forum: Java Language, JVM, and the JRE - No Replies

Announcing GraalVM Enterprise 22.3

The GraalVM 22.3 release delivers several new features including much anticipated support for Java 19 along with preview support for Project Loom virtual threads in both JVM JIT and Native Image ahead-of-time compiled applications. The release also includes compiler performance improvements, new monitoring and debugging features in Native Image, Python enhancements, and a new name for GraalPython!

https://blogs.oracle.com/java/post/annou...rprise-223

Print this item