Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Saturday, December 6, 2014

Android: How to Create Advance Drawer Layout with Dynamic Fragment Loading

Dharmang Soni: Advance Drawer layout with dynamic Fragment loadin...: Hello Friends, Here we are going to create advanced drawer with custom layout and dynamic fragment loading on each drawer item click. ...

Update: ActionBarDrawerToggle

Saturday, June 14, 2014

Tile Template

You can go to this link to find a complete list of tile template you can use for your Windows 8, Windows 8.1 and Windows Phone app.

How to Use Segoe UI symbol in XAML

You can go to this link to find the complete listing of the symbols that you can use.

Example
<TextBlock Text="&#xE006;" FontFamily="Segoe UI Symbol" >

How to Extend Splash Screen

Are you developing a Windows 8 or Windows 8.1 app and need to extend the splash screen? You can go to this link to learn how to extend the splash screen.

Wednesday, December 25, 2013

User friendly web based manpages

iptables

explainshell.com is a web based application that contains 29761 parsed manpages from sections 1 and 8 found in Ubuntu's manpage repository. Personally, I find it really useful and interactive for beginner learners. Just type in a shell command and it will explain to you what it means.

Saturday, June 22, 2013

How to Generate a Random Number within a range - C#

You can easily generate a random number within a specific range by using the Random class in .Net.

The random class defined in the .Net Framework class library provides functionality to generate random numbers. The constructors in the Random class have 2 overloaded forms. It takes in either no value or a seed value. The Random class has 3 public methods, Next, NextBytes and NextDouble.

The Next method returns a random number, NextBytes returns an array of bytes filled with random numbers, and NextDouble returns a random number between 0.0 and 1.0. The Next method has 3 overloaded forms and allows you to set the minimum and maximum range of the random number.

The following code returns a random number in a specific range (0 to 100):

var rand = new Random();
String myNumber = rand.Next(0, 100).ToString();

Population Data is Now on OneMap

OneMap
Introducing to the new data service that grants public access to Singapore's population data and this will be part of a drive to encourage innovation and citizen participation.

The latest service to OneMap is called the PopulationQuery. This is a collaboration between the Department of Statistics and the SLA that enables users to visualize demographic data on a map.

With this new and interactive PopulationQuery on OneMap, people can now do things like finding out how many people are living in a particular area, categorize in different age group and gender. This will be a very useful tools for business as this function provides them an insight information whether it is a right choice to set up their business in that area.

OneMap also provides many other services, such as transport information, traffic information, water level sensor readings and etc.

Check it out now at this link, http://www.onemap.sg/index.html