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

Enable/Disable Hyper-V

Enable/Disable Hyper-V

To disable Hyper-V from starting the following command can be used: bcdedit /set hypervisorlaunchtype off To enable the Hyper-V role again use the following command: bcdedit /set hypervisorlaunchtype auto A reboot of of the Windows 10 is necessary.

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

HTTP Status Codes Explained

HTTP Status Codes Explained

In this article, we would be discussing all of the HTTP Status Codes, what are they, how are the categorized, what each category contains and meaning of each and every status code.  HTTP Status Codes | Full Stack Geek Table of Contents What are HTTP Status Codes Categorization and Detailed Explanation of all HTTP Status Codes 1XX – Informational 2XX – Success 3XX – Redirection 4XX – Client Error 5XX – Server Error Recommended Articles References What are HTTP Status Codes:…

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

Clone git repo hosted on a Windows shared folder from Mac OS X

Clone git repo hosted on a Windows shared folder from Mac OS X

I kind of like to think that remote file system access is an OS thing, and that cloning repos is an application-level thing, so this would be my approach: You should just be able to mount that SMB share with your OS’es functions to a local directory and clone from there, instead of hoping git has a transport for SMB. How to mount: Connect to the server on your Mac. Now, on your Mac, from Finder’s Go menu, choose “Connect…

Read More Read More