Using the NEW NuGet Package Explorer to Create, Explore and Publish Packages!

nuget

In the past few years, NuGet has become one of the easily and most commonly used tools within a .NET Developers bag of tricks and rightfully so. Long gone are the days of searching for a DLL file in some shady site and hoping that it doesn’t brick your application. Now you can find just about every possible reference you would want to include within your application in just a few clicks (and letting it sort out all of the dependencies).

Most developers have likely interacted through NuGet within Visual Studio, however this post is going to introduce another way to interact, explore and even publish your own NuGet packages called the NuGet Package Explorer.

What is the NuGet Package Explorer?

The NuGet Package Explorer is a open-source product of NuGet developer Luan Nguyen and was developed as an extremely user-friendly GUI application for easily creating and exploring NuGet packages. After installing the ClickOnce application, you can simply double-click on a NuGet Package file (.nupkg) to access all of its content or you can load packages directly from the official NuGet feed.

“This is a side project of mine and it is NOT an official product from Microsoft.” –  NuGet developer Luan Nguyen

How to use it?

First, you’ll need to visit the NuGet Package Explorer page on CodePlex, where the tool is currently available and download it. After a short download, you can launch the ClickOnce application and be presented with the following screen :

JustLaunched

These are your primary options when it comes to creating or exploring the contents of any available NuGet packages (in addition to simply clicking on any NuGet Package files as mentioned earlier). The easiest approach to get started would probably be to open up a package from the feed, which will present you with a searchable dialog with all of the most popular NuGet packages :

PopularPackages

After clicking on a package, you can choose the particular version you wanted to explore :

allversions

You also have the option of manually opening up any packages that you might have locally installed, but simply grabbing them from the feed is usually going to be the way to go.

Exploring a Package

Once you select a package that you want to explore a bit more, you can just double-click on it to present the details about that package :

An example of exploring the EntityFramework NuGet Package.

While exploring a package, you’ll see many of the summaries, details and descriptions that you might be accustomed to seeing when managing your NuGet packages through Visual Studio along with a bit more.

You’ll see an area called Package Contents, which display all of the files that are contained within the package and it can help give you an idea of the different versions of the framework that it targets, any transformations that will be applied to configuration files and any additional utilities or executables that might be run when the package is installed :

PackageContents

This is where you can really actually explore the packages by digging into the contents a bit more. By simply double-clicking on a file within the contents, you will be shown a preview (if available) of the contents :

ContentsDetails

This can be done for just about any kind of file that would normally support previews and it can be extremely useful if you wanted to see exactly what is going down inside some of these packages.

Creating a NuGet Package

The Package Explorer isn’t limited to just exploring existing packages. It provides a very easy-to-use interface to allow you to create your own packages and upload them to NuGet to share with others.

With a simple click of the File > New option menu or by using the CTRL+N shortcut :

started

You’ll be transported to a new package screen to begin building your own NuGet Package. You can click the Edit Metadata icon ( EditMetadata) to began actually editing information about your package :

MetaData

You can find a complete reference of all of the available fields listed above and exactly what they are used for by visiting the Nuspec Reference page here.

After defining all of your metadata, supported assemblies and dependencies, you will then be ready to add your files and content to your packages. You can do this by just clicking a file within the File Explorer and dragging it into the Package Contents area on the left :

SampleFile

All of the DLL files that are entered will be placed into the lib directory and all other basic content will be placed into an aptly named content directory as seen below :

PackageContent

Additionally, if you need to add other folders (or any other “special” types of folders), you can do so by using the Content menu :

OtherContent

You can continue to add all of the additional files and folders for your package in this same manner until your package is complete.

Publishing to NuGet

Publishing to NuGet is fairly simple after you have build your package.

The first thing that you’ll need to do is Register and Sign In to the NuGet Gallery, which takes a matter of seconds. This will provide you with an API key that you will need to use in order to publish packages to NuGet :

Api

After you have your API Key, you’ll just need to use the Publish option (File > Publish) within the NuGet Package Explorer :

Publish

Just enter in your API Key in the Publish dialog and hit Publish and you are done!

Advertisements

A Chrome Shortcut That Makes Searching Your Favorite Sites Way Faster!

It works on Vimeo, and scores of other sites with their own search engines.

Google is the default search engine in Chrome’s “Omnibox,” the text field at the top of your browser where the URL appears and where you type search terms. But you can add a limitless number of other, site-specific search engines to it as well. This comes in handy if you’re looking for particular piece of content, like a news story or video, or you want to find something on a particular site, like Craigslist or eBay, as quickly as possible.

First, go to a website you frequent. Find its search bar, and right-click inside the text field. In most cases, you should see an option to “Add As Search Engine”. A pop-up will appear with the option to give it a name, and most importantly, a keyword. I recommend something as minimal as possible for maximum typing efficiency: A for Amazon, K for Kickstarter, N for Netflix.

Now, in Chrome’s search bar, type in that “keyword” and hit TAB. A block with the site’s name will appear, letting you know Chrome has changed from searching Google to searching, say, Wikipedia. Once you hit ENTER, you’ll be rerouted straight to a list of results from the site’s search engine.

Here are 20 sites where this works, and recommended shortcut keys:

(A) Amazon
(B) Bing
(BBC) BBC
(C) Craigslist
(D) DuckDuckGo
(E) eBay
(ESPN) ESPN
(Git) GitHub
(H) Hulu
(HP) Huffington Post
(K) Kickstarter
(LINK) LinkedIn
(M) GMail
(N) Netflix
(P) Pinterest
(PB) Pirate Bay
(RED) Reddit
(T) Twitter
(V) Vimeo
(W) Wikipedia
(WRD) WIRED
(Y) Yelp
(YT) YouTube

Source 🙂

London has benches that look like opened books! and.. Kansas City, M.O. has a Library that looks like books!

Jane Headford designed this Dr. Seuss bench, which is spending the summer alongside the River Thames
Jane Headford designed this Dr. Seuss bench, which is spending the summer alongside the River Thames

Chicago had cows, St. Louis has cakes and now London has benches that look like opened books.

The National Literacy Trust, along with public art promoter Wild in Art, has commissioned and placed 50 benches around town that are painted to look like pages and scenes from famous books.

Among the artists participating are Ralph Steadman, who recreated illustrations from his 1973 edition of Through the Looking-Glass; Rae Smith, the set designer for the stage version of War Horse; and How to Train Your Dragon creator Cressida Cowell.

In addition to the benches, which will be auctioned off in October, the project will include several literary-themed events, “such as an attempt to break the world record for the most number of people dressed as Sherlock Holmes, next to the Arthur Conan Doyle-inspired bench outside the University of London,” according to Time Out.

Here are some of other favorites:

This Sherlock Holmes bench is expected to attract the detective's lookalikes
This Sherlock Holmes bench is expected to attract the detective’s lookalikes
Fiona and Neil Osborne designed this salute to the 1905 class, The Railway Children
Fiona and Neil Osborne designed this salute to the 1905 class, The Railway Children
How To Train Your Dragon author Cressida Cowell invites people to sit and "imagine dragons wheeling above you in the skies."
How To Train Your Dragon author Cressida Cowell invites people to sit and “imagine dragons wheeling above you in the skies.”

 

Also, Kansas City, M.O. has a Library that looks like books!!

Library in Kansas City, Missouri, USA
Library in Kansas City, Missouri, USA

Don’t Use jquery-latest.js

Following is transcript from blog in jQuery.com:

Earlier this week the jQuery CDN had an issue that made the jquery-latest.js and jquery-latest.min.js files unavailable for a few hours in some geographical areas. (This wasn’t a problem with the CDN itself, but with the repository that provides files for the CDN.) While we always hope to have 100% uptime, this particular outage emphasized the number of production sites following the antipattern of using this file. So let’s be clear: Don’t use jquery-latest.js on a production site.

We know that jquery-latest.js is abused because of the CDN statistics showing it’s the most popular file. That wouldn’t be the case if it was only being used by developers to make a local copy. The jquery-latest.js and jquery-latest.min.js files were meant to provide a simple way to download the latest released version of jQuery core. Instead, some developers include this version directly in their production sites, exposing users to the risk of a broken site each time a new version of jQuery is released. The team tries to minimize those risks, of course, but the jQuery ecosystem is so large that we can’t possibly check it all before making a new release.

To mitigate the risk of “breaking the web”, the jQuery team decided back in 2013 that jquery-latest.js could not be upgraded to the 2.0 branch even though that is technically the latest version. There would just be too many sites that would mysteriously stop working with older versions of Internet Explorer, and many of those sites may not be maintained today.

As jQuery adoption has continued to grow, even that safeguard seems insufficient to protect against careless use of http://code.jquery.com/jquery-latest.js. So we have decided to stop updating this file, as well as the minified copy, keeping both files at version 1.11.1 forever. The latest released version is always available through either the jQuery core download page or the CDN home page. Developers can download the latest version from one of those pages or reference it in a script tag directly from the jQuery CDN by version number.

The Google CDN team has joined us in this effort to prevent inadvertent web breakage and no longer updates the file at http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js. That file will stay locked at version 1.11.1 as well. However, note that this file currently has a very short cache time, which means you’re losing the performance benefit of of a long cache time that the CDN provides when you request a full version like 1.11.1 instead.

So please spread the word! If you see a site directly using the jQuery CDN’s jquery-latest.js or the Google CDN equivalent in their script tags, let them know they should change to a specific version. If you need the latest version, get it from the download page or our CDN page. For both the jQuery and Google CDNs, always provide a full version number when referencing files in a <script>tag. Thanks!

Have a Nexus 5 or new Nexus 7? You can get Android L now

Unlike in the past when Google used to release the finished versions of Android, now Google is releasing beta versions called developer previews. The company announced Android L – for now it is called L but in a few months the name could change to something sweeter like Lemon Cake or Lollipop or Ladoo – at Google I/O two days ago. The developer preview of Android L is now available for download for Nexus 5 and Nexus 7.

This means if you have a Nexus 5 phone or Nexus 7 (2013) Wi-Fi tablet, you can download the relevant OS file from Google servers and install them on your device. Sounds simple enough? Well yes. But still the whole process is not all that simple for average consumers. The complexity, we suspect, is by design. Google doesn’t want less tech-savvy users to use preview versions of Android. These versions are meant for developers.

But if you are curious about Android L and wants to try it out, follow the steps here to get this version of Android that most of the consumers will only get by the end of this year.

How to install Android L: The method tested using Nexus 5 and Windows 7 PC

Step 1: Download the relevant Android L OS file from Google site (http://developer.android.com/preview/setup-sdk.html)

Step 2: Open developer options on your Nexus 5 phone. These options are hidden. So go to Settings > About Phone and then tap on the build number 7 times. Once you have done that, you will find developer options in your Settings menu.

Step 3: Open developer options and make sure USB Debugging is ticked.

Step 4: Check if your computer has the relevant drivers required for Nexus 5. If not, download the drivers from here and install (http://developer.android.com/sdk/win-usb.html)

Step 5: Make sure you have ADB and Fastboot Installed. For this, follow the steps from here (http://forum.xda-developers.com/showthread.php?t=2317790)
Step 6: Connect your phone to computer and open ADB (it will open in a command window). Type adb reboot bootloader. Your phone will go into recovery mode. Check the screen and see that for Bootloader status it shows unlocked.

Step 7: Most likely your phone will have the locked bootloader. To unlock it, type fastboot oem unlock. Then follow instructions on your phone screen. This will unlock bootloader as well as do a factory reset of the phone.

Step 8: Disconnect and reconnect your phone to PC. You may have to go into settings again, reveal developer options and select USB debugging.

Step 9: Unzip the Android L file you had downloaded. Create a new folder with an easy to type name like Android and put all the files in it. Then put this folder into Minimal ADB and Fastboot Folder which is in your computer’s program folder.

Step 10: Hold SHIFT key and right click on the Minimal ADB and Fastboot folder. From the menu, select “Open Command Window here”.

Step 11: With your phone connected, type adb reboot bootloader.

Step 12: Navigate (use CD to change directories) to the folder where Android L files are stored.
Step 13: Type flash-all in the command window.

Step 14: Sir back and relax. If you have done everything right, Android L will be installed on your phone. It will take up to 10-15 minutes though. The boot part especially takes a lot of time.

Additional notes: The preview versions are likely to have bugs so once you install the Android L you may find a few things not working in your phone. Installing Android L will delete all your data on the phone, so back up or save photos, music, files or any other data before installing the OS.

Source: 🙂

The Technology Behind the World Cup’s Advanced Analytics

SportsTech1

During Sunday’s 2-2 World Cup draw, the American forward Clint Dempsey, who scored one of two goals against Portugal, ran a total of 9,545 meters, with a top speed of 28.33 km/h over the course of 26 sprints. That wasn’t the top speed of the match, however, a title held by US defender Fabian Johnson, who reached an impressive 32.98 km/h.

Over the course of the match, detailed statistics, including dozens of other data points—the Americans ran a total of 110,299 meters, compared to the Portuguese side’s 106,520 meters, for example—are collected for every player on both teams, and displayed for television audiences worldwide, as well as posted to the FIFA website.

The system FIFA employs to grab the data, called Matrics, was built and deployed by an Italian firm called Deltatre at each stadium in the World Cup, and involves the use of several technologies and manual inputs from a large crew to deliver the real-time stats.

“The real value is that it’s live,” Tomas Robertsson, Deltatre’s North American commercial director, told me over the phone. “The extensive data set in real time provides on site heat maps and attacking zones, as well as distance run, passes completed, and many other statistics.”

Stats from Sunday’s US-Portugal match.fifaStats

The 2014 introduction of goal-line technology was a great leap forward for the international tournament; a technology that’s supposed to mitigate damn clear injustices such as Frank Lampard’s goal that the refs didn’t see. But it’s just one piece of high-tech gear that’s deployed at every area in the World Cup.​

Robertsson explained that the system works like this: Three HD cameras in various locations at each arena use image recognition to recognize the 22 players, three referees, and the soccer ball. The system tracks the XYZ coordinates of each of the objects, and then relays the information to a multi-screen, digital workstation where 74 people pour over the data on-site, aided by another 20 back in Italy.

The reason Deltatre uses cameras to optically track everything is that soccer players have resisted adding tracking technology into their equipment—such as their shoes—despite it being possible for some time.

A Deltatre Matrics operations center
A DELTATRE MATRICS OPERATIONS CENTER

On top of the cameras, the company has written algorithms that calculate passing stats, ball possession, and other statistics, totaling 350 in all. When the tracking information is relayed to a terminal, a human operator watching a slightly delayed version of the match validates each action before its sent live to the web or TV.

The image recognition technology isn’t entirely automatic. At the beginning of each match operators have to tell the machine which team is which color—and the color of the refs’ shirts—as well as manually input each player on the pitch. While the match is getting played out, the tracking system knows which team has touched the ball because a person with a video game controller hits a button for the corresponding team.

Unlike many other sports, Robertsson said that soccer isn’t a stats heavy game, but the information gleaned from the system can still be pretty useful in determining player performance. For example, it’s much easier to determine player fatigue simply by looking at the numbers.

Off the field, most of the teams at the World Cup use some kind of system to analyze each match to a similar level of detail, but after the fact. The collected data is analyzed by coaches and trainers to help ensure that teams are working at their peak potential.

Who’s using all our bandwidth?

Bandwidth is the total amount of information that can flow through the various rivers, streams and other tributaries of the Internet; it’s not a measure of speed, but of capacity. In the early days of the Internet, this bandwidth was dedicated primarily to education and research, but with the birth of a truly commercial Internet in 1995, bandwidth limitations became a much more serious issue as the public began to explore the Information Superhighway.

Today, entertainment and social media account for the lion’s share of bandwidth consumption. Streaming video giant Netflix accounts for more than a third of total bandwidth usage in North America during peak hours, and the combined tweets, Facebook posts and other social media output of active users make up almost 30% of all social media bandwidth use. And with peak usage outgrowing normal Internet usage by nearly ten percent, Internet traffic is likely to breach the “zettabyte threshold” sometime in 2015 (a zettabyte is equivalent to 1,000 exabytes, or one million one-terabyte hard drives).

The increasing importance of mobile computing has also altered our demand for bandwidth. As of 2013, nearly one in three website visits were made from mobile devices.

With a world of zettabytes and always-on mobile devices just around the corner, one thing’s for sure: as more and more entertainment, business and educational content moves from the physical realm to the Internet, the demand for bandwidth—and devices ready to use it—will only increase.

Bandwidth