Microsoft is working on a quantum computer that uses what are called “non-abelian anyons,” a quasiparticle that physicists aren’t sure even exist. Quantum computers promise to perform calculations at unfathomably faster rathes than today’s computers. Although other companies are using more realistic, proven materials in their work to create the machine, Microsoft is hopeful that its unique approach will pay dividends as the resultant machine should be less susceptible to external interference. The company has nearly 40 people working on the project, as quantum computing is seen as well worth…
Category: Uncategorized
Multi Step Form with Progress Bar using jQuery and CSS3
Got long forms on your website ? Break them up into smaller logical sections and convert it into a multi-step form with a cool progress bar. Could work for lengthy processes like registration, checkout, profile fillups, 2-factor authentication logins, etc. The form has 3 fieldsets containing the 3 different sections of the form. The fieldsets are absolutely positioned and only the first one is visible by default. Moving to the next section fades out the current fieldset using jQuery .animate() and brings in the next fieldset from the right. The…
Start Edge Animate when is in the screen
I’ve come across a few sites that will tie window scrolling with animation. When used in a subtle, small fashion, this is kind of cool. When used to change large portions of the view or really screw with scrolling, I detect it. Like most things, it all comes down to how you use it I suppose. But I was thinking recently – how can we do this with Edge Animate? Change edgePreload.js In a file calles something_edgePreload.js you find a line similar to the follow: if (AdobeEdge.bootstrapLoading) { signaledLoading =…
Continuous: C# and F# IDE for the iPad by Frank A. Krueger
Continuous gives you the power of a traditional desktop .NET IDE – full C# 6 and F# 4 language support with semantic highlighting and code completion – while also featuring live code execution so you don’t have to wait around for code to compile and run. Continuous works completely offline so you get super fast compiles and your code is secure. Continuous gives you access to all of .NET’s standard library, F#’s core library, all of Xamarin’s iOS binding, and Xamarin.Forms. Access to all of these libraries means you won’t…
Microsoft takes on IFTTT with Flow
IFTTT is one of the most useful online services. Today, Microsoft is taking on IFTTT with its new service called “Flow”. The company is launching the preview of Flow today, and it works almost like IFTTT. Unlike IFTTT, Flow isn’t mostly focused on consumers — instead, it’s mostly focused on enterprise integrations. Flow lets you automate your workflow, and be more productive. With Flow, you can setup GitHub to automatically send a Slack notification and add a card in Trello when a new issue is submitted. Additionally, you can also…
World’s First Autonomous Drone, The DJI Phantom 4, Revealed
Recently, the Irish Internet of Things chip maker Movidius, has won a multi-million dollar deal with Google, and it has been revealed as the brain behind the breakthrough autonomous drone, the DJI Phantom 4. This autonomous drone, which went on sale in Apple Stores across the US last week, features a new visual guidance facet, which sticks to and follows a subject, and can stay in a fixed position without the need of a GPS signal. Described as the first in the industry, the addition of Movidius chips technology and…
Microsoft, others join forces to work on encrypted email protocols
In the world of the Internet, technology is constantly changing. The SMTP technology behind email, however, has not changed much since it was first released a very long time ago. Despite the invention of SMTP SMARTTM to solve this problem, most emails are still unencrypted, and thus open to a man in the middle hack. Luckily though, a team of engineers from Microsoft, Google, Yahoo, Comcast, and other leading companies have been working on a proposal which would cut out the middle man hacker The proposal which has been submitted…
Microsoft cuts off Windows 8’s security updates on January 12
Windows 8 is about to get a lot less secure. After January 12, Microsoft will stop offering security patches for the three-year-old operating system. Users will have to upgrade to either Windows 8.1 or Windows 10 to keep receiving updates. As Ed Bott notes Windows 8 is an exception to Microsoft’s typical support lifecycle policy, which provides 10 years of security fixes after the initial launch date. That’s because Microsoft considers Windows 8.1—a meaty update released nearly one year after Windows 8—to be a service pack, rather than an entirely…
Write C#. Run JavaScript.
Open Source C# to JavaScript Compiler and Frameworks. Run Your App On Any Device Using JavaScript. Use Bridge.NET to build platform independent applications for mobile, web and desktop. Run on iOS, Windows, Mac, Linux and billions of other devices with JavaScript support. Compile your C# code into native JavaScript and deploy on Billions of devices. Try it on bridge.net or fork it on GitHub
How To Enable SQL Full Text Indexing
The following steps will tell you if your database version supports full text searching and if so how to enable it. Open SQL server management console Right click on the database and select properties On the left select files If “Full-Text Indexing” is greyed out it means that full-text indexing is not enabled. NOTE: If you are using SQL Server 2012 Please see the SQL Server 2012 notes at the bottom of this article. How to enable Full Text Searching Click on the New Query button top left of the…
Print a table structure in SQL Server
I was wondering how it’s possible to get the structure of one or more table(s) in a database, using possibly a SELECT; I need to retrieve the composition of the DB I’m working onto to attach it in some docs about the webapp I’m currently developing. SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.COLUMNS ORDER BY TABLE_NAME
Delete all Stored Procedures at once
If this is a one- time task, just open Object Explorer, expand your database > programmability and highlight the Stored Procedures node. Then turn on Object Explorer Details. On the right you should see your list, and here you can multi-select – so you can sort by name, choose all procedures that start with aspnet_, and delete them all with one keystroke. If you are doing this repeatedly, then (assuming your procedures are all in the dbo schema): DECLARE @sql NVARCHAR(MAX) = N”; SELECT @sql += N’DROP PROCEDURE dbo.’ +…
ASP.NET MVC 3: Razor’s @: and syntax
Razor minimizes the number of characters and keystrokes required when writing a view template, and enables a fast, fluid coding workflow. Unlike most template syntaxes, you do not need to interrupt your coding to explicitly denote the start and end of server blocks within your HTML. The Razor parser is smart enough to infer this from your code. This enables a compact and expressive syntax which is clean, fast and fun to type. For example, the Razor snippet below can be used to iterate a list of products: When run,…
Microsoft explains what you’ll lose by upgrading to Windows 10
Microsoft announced today that it will be launching Windows 10 on July 29th, encouraging Windows 7 and 8.1 users to reserve their free upgrade with a notification in their task bar. However, while the company has been busy highlighting all the shiny new features in the upcoming OS, it’s been a bit quieter when it comes to spelling out the limitations — including making updates automatic for Windows 10 Home users. Firstly there are the software losses. Most of these will only affect a small number of users, but upgrading will mean…
Web.config: encryption and decryption
Introduction In this article I will explain how to encrypt or decrypt connection Strings in web.config file using asp.net. Description In Previous posts I explained lot of articles regarding Asp.net, Gridview, SQL Server, Ajax, JavaScript etc. In many of articles I used connection Strings section in web.config file to store database connection. The connection Strings section contains sensitive information of database connections including username and password of database. Is it secured to store the sensitive information of database connections in plain text files called web.config and machine.config files? If we…
Windows 10 to Come in at Least Seven Packages Targeting Consumers, Education, Enterprise and Mobile
While Windows 10 is designed to run across phones, tablets, PCs and more, Microsoft confirmed Wednesday that it plans to package up the software slightly differently for separate markets. Windows 10 will be released in at least seven different flavors if you count the versions offered for home, education, enterprise, internet-of-things devices as well as standard and enterprise editions of Windows 10 for phones and small tablets. To be clear, apps created for Windows 10 will run on all the flavors, with some tailoring needed to make apps work across…
SQL Server: how to convert INTEGER to TIME
I have a very simple solution. If you have a field in database in int format and you want to know how many seconds it’s, the query is: SELECT CONVERT(char(5), DATEADD(second, AVG(Avg_time), ‘20150101’), 108) as myAverageFROM T_GoogleAnalytics_dataHAVING (AVG(Avg_time) IS NOT NULL)
Mime type for Microsoft Office 2007-2010
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template.potx application/vnd.openxmlformats-officedocument.presentationml.template.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation.sldx application/vnd.openxmlformats-officedocument.presentationml.slide.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template.xlam application/vnd.ms-excel.addin.macroEnabled.12.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12
Check Local IP Address
This example shows how to detect whether a host name or IP address belongs to local computer. Get local computer name Get local computer host name using static method Dns.GetHostName. [C#] string localComputerName = Dns.GetHostName(); Get local IP address list Get list of computer IP addresses using static method Dns.GetHostAddresses. To get list of local IP addresses pass local computer name as a parameter to the method. [C#] IPAddress[] localIPs = Dns.GetHostAddresses(Dns.GetHostName()); Check whether an IP address is local The following method checks if a given host name or IP…
Download Files from Web
This example shows how to download files from any website to local disk. The simply way how to download file is to use WebClient class and its method DownloadFile. This method has two parameters, first is the url of the file you want to download and the second parameter is path to local disk to which you want to save the file. Download File Synchronously The following code shows how to download file synchronously. This method blocks the main thread until the file is downloaded or an error occur (in…
Why does Html.ActionLink render “?Length=4â€
I’m VERY confused as to why this code Html.ActionLink(“About”, “About”, “Home”, new { hidefocus = “hidefocus” }) results in this link: <a hidefocus=”hidefocus” href=”/Home/About?Length=4″>About</a> The hidefocus part is what I was aiming to achieve, but where does the “?Length=4” come from? Solution The Length=4 is coming from an attempt to serialize a string object. Your code is running this ActionLink method: public static string ActionLink(this HtmlHelper htmlHelper, string linkText, string actionName, object routeValues, object htmlAttributes) This takes a string object “Home” for routeValues, which the MVC plumbing searches for public…
The Difference Between @Helpers and @Functions
This is another post which was inspired by a recent question in the ASP.NET forums, when someone asked what the difference is between @functions and @helpers in ASP.NET Web Pages. Here, I look at both of these contructs and explain what they are, how they are different, and how each should be used appropriately. Both @helpers and @functions do share one thing in common – they make code reuse a possibility within Web Pages. They also share another thing in common – they look the same at first glance, which…
ASP.NET MVC Controller for Serving Images
Introduction Working with images in a web application can turn from a simple task to a complexity in need of some serious attention as soon as traffic starts to grow or image assets become too vast to reasonably maintain multiple versions of each (large, medium, thumbnail). A general reference to an image in a HTML img tag does not provide a way to control caching or additional headers like the ETag to help site speed performance, nor does it provide a true way to handle resizing (the use of the…
How to programmatically hide the keyboard
I have a textbox with a button inside. When the user presses the Action, a progress bas is displayed, the screen goes dark, and some magic happens. My problem is that since the action doesn’t result in the textbox losing focus, the on-screen keyboard is not hidden, and keeps covering half the screen. Just set focus to the main page: this.Focus(); this will focus a control that doesn’t use the keyboard and thus hide the keyboard. Unfortunately there is no API to the keyboard to hide it.
Transparent Live Tile For Windows Phone 8.1
Windows Phone 8.1 Dev Preview Windows Phone 8.1 developer preview is totally awesome. So what is one of the most important things app devs can do right away, without much fuss, to make their apps look great with Windows Phone 8.1? Revisit your app’s Live Tile images. Why? In 8.1, Start screen is mesmerizing with the parallax effect and Live Tile with background overlay. Dev preview users are going crazy with new Start experience, and I am sure, with public release, end users are going to love to have background…