Fun with FireMonkey Gradients

Fun with FireMonkey Gradients

Everybody loves colours. Great apps should use colours in clever and original ways. I have been recently spending a lot of time using Delphi XE5 for designing screens for mobile apps and must admit that I really like the way how iOS 7 is using colours and gradients....

Changing FireMonkey style at runtime

Changing FireMonkey style at runtime

Last month Sarina DuPont blogged about loading custom FireMonkey styles on a mobile device at runtime ("How to load custom styles at runtime"). That's a very interesting approach to compile a custom style as a resource into the mobile app. This week...

The Cheat-Sheet on SharePoint’s Distributed Cache

I was in Indiana this past weekend at SharePoint Saturday Indianapolis, and one of the presentations I delivered at the event was a favorite of mine: “Caching-In” for SharePoint Performance.” With SharePoint 2013 hitting the streets, I decided it would be a good idea...

Creating an Overflow Menu on Android

Creating an Overflow Menu on Android

During my CodeRage 8 session I talked about creating an Action Bar with an Overflow menu, so I wanted to provide some step-by-step instructions. On Android, an Action Bar is a top (or top and bottom aligned) toolbar that is segmented into 4 key functional areas. One...

How to load custom styles at runtime

How to load custom styles at runtime

During my session at CodeRage, I briefly talked about how to load custom styles at runtime. I wanted to elaborate on this topic and provide some detailed steps. In this example, we are creating a mobile app for iOS and Android that uses the 'Jet' Premium...

Bridging the NoSQL, Cloud and Big Data gap with Studio 14!

With increasing adoption of NoSQL, Cloud and Big Data databases, we have released our new 14.0 version of Aqua Data Studio with full support for MongoDB, Apache Cassandra, Apache Hive and Microsoft Azure. Our 14.0 release is packed with new features, new database...

Playing Audio Clips on Android

I have been working with our R&D team on the samples and snippets for RAD Studio XE5. Our mobile snippets are designed to showcase key functionality with just a couple of lines of code. Today I thought I would highlight our AudioPlayBack snippet. This snippet...

Manipulating File System Paths (Part 3)

In previous tips we illustrated how you can turn file system paths into arrays and then create new paths by changing or excluding parts of the array. This can become even more convenient when you cast the array to an ArrayList type. Now, it is very easy to exclude...

Manipulating File System Paths (Part 2)

When you turn a path into an array to manipulate parts of the path, if you access path elements by fixed index numbers, then this approach will only work if the path has a fixed number of subfolders. To work with any path length, try using variables. This example will...

Manipulating File System Paths

PowerShell lets you access multiple array elements. With the help of -split and -join, you can easily manipulate file system paths this way. To exclude the second and third level folder, try this: $path = 'C:\users\Tobias\Desktop\functions.ps1' $array = $path...

Writing DWORD-Values to Registry

In PowerShell 2.0, Set-ItemProperty by default always creates REG_SZ (String) values. PowerShell 3.0 is smarter. When you submit a numeric value, then PowerShell 3.0 automatically creates a DWORD value. If you submit a non-numeric value, a REG_SZ is created. Try for...

Importing Website Tables into Excel

Sometimes, you might see interesting information on websites. For example, navigating to http://www.ssa.gov/OACT/babynames/index.html will open a site with popular baby names. If you'd like to work with that data, the traditional approach is to read the raw HTML...

Negating Variables

Let's assume you have a variable with a negative value, and you'd like to make it a positive value. Here's a simple way: Basically, this approach negates the variable, so you can do the opposite as well: Note that this will not change $a unless you...