Hi guys, I want in MVC to render a text with an image as an ActionLink. For creating a simple anchor tag, we use Html.ActionLink() helper which generates anchor tag for us. If you want to create something a bit more complicated, you must create you own component. For this reason, I created the following code. It allows you to create an anchor with an image and a text. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace PSC.MVC.Helpers { public static class CustomHtmlHelpers { ///…
A Simple Speedtest Application
The purpose of this code is the detect how slow is your connection downloading a file from a site. First of all, you have to create a file with a known size: for that you can use fsutil in the prompt (see another post in this blog for info). When yo do put your file in a webserver (or you can use my url), we can create the code to check the connection speed. using System; using System.Collections.Generic; using System.Text; using System.Net; namespace SpeedTest { class Program { static void…
Xamarin forms, UWP Windows 10 App, TitleBar and Status bar customization
Customize the title bar of your Universal App for Windows 10 is quite easy, but you need to write different code for PC and Mobile. The class that allows you to customize the title bar: when running on a PC is called TitleBar when running on a Mobile is called StatusBar Before to call the API you first need to check if it exists (true if you are running on that platform): //PC customization if (ApiInformation.IsTypePresent( “Windows.UI.ViewManagement.ApplicationView”)) { var titleBar = ApplicationView.GetForCurrentView().TitleBar; if (titleBar != null) { titleBar.ButtonBackgroundColor = Colors.DarkBlue;…
WebAssembly is now ready for browsers to use
WebAssembly, a portable code format that could make for a faster web, has moved to minimum viable product (MVP) status, with browser vendors now able to switch WebAssembly on by default. A recent bulletin from Mozilla Senior Staff Engineer Luke Wagner said representatives of the four major browsers agreed that the design and binary format were complete to the extent that no further design work was doable without implementation experience and significant usage. Browsers represented included Google Chrome, Microsoft Edge, Mozilla Firefox, and WebKit, which is Apple’s browser engine for…
An error occurs with MobileCenter for Xamarin iOS
I added Microsoft Mobile Center to my project after creating the app there. On MobileCenter documentation you can know the Install Identifier for your application (MobileCenter documentation is here). System.Guid installId = MobileCenter.InstallId; This function is working fine if you have Android or iOS 10. With iOS less than 10 an error occurs: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). and the StackTrace is similar to at System.Guid+GuidResult.SetFailure (System.Guid+ParseFailureKind failure, System.String failureMessageID, System.Object failureMessageFormatArgument, System.String failureArgumentName, System.Exception innerException) [0x00030] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.4.0.123/src/mono/mcs/class/referencesource/mscorlib/system/guid.cs:198 \n at System.Guid+GuidResult.SetFailure (System.Guid+ParseFailureKind failure, System.String failureMessageID)…
This is iPhone 8
The hardware that allows the iPhone 8‘s rumored facial recognition capability could consist of a "revolutionary" new camera system for its front-facing camera. The report follows related rumors of Apple augmenting or ditching its Touch ID fingerprint scanner in favor of iris or facial recognition technology, fueled by its acquisition of Israeli facial recognition startup RealFace. Samsung’s Galaxy Note 7 — yep, that Galaxy Note 7 — was among the first phones to come equipped with an iris scanner.
99.6 percent of new smartphones run Android or iOS
The latest smartphone figures from Gartner are out, and they paint an extremely familiar picture. Between them, Android and iOS accounted for 99.6 percent of all smartphone sales in the fourth quarter of 2016. This duopoly has been the norm for a while now (in the second quarter of 2015 this figure was 96.8 percent), but it’s always impressive — and slightly terrifying — to see how Google and Apple continue to wring the last decimal point drops of market share from global smartphone users. Of the 432 million smartphones…
Happy 15th Birthday .NET!
Today marks the 15th anniversary since .NET debuted to the world. On February 13th, 2002, the first version of .NET was released as part of Visual Studio.NET. It seems just like yesterday when Microsoft was building its “Next Generation Windows Services” and unleashed a new level of productivity with Visual Studio.NET. Since the beginning, the .NET platform has allowed developers to quickly build and deploy robust applications, starting with Windows desktop and web server applications in 2002. You got an entire managed framework for building distributed Windows applications, ASP.NET was…
Visual Studio 2017 is coming on March 7
Join us at 8:00 AM PST on March 7 for a two-day online event celebrating the launch of our latest version as well as 20 years of Visual Studio. Watch the live stream featuring Julia Liuson, Brian Harry, Miguel de Icaza, and Scott Hanselman as they share the newest innovations in Visual Studio, .NET, Xamarin, Azure, and more. After the keynote, Microsoft engineers will lead interactive technical demo sessions to help you get the most out of Visual Studio 2017 and the rest of our tools and platform. On March…
Global Resources problem in Xamarin projects
Today I spent a lot of time to understand why my style doesn’t work. <Application xmlns="https://xamarin.com/schemas/2014/forms" xmlns:x="https://schemas.microsoft.com/winfx/2009/xaml" x:Class="myProject.App"> <Application.Resources> <ResourceDictionary> <Style x:Key="WarmGreyLine" TargetType="BoxView"> <Setter Property="HeightRequest" Value="1" /> <Setter Property="HorizontalOptions" Value="Fill" /> <Setter Property="Color" Value="#EEE9E5" /> <Setter Property="Margin" Value="0,10,0,10" /> </Style> </ResourceDictionary> </Application.Resources> </Application> I followed a video about it on Xamarin University. Everything was the same. They say you can copy your style from a ContentPage.Resources and page in the Application.Resources section <ContentPage.Resources> <ResourceDictionary> <Style x:Key="WarmGreyLine" TargetType="BoxView"> <Setter Property="HeightRequest" Value="1" /> <Setter Property="HorizontalOptions" Value="Fill" /> <Setter Property="Color" Value="#EEE9E5" /> <Setter…
Microsoft’s new adaptive shell will help Windows 10 scale across PC, Mobile, and Xbox
The Windows Shell is essentially the Windows environment we all know and love. In layman’s terms, it gives us access to system elements and objects necessary for running applications, and houses features such as the Taskbar, Start Menu, Desktop and more. Currently, the Windows Shell is different depending on the version of Windows 10 you’re using. For example, Mobile is using a different Windows Shell than desktop; but Microsoft is working to change and streamline that. Microsoft is building an "adaptive shell" into Windows 10 that’ll work across PCs and…
Microsoft’s Channel 9 introduces .Game, a new series focused on game development using .NET
Microsoft has introduced a new show to its Channel 9 video platform aimed at teaching and showing off Microsoft’s products and services. The new show is called .Game and aims to teach people how to develop games using .NET. In this new series, viewers will be able to watch along and discover how game development works and how to do it themselves. The first episode of the show is already available and focuses on the basics with Unity, a popular game engine. The above video introduces the .Game show. Stacey…
Microsoft’s new service turns FAQs into bots
Finding customer service help online can be a pain. Filtering through a knowledge base to find the right answer to your question can be an exercise in fighting with nested frequently asked questions documents. Microsoft is aiming to help by making it easier for companies to create intelligent bots that can answer common questions. The QnA Maker, launched in beta on Tuesday, will let users train an automated conversation partner on existing frequently-asked-questions content. After that information is fed in, the service will create a bot that will respond to…
How do I extract text that lies between two strings?
My initial problem was to extract from a SQL string generated by MySql, all fields. I had a string like 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 INSERT INTO `inventoryapp`.`inventory_keys` (`Id`, `PropertyId`, `AppointmentId`, `SectionType`, `KeysDescription`, `FobsWorking`, `EntryCodes`, `AlarmCodes`, `Notes`, `Version`, `CreatedDate`, `CreatedBy`, `UpdatedDate`, `UpdatedBy`, `IsDeleted`) VALUES (<{Id: }>, <{PropertyId: }>, <{AppointmentId: }>, <{SectionType: }>, <{KeysDescription: }>, <{FobsWorking: }>, <{EntryCodes: }>, <{AlarmCodes: }>, <{Notes: }>, <{Version:…
Amazon just launched a cashier-free convenience store
Amazon just unveiled a grocery store without lines or checkout counters. Amazon Go, a 1800-square-foot retail space located in the company’s hometown of Seattle, lets shoppers just grab the items they want and leave; the order gets charged to their Amazon account afterwards. Amazon Go works by using computer vision and sensors to detect what items you’re taking out of the store. You start by scanning an app as you enter the Amazon Go shop. You do your normal shopping, and the sensors throughout the store identify the items in…
It’s a Good Day to Be a C# Developer
Recently at Connect(), Microsoft made a slew of new announcements. First, the public availability of Visual Studio 2017 Release Candidate. This just isn’t a new version of the signature developer tool, it also includes the latest bits for C# 7.0. Second, Google announced they were joining the .NET Foundation. This means that Google, technically a competitor of Microsoft, wants to be actively involved in the evolution of .NET (and indirectly C#). Third, the first public release of Visual Studio for Mac. As a native environment, Visual Studio for Mac will…
Migrate SQLite to MySQL
I’m developing a huge app made with Xamarin Forms in my company. A problem was to create all tables in the device with SQLite to the main database MySql. I found a way to create all tables quickly with a tool called SQLite to MySQL. SQLite-to-MySQL is a powerful and reliable tool to convert SQLite databases to MySQL, MariaDB or Percona format. The program has high performance due to direct connection to source and destination databases (it does not use ODBC or any other middleware software). Command line support allows…
Microsoft’s Home Hub ambitions aim to crush Google Home and Amazon Echo
In what might be the most exciting part of this whole project, Microsoft is working on bringing the connected "smart home" to Windows 10 with Home Hub. The goal is to make Windows 10 the central hub for all your smart home devices, including lights, doors, locks and more. With Cortana integration allowing you to use your voice to toggle and control the smart devices in your home, the picture for Home Hub becomes complete: it brings Windows 10 to the center of your entire home. Microsoft is building a…
Microsoft is working on a new design language for Windows 10 codenamed Project NEON
Microsoft has made several adjustments to its design language over the last few years, starting with Windows 8 and evolving into what we now know as "Microsoft Design Language 2" or MDL2 in Windows 10. With MDL2 being the current design language used throughout Windows 10, Microsoft has plans to begin using a much more streamlined design language with Redstone 3, codenamed Project NEON. A Metro 2.0? Cassim Ketfi at Numerama.com confirms our information and has heard Project NEON called "basically Metro 2". That designation refers to the first Metro…
Satya Nadella: Microsoft building the ‘ultimate mobile device’
Microsoft CEO Satya Nadella has again reaffirmed the company’s commitment to developing smartphones. Unfazed by its market share dropping beneath 1 percent, Nadella said Microsoft is planning a revolutionary “ultimate mobile device.” Nadella made the comments during an interview with the Australian Financial Review. He visited Sydney last week to address a local developers conference about Microsoft’s cognitive computing systems and Azure cloud services. Nadella outlined his plans for Microsoft’s future involvement with smartphones. He suggested the company has stopped trying to rival the established leaders in the field. Instead,…
Xamarin Forms and Google Mobile Ads for iOS: update
In my previous post I explaind how to add on your application advertising. In those days Xamarin has removed from the Component Store the component called Google Mobile Ads for iOS. Now you have to install another component called Firebase AdMob for iOS. After installed this component you can see in your Output window a similar info without see an advert in your app: 2016-11-18 11:28:14.853 WordBankEasy.iOS[11103:2250070] <Google> You must set the rootViewController property of <GADBannerView: 0x1034702c0; frame = (-10 0; 320 50); clipsToBounds = YES; layer = <CALayer: 0x174e39d40>>…
Microsoft delivers test builds of Visual Studio for Mac, Visual Studio 2017 for Windows
Visual Studio for Mac is not a port of Visual Studio for Windows; it’s a rebranded version of Xamarin Studio integrated development environment (IDE) that will work on the Mac. (Microsoft bought mobile-tool vendor Xamarin in February 2016.) Visual Studio for Mac is available as of today as a preview for download. Visual Studio 2017 is the official name of the product Microsoft has been calling "Visual Studio Next" and/or codename "VS ’15’." As of today, a near-final Release Candidate version of that product is available to testers. The RC…
Store and Ads to Deliver $189 Billion to Publishers in 2020
Apps are increasingly becoming the go-to resource for communication, entertainment, shopping, productivity and more. As a result, the time consumers spend in apps has exploded. Coupled with the growth of the global installed base of smartphones and tablets, this will set the stage for significant revenue growth. This expanding revenue opportunity will not be exclusive to the top apps and categories, but will be more widely spread across the app economy. In order to fully capitalize on the app economy’s exceptional growth, publishers need to anticipate future market opportunities when…
Xamarin Forms Components
Hello guys! From today on Nuget there are 4 new components for Xamarin Forms created by me. MVVM Helpers Bindable Picker EnumBindable Picker TabControl Happy coding!
Windows switching to differential patching in the Creators Update
Major Windows 10 updates, including this summer’s Anniversary Update and next year’s Creators Update, are distributed as essentially full operating system installs. The downloads are around 4GB, and installing them performs a complete in-place upgrade to Windows. That is set to change as Microsoft rolls out what it calls its Unified Update Platform (UUP). Major upgrades will be shipped as differential updates, where only the differences between the currently installed version and the newly installed version need to be downloaded. The company estimates that this will result in major version…