Posted by: xSicKxBot - 11-02-2018, 09:55 AM - Forum: Lounge
- No Replies
Xbox Game Pass Will Expand To PC, Says Microsoft Head
Microsoft has plans to expand the Game Pass subscription service from Xbox One to PC. CEO Satya Nadella reportedly mentioned during an earnings call that bringing Game Pass to PC will help increase the strength of the Xbox brand.
Ars Technica reports that Nadella didn't give any indication of when to expect the subscription to expand, or if it would be included within the same all-you-can-eat price as the Xbox version. It would make some sense for the service to be all-encompassing, given that its current "Play Anywhere" initiative has made PC and Xbox versions of games available across both platforms regardless of where you bought it.
On the Xbox One, though, Game Pass has an isolated marketplace for such a service, competing only somewhat with the more niche EA Access. A PC subscription service would face competition from other similar monthly services at various price tiers. An Xbox One Game Pass subscription currently costs $10 a month. Expanding that pass to include PC games could come through an optional extra fee without paying for an entirely separate subscription.
Microsoft made a bold play for Game Pass by announcing early this year that it would feature all first-party games, on the day of release. That has included big names like Sea of Thieves and Forza Horizon 4. The company also works with publishers to introduce a new slate of third-party Game Pass games every month, and the list is growing pretty large. It also made Game Pass part of its All Access plan, which bundles the console, Game Pass, and Xbox Live Gold together.
Meanwhile, Sony appears to be keen on competing with Microsoft, changing its PlayStation Now service to allow players to download games. PlayStation Now had been a strictly streaming service, which Microsoft will be exploring in more depth next year with Project xCloud.
After data scientists have created a machine learning model, it has to be deployed into production. To run it on different infrastructures, using containers and exposing the model via a REST API is a common way to deploy a machine learning model. This article demonstrates how to roll out a TensorFlow machine learning model, with a REST API delivered by Connexion in a container with Podman.
Preparation
First, install Podman with the following command:
sudo dnf -y install podman
Next, create a new folder for the container and switch to that directory.
mkdir deployment_container && cd deployment_container
REST API for the TensorFlow model
The next step is to create the REST-API for the machine learning model. This github repository contains a pretrained model, and well as the setup already configured for getting the REST API working.
Clone this in the deployment_container directory with the command:
The prediction.py file allows for a Tensorflow prediction, while the weights for the 20x20x20 neural network are located in folder ml_model/.
swagger.yaml
The file swagger.yaml defines the API for the Connexion library using the Swagger specification. This file contains all of the information necessary to configure your server to provide input parameter validation, output response data validation, URL endpoint definition.
As a bonus Connexion will provide you also with a simple but useful single page web application that demonstrates using the API with JavaScript and updating the DOM with it.
swagger: "2.0" info: description: This is the swagger file that goes with our server code version: "1.0.0" title: Tensorflow Podman Article consumes: - "application/json" produces: - "application/json" basePath: "/" paths: /survival_probability: post: operationId: "prediction.post" tags: - "Prediction" summary: "The prediction data structure provided by the server application" description: "Retrieve the chance of surviving the titanic disaster" parameters: - in: body name: passenger required: true schema: $ref: '#/definitions/PredictionPost' responses: '201': description: 'Survival probability of an individual Titanic passenger' definitions: PredictionPost: type: object
server.py & requirements.txt
server.py defines an entry point to start the Connexion server.
requirements.txt defines the python requirements we need to run the program.
connexion tensorflow pandas
Containerize!
For Podman to be able to build an image, create a new file called “Dockerfile” in the deployment_container directory created in the preparation step above:
FROM fedora:28 # File Author / Maintainer MAINTAINER Sven Boesiger <donotspam@ujelang.com> # Update the sources RUN dnf -y update --refresh # Install additional dependencies RUN dnf -y install libstdc++ RUN dnf -y autoremove # Copy the application folder inside the container ADD /titanic_tf_ml_model /titanic_tf_ml_model # Get pip to download and install requirements: RUN pip3 install -r /titanic_tf_ml_model/requirements.txt # Expose ports EXPOSE 5000 # Set the default directory where CMD will execute WORKDIR /titanic_tf_ml_model # Set the default command to execute # when creating a new container CMD python3 server.py
Next, build the container image with the command:
podman build -t ml_deployment .
Run the container
With the Container image built and ready to go, you can run it locally with the command:
podman run -p 5000:5000 ml_deployment
Navigate to http://0.0.0.0:5000/ui in your web browser to access the Swagger/Connexion UI and to test-drive the model:
Of course you can now also access the model with your application via the REST-API.
How to Search for Files from the Linux Command Line
Learn how to use the find command in this tutorial from our archives.
It goes without saying that every good Linux desktop environment offers the ability to search your file system for files and folders. If your default desktop doesn’t — because this is Linux — you can always install an app to make searching your directory hierarchy a breeze.
But what about the command line? If you happen to frequently work in the command line or you administer GUI-less Linux servers, where do you turn when you need to locate a file? Fortunately, Linux has exactly what you need to locate the files in question, built right into the system.
The command in question is find. To make the understanding of this command even more enticing, once you know it, you can start working it into your Bash scripts. That’s not only convenience, that’s power.
Let’s get up to speed with the find command so you can take control of locating files on your Linux servers and desktops, without the need of a GUI.
How to use the find command
When I first glimpsed Linux, back in 1997, I didn’t quite understand how the find command worked; therefore, it never seemed to function as I expected. It seemed simple; issue the command find FILENAME(where FILENAME is the name of the file) and the command was supposed to locate the file and report back. Little did I know there was more to the command than that. Much more.
If you issue the command man find, you’ll see the syntax of thefind command is:
Naturally, if you’re unfamiliar with how man works, you might be confused about or overwhelmed by that syntax. For ease of understanding, let’s simplify that. The most basic syntax of a basic find command would look like this:
find /path option filename
Now we’ll see it at work.
Find by name
Let’s break down that basic command to make it as clear as possible. The most simplistic structure of the find command should include a path for the file, an option, and the filename itself. You may be thinking, “If I know the path to the file, I’d already know where to find it!”. Well, the path for the file could be the root of your drive; so / would be a legitimate path. Entering that as your path would take find longer to process — because it has to start from scratch — but if you have no idea where the file is, you can start from there. In the name of efficiency, it is always best to have at least an idea where to start searching.
The next bit of the command is the option. As with most Linux commands, you have a number of available options. However, we are starting from the beginning, so let’s make it easy. Because we are attempting to find a file by name, we’ll use one of two options:
name – case sensitive
iname – case insensitive
Remember, Linux is very particular about case, so if you’re looking for a file named Linux.odt, the following command will return no results.
find / -name linux.odt
If, however, you were to alter the command by using the -iname option, the find command would locate your file, regardless of case. So the new command looks like:
find / -iname linux.odt
Find by type
What if you’re not so concerned with locating a file by name but would rather locate all files of a certain type? Some of the more common file descriptors are:
f – regular file
d – directory
l – symbolic link
c – character devices
b – block devices
Now, suppose you want to locate all block devices (a file that refers to a device) on your system. With the help of the -typeoption, we can do that like so:
find / -type c
The above command would result in quite a lot of output (much of it indicating permission denied), but would include output similar to:
We can use the same option to help us look for configuration files. Say, for instance, you want to locate all regular files that end in the .conf extension. This command would look something like:
find / -type f -name "*.conf"
The above command would traverse the entire directory structure to locate all regular files ending in .conf. If you know most of your configuration files are housed in /etc, you could specify that like so:
find /etc -type f -name “*.conf”
The above command would list all of your .conf files from /etc (Figure 1).
Outputting results to a file
One really handy trick is to output the results of the search into a file. When you know the output might be extensive, or if you want to comb through the results later, this can be incredibly helpful. For this, we’ll use the same example as above and pipe the results into a file called conf_search. This new command would look like:
find /etc -type f -name “*.conf” > conf_search
You will now have a file (conf_search) that contains all of the results from the find command issued.
Finding files by size
Now we get to a moment where the find command becomes incredibly helpful. I’ve had instances where desktops or servers have found their drives mysteriously filled. To quickly make space (or help locate the problem), you can use the find command to locate files of a certain size. Say, for instance, you want to go large and locate files that are over 1000MB. The find command can be issued, with the help of the -sizeoption, like so:
find / -size +1000MB
You might be surprised at how many files turn up. With the output from the command, you can comb through the directory structure and free up space or troubleshoot to find out what is mysteriously filling up your drive.
You can search with the following size descriptions:
c – bytes
k – Kilobytes
M – Megabytes
G – Gigabytes
b – 512-byte blocks
Keep learning
We’ve only scratched the surface of the find command, but you now have a fundamental understanding of how to locate files on your Linux systems. Make sure to issue the commandman findto get a deeper, more complete, knowledge of how to make this powerful tool work for you.
Learn more about Linux through the free “Introduction to Linux” course from The Linux Foundation and edX.
Posted by: xSicKxBot - 11-02-2018, 09:55 AM - Forum: Windows
- No Replies
Voyage Aquatic takes students on new Minecraft coding adventure
More than 50 percent of jobs require technology skills, and in less than a decade that number will grow to 77 percent of jobs.1 Just 40% of schools have classes that teach programming and if you are a girl, black or Hispanic, or live in a rural community you are even less likely to have access.2
Minecraft and Microsoft are committed to helping close the STEM gap and expanding opportunities for students to learn computer science. For the fourth year, we are partnering with Code.org to support Hour of Code, a global movement demystifying computer science and making coding more accessible through one-hour tutorials and events. Hour of Code helps students get ‘Future Ready’ by connecting them with STEM learning experiences and career opportunities.
Today, we launched a new Minecraft Hour of Code tutorial, the Voyage Aquatic, which takes learners on an aquatic adventure to find treasure and solve puzzles with coding. Voyage Aquatic encourages students to think creatively, try different coding solutions and apply what they learn in mysterious Minecraft worlds.
Since 2015, learners around the world have completed nearly 100 million Minecraft Hour of Code sessions. The tutorials offer more than 50 puzzles, as well as professional development, facilitator guides and online training to help educators get started teaching computer science.
Dive into the Voyage Aquatic
Minecraft teamed up with four YouTube creators – AmyLee33, Netty Plays, iBallisticSquid and Tomohawk, with a cumulative following of more than five million – for this year’s Minecraft Hour of Code. These creative YouTubers guide participants along their journey through caves, ruins and underwater reefs to solve puzzles and learn coding concepts.
Voyage Aquatic presents 12 unique challenges, focusing on how to use loops and conditionals, two fundamental concepts in computer science. The tutorial also includes a ‘free play’ level for participants to apply what they learn in the prior puzzles and use coding to build imaginative underwater creations.
People of all ages and experience levels can use the Minecraft world to learn the basics of coding. The tutorial is free, open to anyone and available for any device. If your language is not available, you can help contribute to translation here.
Host an Hour of Code
Anyone can host an Hour of Code. Download a free facilitator’s guide to lead your own Minecraft Hour of Code at your school, library, museum, learning center or even at home.
Learn how to effectively facilitate an Hour of Code with this new Microsoft Education coursefor educators. Learn about the benefits of Hour of Code for your students, and where to find resources to lead an Hour of Code.
Let us know about your experience by posting on Facebook or Twitter and make sure to mention #HourofCode. Tag us @playcraftlearn!
Keep coding in Minecraft
You can continue your coding journey in Minecraft: Education Edition (or Minecraft on Windows 10) using Code Builder, a special feature that allows you to code in Minecraft.
Visit education.minecraft.net/cs for trainings, lessons and classroom activities to go beyond Hour of Code with your students.
If you already have a license for Minecraft: Education Edition, click this link to launch a special Voyage Aquatic world in Minecraft. Use code to fill an aquarium with marine life.
If you are not licensed, you can download a free trial of Minecraft: Education Edition for Windows 10, macOS and iPad by visiting aka.ms/download.
Save the date: Computer Science Education Week, December 3-9
Connect coding to careers with Skype in the Classroom: Sign up for free 30-minute Skype in the Classroom broadcasts and live Q&A with professionals who use code to create amazing things, including two Minecraft game designers! Happening December 3-7, introduce your students to nine inspiring ‘Code Creators’ in the worlds of dance, fashion, gaming, animation and artificial intelligence in a series brought to you by Microsoft and Code.org. Get your questions ready as we explore code-powered creativity. Register for free at aka.ms/codecreators.
Learn how to bring CS to your school: Microsoft is helping close the skills gap for all youth by increasing access to equitable computer science education. Discover resources atwww.microsoft.com/digital-skills.
1 The Future of Jobs Employment, Skills and Workforce Strategy for the Fourth Industrial Revolution, World Economic Forum, January 2016.
Apple’s walled garden approach to their app store means that a lot of the worst of the internet gets filtered out, but you lose a lot of freedom too. Android may be the platform of pirates and hackers, but it’s also where the craziest indie developers can go wild. In the end, that wall only protects users from creative, ardent, independent makers, while letting the worst of big money gatcha trash through.
But, whaddya know? I did some digging and some generous souls have released a few truly free strategy, board, RPG, and puzzle games on iOS, supported only by free donations. Not freemium, no ads, no IAP, no loot. True freeware! It’s enough to restore your faith in humanity. Oh, of course, these are (almost) all available on Android too, obviously.
This passion project brings Civilization to your mobile phone. The interface is a bit goofy looking, using sometimes disparate icons and cartoony skeumorphic buttons. The gameplay, though, is all there. It has all the features you would expect from Civ, including random and historical maps, way too many starting civilizations, the whole Civ tech tree with all your favorites, Gandhi threatening you with nukes, everything.
The AI is okay, but there is also the option to play on LAN or online. If you like it, there is a donation button and totally optional ads that you can watch to support the developer. Also on Android.
There’s not a lot of RTS on iOS to begin with, so you may be shocked to learn that one of the best examples of it is totally free. Warfare Incorporated is a time-tested game going back to the heyday of real-time strategy, being originally built for PalmOS in 2003. It’s mastered touch controls for RTS, with an interface that appears when you need it and goes away when you don’t, and a smart multi-touch box for selecting groups of units.
The graphics are dated, but it’s easy to tell units apart and tap on the right spots. The game has a classic sci-fi setup, with rival corporations competing over an alien planet in its campaign mode, but the real star are the hundreds of user-created missions you can download and the online multiplayer, making Warfare Incorporated a stock that will never crash. Also available on Android.
Or, if you disparage real-time strategy as shallow “micro” tap-tap-tapping, one of the deepest and most venerable wargame franchises is also available for free on iOS. Open Panzer is basically the classic Panzer General II on your phone with controls exceptionally well-adapted for mobile play.
Set in World War II, as all the best wargames are, Open Panzer charges you with commanding historically “semi-accurate” troops through over seventy different scenarios. These troops number in the thousands, so think carefully and try the tutorial first if you’ve never played a General game before. That said, if you’re a newcomer to wargaming, Open General is a great starting point. Also available on Android.
This boardgame-like strategy game has a lot of really interesting ideas underneath its minimalistic exterior. You build farms and towers to support a small army of troops. The trick is that each soldier has supply requirements, so if your development isn’t balanced or you are over-extended, your opponents will quickly cut you down to size.
All the math can be done on one hand, leaving you to focus on predicting your opponent’s moves. It’s thoughtful in much the same way chess is. Also, you have to deal with rapidly-growing forests eating up your farmland, which I don’t remember being a feature of chess, but I might be forgetting. Also available on Android.
This is basically Card Crawl but free, so go get it. In this card-based dungeon-crawler, you have to clear the deck of cards by using potions and food to keep your strength up while you kill monsters. Food acts as energy, monsters drain your health, potions restore it, and gems are needed to draw a new board. Manage your resources well, and you’ll get new special ability cards that add whole new twists to the basic gameplay. Mind Cards’ simple cycle adapts well to new abilities, which keeps it exciting as you learn to master new cards and push yourself further into the card dungeon.
Occidental Heroes scratches a similar itch as indie hit Battle Brothers, albeit in a much more limited fashion. You take command of a group of three mercenaries in a fictional medieval (not magical) world seemingly influenced by Darklands. You’re responsible for company management and battlefield tactics. The tactical layer is interesting enough since each unit type has quite distinct abilities. A lot of the game is procedurally generated and there is permadeath.
Though there’s no overarching story, there’s lots of little touches to make the world feel more alive. Each mercenary has a background that may come into play on the battlefield or may help you avoid conflict by parlaying with enemies, and they can retire and complete their tale if you can get them enough reputation. The developer is still adding more to the game, but right now the gameplay is solid and the rewards compelling. Also available on Android.
Pathos is a very successful attempt to bring a streamlined form of Nethack to iOS. It takes the basic roguelike classic design and cuts away all the fat. Moreover, it keeps the controls and interface super-smooth so they stay out of the way of your goblin-slaying. There’s still lots and lots to do and think about, unless you want to die horribly. You have thirteen classes, pets, potions, a wide variety of monsters, the whole shebang.
A lot of the stuff that was removed was more annoying details of Nethack, like rusting weapons, and good riddance One of the best (worst?) parts of Pathos is the default graphic set, which looks like it was copied from the first page of Google Image Search results for “fantasy sprites”. If you are less charmed by the kitsch, there are several more traditional sets. Also available on Android.
On the other hand, if you want the full-fat roguelike experience, the true form of Nethack is playable on iOS as well. Nethack is an everything-and-the-kitchen-sink (no really, you can die by hitting your head on a kitchen sink) take on roguelikes and its thirty-year development has resulted in some delightful bloat. That said, the iOS port iNethack2 uses the system keyboard and suggested commands to give you full access to the systems of the game while keeping things manageable on mobile. It has sprite sets too, if you are one of those people who just can’t see a purple ampersand as a demogorgon in your mind’s eye.
Jumping into Vampire’s Fall, you will be instantly transported back to 1996 and the town of the original Diablo, down to the identical (?) fonts. You are a vampire and the king is dead (oh no!) and the big bad Witchmaster has returned so it’s time to kill some rats and level up until you can kick his ass. Unlike Diablo, combat plays out in turn-based form rather than action real time.
It’s not the deepest, but you do have multiple skills and the ability to pick up and use new gear. It’s a straightforward but fairly polished traditional RPG experience. Like World of Empires, it does have IAP and ads, but they are both meant only as voluntary donations–you have to seek out a certain character in town to either pass the developer some cash or put some eyeballs on his ad buys. Also available on Android.
Finally, a puzzle game. Mekorama looks a lot like the iOS instant classic Monument Valley or the indie game Fez, but it’s not quite so devious as those games–its three-dimensional environments are really three-dimensional, no tricks.
There’s an adorable robot that needs to get from the start to the finish, and you can rotate the mazes, drag parts of the environment around, and tap to guide the little guy to the finish. There are mountains of levels, and a level creator that outputs QR codes, making it a snap to share and download new mazes. The IAP are purely for donations. Also available on Android.
Any other iOS games you’ve discovered that are really freeware? Remember: no ads or IAP that aren’t totally donations.
Let loose your inner mage. Step into the shoes of a prodigal mage and, using the power of PS VR, tear your way through a vast castle in search of gold, treasure and a hidden family fortune. As a young mage recently returned from magic school, unleash your newfound powers on the former family home as you seek to oust a sneaky spiritual creditor who has cheated your family of their wealth.
New Keynote Speakers Announced for Hyperledger Global Forum
With over 75 sessions, keynotes, hands-on technical workshops, social activities, evening events, and more, Hyperledger Global Forum gives you a unique opportunity to collaborate with the Hyperledger community, make new connections, learn about the latest production deployments, and further advance your blockchain skills. In addition to previously announced keynote speakers, new keynote speakers include:
Frank Yiannas, Vice President of Food Safety, Walmart
David Treat, Managing Director, Accenture
Session Highlights Include:
Technical Track:
Approaches to Consortia Governance and Access Control in Hyperledger Fabric Applications – Mark Rakhmilevich, Oracle
Chaincode Best Practices – Sheehan Anderson, State Street
Lessons Learned Creating a Usable, Real-world Web Application using Fabric/Composer – Waleed El Sayed & Markus Stauffiger, 4eyes GmbH
Secure your spot now and save up to $150 with the current registration rate, available through November 25. Register now >>
PS4 Game Deals In This Week's Double Discount PlayStation Store Sale
The PlayStation Store's Sale of the Dead runs through November 2, but that hasn't stopped Sony from launching a new sale this week. This one is called the Double Discount Sale because, while everyone gets up to 30% off the games on the list, PS Plus members get--drumroll--double the discount. That's what Sony is advertising, anyway, though some of the PS Plus discounts actually seem bigger. In any case, the sale ends November 13, so let's take a look at the best deals you can get between now and then.
Ubisoft has dropped prices on much of its PS4 back catalog, with discounts on Assassin's Creed and Far Cry games in particular. If bang for your buck is what you're after, you can grab Assassin's Creed: The Ezio Collection for $34 ($17 with PS Plus). It contains Assassin's Creed II, plus Brotherhood and Revelations. Fans of open-world shooters can grab Far Cry 3 Classic Edition for $25 ($20) or go pre-historic with Far Cry Primal for $33 ($15).
The delightful Japanese crime saga Yakuza 6: The Song of Life is down to $45 ($30), while EA Sports UFC 3 drops to $40 ($20). If you want to try something a little different, you can grab Pyre for $14 ($8); it's a party-based RPG that plays out like a made-up sports game. Speaking of RPGs, you can log dozens of hours in Pillars of Eternity: Complete Edition for $35 ($20).
You'll find more of our picks below, or check out the full list of sale items for PS4, PS3, and PS Vita here.
Dance to 40 hits, from "Finesse (Remix)" by Bruno Mars Ft. Cardi B. Jump into an even more personalized experience, with a newly curated homepage. 8 exclusive choreographies created with the help of kids' development experts to encourage healthy movement. Join even more multiplayer events and online parties with a revamped World Dance Floor.