Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,966
» Latest member: damahi5899
» Forum threads: 22,508
» Forum posts: 23,492

Full Statistics

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

Latest Threads
How to complete the Black...
Forum: PC Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 6
[MS Blog] Microsoft to ex...
Forum: Windows
Last Post: xSicKxBot

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

» Replies: 0
» Views: 13
[WoW Retail News] New Twi...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 30
How to get the Ice Staff ...
Forum: PC Discussion
Last Post: xSicKxBot

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

» Replies: 0
» Views: 36
How to unlock TR2 in Blac...
Forum: PC Discussion
Last Post: xSicKxBot

» Replies: 0
» Views: 36
[WoW Retail News] New Owl...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 38
[WoW Retail News] Four Ne...
Forum: World of Warcraft
Last Post: xSicKxBot

» Replies: 0
» Views: 47
Where to Download WoW 3.3...
Forum: World of Warcraft
Last Post: vaan984

» Replies: 3
» Views: 1,348

 
  News - Rumour: Wonderful 101 On Switch Teased (Again) By PlatinumGames
Posted by: xSicKxBot - 02-02-2020, 03:56 PM - Forum: Nintendo Discussion - No Replies

Rumour: Wonderful 101 On Switch Teased (Again) By PlatinumGames


Update – Sat 1st Feb, 2020 15:45 GMT: Following on from yesterday’s teaser, an anonymous source (via 4Chan), is claiming there will be an announcement for a Nintendo Switch, Xbox One and PlayStation 4 version of The Wonderful 101, and it will be crowdfunded via Kickstarter.

GameXplain has now added to this – stating how it was able to confirm “some details” via its own source. This includes the supposed confirmation of a Switch and PlayStation 4 release, along with a Kickstarter launch. It’s also done some digging around and discovered a Platinum Games Kickstarter page, but can’t actually confirm whether it’s real or fake at this point in time.

We’ll add to this by saying we’ve had a similar confirmation from our own source, who wishes to remain anonymous.


Original article – Fri 31st Jan, 2020 11:35 GMT: We all know that Nintendo fans love a bit of PlatinumGames, and if there’s one title that they’d love to see come to Switch, it’s The Wonderful 101.

The Wii U version was critically acclaimed but sold poorly, so it’s ripe for rediscovery on Nintendo’s latest console – and PlatinumGames has been pretty cute about the chances of that happening in the past.

Now, it would seem that the studio is laying down some pretty major hints about the game coming to Switch – check out the following tweet, and pay close attention to the time and date on Hideki Kamiya’s screen, as well as the console he has sat on his desk:


This isn’t the first time that the studio has teased Switch owners with some Wonderful 101-style goodness – perhaps it’s just a joke? Or, maybe there’s more to it? PlatinumGames has recently gained investment from Chinese media giant Tencent and has stated that it has some big news coming early this year – could this be it?



https://www.sickgaming.net/blog/2020/02/...inumgames/

Print this item

  News - Adam Sandler Extends Netflix Deal To Make Four More Movies
Posted by: xSicKxBot - 02-02-2020, 03:56 PM - Forum: Lounge - No Replies

Adam Sandler Extends Netflix Deal To Make Four More Movies

Actor-comedian Adam Sandler and his production company, Happy Madison Productions, will make four more Netflix films part of an extended deal with the streaming giant, the company announced on Friday.

According to Netflix, subscribers watched two billion hours of Sandler, who partnered with the streaming platform back in 2014. The production deal was extended in 2017 and, in that timeframe, he has made six movies for Netflix. These include The Ridiculous 6, The Do-Over, Sandy Wexler, The Week Of, Murder Mystery, and 100% Fresh. The last two were especially successful for both parties, with Murder Mystery topping Netflix's most-popular releases of 2019 and 100% Fresh scoring Sandler an Emmy nomination.

"Whether you know him as Sandman, the Water Boy, Billy Madison, Happy Gilmore, Nick Spitz, or simply Adam, one thing is clear: our members can't get enough of him," Netflix's chief content officer Ted Sarandos said. "They love his stories and his humor, as we saw with 'Murder Mystery.' So I could not be more excited to extend our partnership with Adam and the Happy Madison team and deliver more laughs around the world."

Netflix has not provided any details about these four upcoming Sandler films, including release dates. However, reports are circulating that Sandler will write, produce, and lend his voice to an animated feature for Netflix. Sandler's next Netflix project is the family comedy Hubie Halloween, which co-stars Julie Bowen, Kenan Thompson, Kevin James, Maya Rudolph, Rob Schneider, Steve Buscemi, and more. It's expected to arrive on Netflix later this year and features Sandler as a producer of the film and writer of the screenplay.

Adam Sandler's last big motion-picture film, the crime thriller Uncut Gems, has received near-universal acclaim and a slew of accolades, including awards for Best Actor and Best Original Screenplay from the National Board of Review. We awarded the film an 8/10 in our Uncut Gems review, saying, "Uncut Gems will get your heart pumping from 0 to 80 in seconds, and it will be hard to forget such an achievement." Despite Sandler's excellent performance in the film, he was not nominated for an Oscar, so prepare for a purposefully awful movie from the actor-comedian sometime in the near future.


https://www.gamespot.com/articles/adam-s...0-6473271/

Print this item

  AppleInsider - Apple’s end-to-end encryption threatened by new proposed bill
Posted by: xSicKxBot - 02-02-2020, 09:34 AM - Forum: Apple Mac & macOS - No Replies

Apple’s end-to-end encryption threatened by new proposed bill

 

Senator Lindsey Graham is pressing for new laws that would combat online child abuse, but do so by removing all end-to-end encryption and giving law enforcement open access to private data.

Back in 2015, Tim Cook told the

Back in 2015, Tim Cook told the “Wall Street Journal” that encryption would become an increasing concern for citizens

Republican Senator Lindsey Graham is behind a draft bipartisan bill called the ‘Eliminating Abusive and Rampant Neglect of Interactive Technologies Act of 2019” or EARN IT. Its stated aims are to “develop recommended best practices… regarding the prevention of online child exploitation.” However, the methods Graham proposes would effectively ban all end-to-end encryption.

“The absolute worst-case scenario could easily become reality,” think tank TechFreedom president Berin Szoka told Bloomberg. “DOJ could effectively ban end-to-end encryption.”

The act would introduce a National Commission on Online Child Exploitation Prevention “and for other purposes.” Senator Graham’s draft bill proposes a structure for the Commission, which would comprise 15 people including the US Attorney General.

The greater part of Senator Graham’s proposals outline creating and enforcing age limits for online material, plus a rating system to categorize images by severity.

At no point does the draft bill mention encryption, however its requirements cannot be complied with if end-to-end encryption is used. Companies with any public or private online discussion areas, such as Whatsapp and Facebook, would be required to divulge user details to law enforcement.

“[Best practices] shall include… coordinating with law enforcement agencies and other industry participants to preserve, remove from view, and report material relating to child exploitation or child sexual abuse,” says the draft bill.

“[Also] retention of evidence and attribution or user identification data relating to child exploitation or child sexual abuse, including such retention by subcontractors,” it continues.

Senator Graham’s proposals explicitly state that the result will be changes to the Communications Decency Act of 1934, which currently allows online services to shield themselves from lawsuits over such materials.

Neither Apple nor any online companies have publicly responded to the proposals yet. However, Apple has and continues to be a strong and vocal proponent of the necessity for end-to-end encryption and the dangers of removing it.

There is currently no date for when the draft bill will proceed further toward legislation.

However, it comes after FBI officials have reportedly been concerned over US Attorney General William Barr’s pressures to weaken or remove end-to-end encryption.

Most recently, Apple’s senior director of global privacy, Jane Horvath, spoke at CES in January about the company’s position on weakening encryption to help combat crime.

“Building back doors into encryption is not the way we are going to solve those issues,” she said.



https://www.sickgaming.net/blog/2020/02/...osed-bill/

Print this item

  News - Rumour: The Major Switch Title This Holiday Season Could Have “Tires” In It
Posted by: xSicKxBot - 02-02-2020, 09:34 AM - Forum: Nintendo Discussion - No Replies

Rumour: The Major Switch Title This Holiday Season Could Have “Tires” In It

Look at those tires
Look at those tires

A few weeks ago, the “prolific” leaker Sabi – who has a strong track record – said a new Paper Mario game and 2D Metroid title would be released this year. Just days ago, the same individual claimed The Legend of Zelda: Breath of the Wild sequel was taking longer than anticipated, and now they’re saying the major and “more likely” Nintendo release for this holiday season has “tires” in it.

Below are the most recent cryptic tweets by Sabi, based on source information:


When you put tires and Nintendo together, there’s really only one major game series that comes to mind – Mario Kart. It’s somewhat hard to believe, though, when considering the fact Mario Kart 8 Deluxe is one of the main evergreen titles on the hybrid system. This week it was also confirmed to be the best-selling Switch title (as of December 2019), having shifted 22.96 million units worldwide since it was released in 2017.

To be fair, Sabi’s tweet a few days ago said the game could be associated with a major franchise “you probably don’t expect” – so it could be almost anything, provided it has tires.

Following on from all of this, Sabi posted an image of the Ancient Mii Soldier Costume that was made available in Super Smash Bros. Ultimate this week, and then made mention of The Wonderful 101, which has been making headlines a lot lately.

Muffled words about Platinum and W101 in the distance

As previously mentioned, Sabi leaked a number of major stories prior to E3 last year, and even received a cease and desist from a lawyer representing Nintendo, to prevent any further damage.

What do you think about this latest rumour? As always, take it with a grain of salt and tell us what you think below.



https://www.sickgaming.net/blog/2020/02/...res-in-it/

Print this item

  News - You Can Only Have One Island Per Console In Animal Crossing: New Horizons
Posted by: xSicKxBot - 02-02-2020, 09:34 AM - Forum: Nintendo Discussion - No Replies

You Can Only Have One Island Per Console In Animal Crossing: New Horizons

Animal Crossing New Horizons

Article Updated – Sat 1st Feb, 2020 12:00 GMT: Nintendo’s been drip-feeding us information about Animal Crossing: New Horizons for some time now, and the latest information about this upcoming release comes from its Aussie web page, on the official Nintendo Australia website.

While we already know the game will support up to eight players and four residents simultaneously, a rather sizable chunk of writing at the bottom of this page touches on the finer details about the user limits online and per console. Within the paragraph is a special note (as highlighted below). As you can see, you’ll be limited to one island per console, irrespective of the number of user accounts or copies of the game you have.

*Up to 8 players with registered accounts on a Nintendo Switch console can live on one shared island, and up to four residents of one island can play simultaneously on one console. Please note: only one island can exist per Nintendo Switch console, irrespective of the number of user accounts registered to or copies of the game used on one console. One Nintendo Switch and one copy of the game is required for each unique island. Alternatively, up to eight people can play together on one island via local wireless or online play. Local wireless play requires one console and one copy of the software per player. Internet connection required during online play. To use online services, you must create a Nintendo Account and accept the related agreement. The Nintendo Account Privacy Policy applies. Some online services may not be available in all countries. Online play requires paid online membership.

Of course, as disappointing as this might be to hear, this isn’t exactly new. Past entries have also had limitations like this. For example, the GameCube release restricted four local players to a single town. In the Switch release, you won’t even be able to bypass this restriction with an SD card swap, either, as save data is stored internally (thanks, Games Radar).

How do you feel about this restriction? Share your thoughts in the comments below.



https://www.sickgaming.net/blog/2020/02/...-horizons/

Print this item

  News - Flash Sale Includes Pre-Order Discounts On RE3, Doom Eternal, And More (PC)
Posted by: xSicKxBot - 02-02-2020, 09:34 AM - Forum: Lounge - No Replies

Flash Sale Includes Pre-Order Discounts On RE3, Doom Eternal, And More (PC)

It's rare to find good deals on an upcoming PC game before it's even released, but digital games store Green Man Gaming is making that a reality for a limited time. The retailer just kicked off a 48-hour flash sale that includes discounts on some of 2020's biggest games.

Notably, the sale includes steep markdowns on Resident Evil 3 and Doom Eternal, two of the most anticipated games releasing this year. Resident Evil 3 is 25% off, available for $45, and Doom Eternal is 20% off, down to $48. Both games are releasing in the next few months--Doom Eternal will release on March 20 with Resident Evil 3 following soon after on April 3--so you won't have to wait long to play these titles.

The flash sale also includes the newly released Dragon Ball Z: Kakarot, which is $50.39 (16% off), and the critically acclaimed Monster Hunter World: Iceborne, which is marked down to $34 (15% off). You can also save on Call of Duty: Modern Warfare, which is $37.79 (37% off).

The limited-time flash deals overlap with a larger Lunar New Year sale at Green Man Gaming, which ends February 3. The sale includes discounts on Devil May Cry 5, Rainbow Six Siege, the upcoming Elder Scrolls Online: Greymoor, and more. You can check out more of our picks from the sale below. Before purchasing a game, take note of the launcher the code can be redeemed on. Many games are available through Steam, but some codes must be redeemed through another launcher, like Bethesda or Battle.net.

Less than 48 hours are left to take advantage of the flash deals, so don't wait too long to snag them. For the pre-order games, it's unlikely you'll find a better price before release.

Flash deals at Green Man Gaming

More from the Lunar New Year sale


https://www.gamespot.com/articles/flash-...0-6473264/

Print this item

  [Tut] Python Regex – How to Match the Start of Line (^) and End of Line ($)
Posted by: xSicKxBot - 02-02-2020, 06:38 AM - Forum: Python - No Replies

Python Regex – How to Match the Start of Line (^) and End of Line ($)

This article is all about the start of line ^ and end of line $ regular expressions in Python’s re library. These two regexes are fundamental to all regular expressions—even outside the Python world. So invest 5 minutes now and master them once and for all!

Python Re Start-of-String (^) Regex


You can use the caret operator ^ to match the beginning of the string. For example, this is useful if you want to ensure that a pattern appears at the beginning of a string. Here’s an example:

>>> import re
>>> re.findall('^PYTHON', 'PYTHON is fun.')
['PYTHON']

The findall(pattern, string) method finds all occurrences of the pattern in the string. The caret at the beginning of the pattern ‘^PYTHON’ ensures that you match the word Python only at the beginning of the string. In the previous example, this doesn’t make any difference. But in the next example, it does:

>>> re.findall('^PYTHON', 'PYTHON! PYTHON is fun')
['PYTHON']

Although there are two occurrences of the substring ‘PYTHON’, there’s only one matching substring—at the beginning of the string.

But what if you want to match not only at the beginning of the string but at the beginning of each line in a multi-line string? In other words:

Python Re Start-of-Line (^) Regex


The caret operator, per default, only applies to the start of a string. So if you’ve got a multi-line string—for example, when reading a text file—it will still only match once: at the beginning of the string.

However, you may want to match at the beginning of each line. For example, you may want to find all lines that start with ‘Python’ in a given string.

You can specify that the caret operator matches the beginning of each line via the re.MULTILINE flag. Here’s an example showing both usages—without and with setting the re.MULTILINE flag:

>>> import re
>>> text = '''
Python is great.
Python is the fastest growing
major programming language in
the world.
Pythonistas thrive.'''
>>> re.findall('^Python', text)
[]
>>> re.findall('^Python', text, re.MULTILINE)
['Python', 'Python', 'Python']
>>>

The first output is the empty list because the string ‘Python’ does not appear at the beginning of the string.

The second output is the list of three matching substrings because the string ‘Python’ appears three times at the beginning of a line.

Python re.sub()


The re.sub(pattern, repl, string, count=0, flags=0) method returns a new string where all occurrences of the pattern in the old string are replaced by repl. Read more in the Finxter blog tutorial.

You can use the caret operator to substitute wherever some pattern appears at the beginning of the string:

>>> import re
>>> re.sub('^Python', 'Code', 'Python is \nPython') 'Code is \nPython'

Only the beginning of the string matches the regex pattern so you’ve got only one substitution.

Again, you can use the re.MULTILINE flag to match the beginning of each line with the caret operator:

>>> re.sub('^Python', 'Code', 'Python is \nPython', flags=re.MULTILINE) 'Code is \nCode'

Now, you replace both appearances of the string ‘Python’.

Python re.match(), re.search(), re.findall(), and re.fullmatch()


Let’s quickly recap the most important regex methods in Python:

  • The re.findall(pattern, string, flags=0) method returns a list of string matches. Read more in our blog tutorial.
  • The re.search(pattern, string, flags=0) method returns a match object of the first match. Read more in our blog tutorial.
  • The re.match(pattern, string, flags=0) method returns a match object if the regex matches at the beginning of the string. Read more in our blog tutorial.
  • The re.fullmatch(pattern, string, flags=0) method returns a match object if the regex matches the whole string. Read more in our blog tutorial.

You can see that all four methods search for a pattern in a given string. You can use the caret operator ^ within each pattern to match the beginning of the string. Here’s one example per method:

>>> import re
>>> text = 'Python is Python'
>>> re.findall('^Python', text)
['Python']
>>> re.search('^Python', text)
<re.Match object; span=(0, 6), match='Python'>
>>> re.match('^Python', text)
<re.Match object; span=(0, 6), match='Python'>
>>> re.fullmatch('^Python', text)
>>>

So you can use the caret operator to match at the beginning of the string. However, you should note that it doesn’t make a lot of sense to use it for the match() and fullmatch() methods as they, by definition, start by trying to match the first character of the string.

You can also use the re.MULTILINE flag to match the beginning of each line (rather than only the beginning of the string):

>>> text = '''Python is
Python'''
>>> re.findall('^Python', text, flags=re.MULTILINE)
['Python', 'Python']
>>> re.search('^Python', text, flags=re.MULTILINE)
<re.Match object; span=(0, 6), match='Python'>
>>> re.match('^Python', text, flags=re.MULTILINE)
<re.Match object; span=(0, 6), match='Python'>
>>> re.fullmatch('^Python', text, flags=re.MULTILINE)
>>>

Again, it’s questionable whether this makes sense for the re.match() and re.fullmatch() methods as they only look for a match at the beginning of the string.

Python Re End of String ($) Regex


Similarly, you can use the dollar-sign operator $ to match the end of the string. Here’s an example:

>>> import re
>>> re.findall('fun$', 'PYTHON is fun')
['fun']

The findall() method finds all occurrences of the pattern in the string—although the trailing dollar-sign $ ensures that the regex matches only at the end of the string.

This can significantly alter the meaning of your regex as you can see in the next example:

>>> re.findall('fun$', 'fun fun fun')
['fun']

Although, there are three occurrences of the substring ‘fun’, there’s only one matching substring—at the end of the string.

But what if you want to match not only at the end of the string but at the end of each line in a multi-line string?

Python Re End of Line ($)


The dollar-sign operator, per default, only applies to the end of a string. So if you’ve got a multi-line string—for example, when reading a text file—it will still only match once: at the end of the string.

However, you may want to match at the end of each line. For example, you may want to find all lines that end with ‘.py’.

To achieve this, you can specify that the dollar-sign operator matches the end of each line via the re.MULTILINE flag. Here’s an example showing both usages—without and with setting the re.MULTILINE flag:

>>> import re
>>> text = '''
Coding is fun
Python is fun
Games are fun
Agreed?'''
>>> re.findall('fun$', text)
[]
>>> re.findall('fun$', text, flags=re.MULTILINE)
['fun', 'fun', 'fun']
>>>

The first output is the empty list because the string ‘fun’ does not appear at the end of the string.

The second output is the list of three matching substrings because the string ‘fun’ appears three times at the end of a line.

Python re.sub()


The re.sub(pattern, repl, string, count=0, flags=0) method returns a new string where all occurrences of the pattern in the old string are replaced by repl. Read more in the Finxter blog tutorial.

You can use the dollar-sign operator to substitute wherever some pattern appears at the end of the string:

>>> import re
>>> re.sub('Python$', 'Code', 'Is Python\nPython') 'Is Python\nCode'

Only the end of the string matches the regex pattern so there’s only one substitution.

Again, you can use the re.MULTILINE flag to match the end of each line with the dollar-sign operator:

>>> re.sub('Python$', 'Code', 'Is Python\nPython', flags=re.MULTILINE) 'Is Code\nCode'

Now, you replace both appearances of the string ‘Python’.

Python re.match(), re.search(), re.findall(), and re.fullmatch()


All four methods—re.findall(), re.search(), re.match(), and re.fullmatch()—search for a pattern in a given string. You can use the dollar-sign operator $ within each pattern to match the end of the string. Here’s one example per method:

>>> import re
>>> text = 'Python is Python'
>>> re.findall('Python$', text)
['Python']
>>> re.search('Python$', text)
<re.Match object; span=(10, 16), match='Python'>
>>> re.match('Python$', text)
>>> re.fullmatch('Python$', text)
>>>

So you can use the dollar-sign operator to match at the end of the string. However, you should note that it doesn’t make a lot of sense to use it for the fullmatch() methods as it, by definition, already requires that the last character of the string is part of the matching substring.

You can also use the re.MULTILINE flag to match the end of each line (rather than only the end of the whole string):

>> text = '''Is Python
Python'''
>>> re.findall('Python$', text, flags=re.MULTILINE)
['Python', 'Python']
>>> re.search('Python$', text, flags=re.MULTILINE)
<re.Match object; span=(3, 9), match='Python'>
>>> re.match('Python$', text, flags=re.MULTILINE)
>>> re.fullmatch('Python$', text, flags=re.MULTILINE)
>>>

As the pattern doesn’t match the string prefix, both re.match() and re.fullmatch() return empty results.

How to Match the Caret (^) or Dollar ($) Symbols in Your Regex?


You know that the caret and dollar symbols have a special meaning in Python’s regular expression module: they match the beginning or end of each string/line. But what if you search for the caret (^) or dollar ($) symbols themselves? How can you match them in a string?

The answer is simple: escape the caret or dollar symbols in your regular expression using the backslash. In particular, use ‘\^’ instead of ‘^’ and ‘\$’ instead of ‘$’. Here’s an example:

>>> import re
>>> text = 'The product ^^^ costs $3 today.'
>>> re.findall('\^', text)
['^', '^', '^']
>>> re.findall('\$', text)
['$']

By escaping the special symbols ^ and $, you tell the regex engine to ignore their special meaning.

Where to Go From Here?


You’ve learned everything you need to know about the caret operator ^ and the dollar-sign operator $ in this regex tutorial.

Summary: The caret operator ^ matches at the beginning of a string. The dollar-sign operator $ matches at the end of a string. If you want to match at the beginning or end of each line in a multi-line string, you can set the re.MULTILINE flag in all the relevant re methods.

Want to earn money while you learn Python? Average Python programmers earn more than $50 per hour. You can become average, can’t you?

Join the free webinar that shows you how to become a thriving coding business owner online!

[Webinar] Are You a Six-Figure Freelance Developer?

Join us. It’s fun! ?



https://www.sickgaming.net/blog/2020/02/...d-of-line/

Print this item

  [Oracle Blog] Java Heap Sizing in a Container: Quickly and Easily
Posted by: xSicKxBot - 02-02-2020, 06:38 AM - Forum: Java & JVM Languages - No Replies

Java Heap Sizing in a Container: Quickly and Easily

In the previous blog, We have seen that Java has made improvements to identify the memory based on a running environment i.e. either a physical machine or a Container (docker). The initial problem with java was that It wasn't able to figure out that it was running in a container and It used to capture the memory for whole hardware where the container was running. (Please see - ttps://blogs.oracle.com/java/java-on-container-like-a-pro)


Now a Java Program running in a container is able to identify the cgroup limit and assign the memory (heap) according to that, (If we do not specify the min and max heap size, which we used to define earlier). So we can run our java program in a container and utilize hardware memory properly, but can we very sure that Java program is using heap size according to cgroup definition?


We have a solution to this problem as XshowSettings:category. This is a handy HotSpot JVM flag (option for the Java launcher java) is the -XshowSettings option. This option is described in the Oracle Java launcher description page as follows:


-XshowSettings:category
Shows settings and continues. Possible category arguments for this option include the following:


all
Shows all categories of settings. This is the default value.


locale
Shows settings related to locale.


properties
Shows settings related to system properties.


vm
Shows the settings of the JVM.


[These types of flags described in the Java tech note - as https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html ]


The showSettings flag provides lots of details about the program running in that JVM, however, our interest is to find out the memory utilization so we will stick to the argument as -> -XshowSettings:vm -version


Let's verify this by running a simple container program without specifying the cgroup flag (which informs java that the program is running in a Java container)


(I set a container memory of 100MB and my JVM sets a max heap of 3.24G)


[root java-8]# docker run -m 100MB oracle-server-jre java -XshowSettings:vm -version


VM settings:


    Max. Heap Size (Estimated): 3.24G


    Ergonomics Machine Class: server


    Using VM: Java HotSpot™ 64-Bit Server VM



java version "1.8.0_181"


Java™ SE Runtime Environment (build 1.8.0_181-b13)


Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)



We can clearly see that Java Heap is capturing the heap available to the hardware however the docker size was specified to 100 mb only, Now let's tell Java that the program is running inside the container and see the results.


With java version 1.8.0_181 (including unlock experimental version and Cgroup limit with a specification of memory 1GB MB) with only jdk Docker 


[root]# docker run -m 1GB oracle-server-jre java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XshowSettings:vm -version
VM settings:
    Max. Heap Size (Estimated): 228.00M
    Ergonomics Machine Class: server
    Using VM: Java HotSpot™ 64-Bit Server VM


java version "1.8.0_181"
Java™ SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)


The JVM was able to detect the container has only 1GB and set the max heap to 228M, which is almost 1/4th of the total available size.


We can see that the Java Heap is set to 1/4th of the docker size and rest of the 3/4th memory is utilized by docker, but what if our container doesn't require 3/4 memory,


If the container or the program configuration doesn't need that much of memory then this is not the correct utilization of memory. The ratio between Java heap and Container size is defined inside JVM code, so the question is - can we configure this ratio??


Yes, Java did a very good thing by providing another option to change the ratio of container memory and java heap size. Java introduced another flag as MaxRAMFraction ( the default value to this flag is 4, so heap size takes 1/4th of container size and we can change it by defining it explicitly)


we have defined RAM fraction =2, Which settles heap size on almost 50% of the total.
[root]# docker run -m 1GB oracle-server-jre java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=2 -XshowSettings:vm -version
VM settings:    
    Max. Heap Size (Estimated): 455.50M
    Ergonomics Machine Class: server
    Using VM: Java HotSpot™ 64-Bit Server VM


java version "1.8.0_181"
Java™ SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)


The heap size reaches approximately to 50% of the total container size.


Now we can change the ratio as well according to our Java program comfort level, but this leads to another thought that is is safe to run a container, if we define this ratio to 1? (however JVM won't capture whole container memory and It leaves some memory to run some other container programs like container debug shell (docker exec) and diagnostics, OS processes, etc. If the program or container needs more memory under load then it will kill the container, so I feel defining the least ratio-XX:MaxRAMFraction=2 seems safe(ish), if we want to customize the default JVM ratio which seems to be the safest ratio.




https://blogs.oracle.com/java/java-heap-...and-easily

Print this item

  (Indie Deal) Deep Space Anomaly FREEbie, GalaQuiz, Siluman Sale, Exit Limbo Tutorial
Posted by: xSicKxBot - 02-02-2020, 06:38 AM - Forum: Deals or Specials - No Replies

Deep Space Anomaly FREEbie, GalaQuiz, Siluman Sale, Exit Limbo Tutorial

IT'S DEEP, IN SPACE: A FREEBIE ANOMALY AWAITS!
[freebies.indiegala.com]
Try out Deep Space Anomaly, the third new FREEbie of 2020 in our freebie section.

Crypto Sale Day 3: Siluman Soft Lunar New Year Sale
[www.indiegala.com]
Join our Crypto Lunar New Year Sale,[www.indiegala.com] and get an EXTRA 30% OFF on all bundles and 15% OFF on all store deals when paying with a supported cryptocurrency!

The 130th GalaQuiz will be LIVE soon, win up to $75:dollars: in GalaCredit!
[www.indiegala.com]
The GalaQuiz will take place in less than 25 minutes from this announcement
Today's GalaQuiz[www.indiegala.com] hints are up. The theme will be Rats?. Celebrating the Year of the Rat just like that.

Win Steam Keys by beating the Gameplay Challenge.[www.indiegala.com] (Open for just a few hours)

Newest Exit Limbo Video
https://youtu.be/sU4oI4yO1nU
Happy Hour
Today's Happy Hour is LIVE for Casual Cruise Bundle[www.indiegala.com]!

Check out IndieGala on Twitter, YouTube & Facebook[www.facebook.com]


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

Print this item

  News - BETA: Bedrock 1.14.30.51 (Xbox One / Windows 10 / Android)
Posted by: xSicKxBot - 02-01-2020, 11:46 PM - Forum: Minecraft - No Replies

BETA: Bedrock 1.14.30.51 (Xbox One / Windows 10 / Android)

Remember that only those on Xbox One / Windows 10 / and Android may participate in the Beta builds.  You will not be able to join Realms or non-beta players worlds and you will not be able to open worlds opened in the Beta in earlier/current stable builds of Bedrock.

  • Crashes/Performance
    • Fixed several crashes that could occur during gameplay
    • 256x resolution packs are now restricted on Xbox One to prevent crashing
    • Fixed a crash that could occur in certain worlds (MCPE-59756)
  • General
    • Split-screen will now display a message to join when the main controller is disconnected
  • Gameplay
    • Auto-jump will no longer trigger unexpectedly when trying to walk through open doors (MCPE-52213)
      • Further fixes will be made in the future to allow auto-jump to work more consistently
    • Crafting multiple Honey blocks now returns the correct amount of empty glass bottles on a 2×2 grid. (MCPE-58579)


https://www.sickgaming.net/blog/2020/01/...0-android/

Print this item