Browsed by
Category: Programing

How to auto-capitalize keyboard/entry in xamarin forms

How to auto-capitalize keyboard/entry in xamarin forms

Introduction: The Keyboard class also has a Create factory method that can be used to customize a keyboard by specifying capitalization, spellcheck, and suggestion behavior   Description: KeyboardFlags enumeration values are specified as arguments to the method, with a customized Keyboard being returned. The KeyboardFlags enumeration contains the following values: None – no features are added to the keyboard. CapitalizeSentence – indicates that the first letter of the first word of each entered sentence will be automatically capitalized.  Spellcheck –…

Read More Read More

Throttling Concurrent Outgoing HTTP Requests in .NET Core

Throttling Concurrent Outgoing HTTP Requests in .NET Core

In my last post, we implemented the rate limiting for an API endpoint on the server side. The server side rate limiting is useful for API providers to ensure system performance and/or to realize business values. On the client side, the API consumers then should throttle the rate of concurrent HTTP requests in order to comply with the rate limits of the endpoints and moderate the usage of client side resources. This post will go over how to make concurrent outgoing HTTP requests on the client…

Read More Read More

Run/install/debug Android applications over Wi-Fi

Run/install/debug Android applications over Wi-Fi

Connect the device via USB and make sure debugging is working; adb tcpip 5555. This makes the device to start listening for connections on port 5555; Look up the device IP address with adb shell netcfg or adb shell ifconfig with 6.0 and higher; You can disconnect the USB now; adb connect <DEVICE_IP_ADDRESS>:5555. This connects to the server we set up on the device on step 2; Now you have a device over the network with which you can debug as usual. To switch…

Read More Read More

Những định luật nổi tiếng trong phát triển phần mềm

Những định luật nổi tiếng trong phát triển phần mềm

Định luật Murphy: Nếu một tình huống xấu có thể xảy ra, thì nó sẽ xảy ra (If something can go wrong, it will). Defensive programming, version control, TDD, MDD,… đều là các nguyên tắc, kỹ thuật được sử dụng để phòng trách các sự cố liên quan đến định luật Murphy. Định luật Brook: Gia tăng nhân lực cho một dự án chậm tiến độ càng làm nó chậm tiến độ hơn (Adding manpower to a late software project…

Read More Read More

Xamarin Forms Named font sizes

Xamarin Forms Named font sizes

Xamarin.Forms defines fields in the NamedSize enumeration that represent specific font sizes. The following table shows the NamedSize members, and their default sizes on iOS, Android, and the Universal Windows Platform (UWP): Member iOS Android UWP Default 16 14 14 Micro 11 10 15.667 Small 13 14 18.667 Medium 16 17 22.667 Large 20 22 32 Body 17 16 14 Header 17 96 46 Title 28 24 24 Subtitle 22 16 20 Caption 12 12 12 Named font sizes can be set through both…

Read More Read More

Hosts files and the Google Android emulator

Hosts files and the Google Android emulator

Using the Google Android emulator is a good way to test how a website behaves on Android devices. Connecting to your local computer http://10.0.2.2 is the URL to connect to a website hosted on your local computer. localhost or 127.0.0.1 will not work! This is all defined in the documentation on Android emulator networking. Using a hosts file The Android emulator will not make use of your local hosts file. This is unfortunate when your website relies on host headers to work…

Read More Read More

Xamarin Forms: Lazy load tabs in TabbedPage

Xamarin Forms: Lazy load tabs in TabbedPage

Source: https://enginecore.blogspot.com/2019/01/xamarin-forms-lazy-load-tabs-in_10.html In Xamarin Forms, we sometimes need the TabbedPage to display a tab layout. You can checkout the great official documentation hereabout how to create and use a TabbedPage. Problem: Every tab is a Page instance The TabbedPage is a multi page container where every tab is a Page object. No matter how you create the tabs (either by setting the TabbedPage.Children page collection with Page instances or by setting TabbedPage.ItemsSource and TabbedPage.ItemTemplate) the TabbedPage needs a Page instance for every tab and uses the Page.Title property to display the text header on the tab…

Read More Read More

Versioning Android apps

Versioning Android apps

If you need to improve the versioning scheme of your android app, then you are reading the right story. Let’s discover together some good practices and their advantages. Semantic Versioning There is something in the software world called Semantic Versioning. It consists on a couple of conventions to assign version numbers to your software. You can (or maybe should) read all the details here. Basically, the idea is the following: Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make…

Read More Read More