Wednesday, 3 July 2013

Muting without vibration on stock Android (4.2.2)

Annoyingly when I turn the volume down all the way on my Nexus 4 the phone sets itself to vibrate so it seemed there was no way to make it totally silent.

However, there is a way to achieve this. Simply hold the power button down for a few seconds as if you were powering down the phone. At the bottom of the popup dialog box that appears there are 3 options.

The left option will mute all sounds without vibrating, the middle will vibrate instead of playing sounds and the right will make the phone play sounds as per your volume settings.

Power button popup dialog

So to mute without vibrating simple hit the left option.

You will need to return to this popup dialog to turn off this setting as your normal volume settings are ignored while muted.

Thursday, 7 February 2013

Enabling Developer Options on Nexus 4

I got my Nexus 4 last week and wanted to enable USB debugging for development. After opening the settings I noticed the Development Options tab was missing.

After a bit of searching I found out that you have to enable this option. To do this open the settings page, scroll to the bottom and open the About phone option (This might be called About Device on a tablet). In the About phone section scroll to the Build number property and click it 7 times. You will then become a developer and Development Options will be available in the normal place. There are a few other Easter eggs like this in, but I’ll let you find these.

Friday, 26 August 2011

Dynamically removing QWidgets from a QLayout

I’ve seen some strange things when trying to remove QWidgets from a QLayout while using code such as:

MyWidget->layout()->removeWidget(AnotherWidget);

Sometimes AnotherWidget wouldn’t be removed, sometimes it would display only part of it.

After a bit of searching I came across a different solution that worked a treat. The below code removes all widgets MyWidget’s layout.


while((QLayoutItem *child = MyWidget->layout()->takeAt(0)) != 0)
{
delete child->widget();
delete child;
}

And if you wanted to only remove a single widget from the layout:

while((QLayoutItem *child = MyWidget->layout()->takeAt(0)) != 0)
{
if(child == AnotherWidget)
{
delete child->widget();
delete child;
}
}

Friday, 11 March 2011

Using 3CXPhone with Sipgate

Sipgate’s own software phone doesn’t work on Windows 7 so I had to find an alternative and chose 3CXPhone.

It’s taken a little time to get it to connect to my Sipgate account so here is the configuration I used to get it to work:

3CXPhone Configuration for Sipgate


Account name and Caller ID can be anything you like.

Change “Extension” and “ID” to your Sipgate ID.

You also need to set the STUN server by clicking on “Advanced Settings” from the Configuration window:

3CXPhone Advanced Settings for Sipgate



Tuesday, 12 October 2010

Using the "Key Magic" with One For All remote

I recently purchased a One for All remote (URC-7940 in this case) to use with my DVD player. All was going well until I wanted to program individual keys to some functions that weren’t working.

The user manual that came with the remote boasted that it had a “Key Magic” function that allowed me to do just this, however it neglected to tell me how. After more searching than should have been required I finally found a post on a forum that mentioned how to program a button.

To program a button you must first get a 5 digit function for the device you’re trying to program the remote for. These functions are called EFCs and you can usually find them using a search engine. For instance I found my device's EFCs here.

Anyway the procedure is as follows:

  1. Hold the ‘M’ button (Key Magic) until the red light on the control blinks twice
  2. On the remote press the buttons “994″. The red light should blink twice. 
  3. Press ‘M’ again. The red light will blink once more. You are now in Key Magic mode
  4. Enter your 5 digit code for the function.
  5. Finally press the key you want to assign the function to. The red light will blink twice more to confirm you’re back in normal mode

You should now be able to use the programmed key

Friday, 11 June 2010

Unlocking your Facebook account when it "forgets" your e-mail address

My girlfriend lost access to her Facebook account this week and Facebook kept reporting that her e-mail address wasn't registered. Her profile was still active and looking on the Internet showed unfortunately this has happened to a number of people and any requests of help were ignored by Facebook.

The exact message that Facebook was giving was:
Incorrect email address
The email address you entered does not belong to any account. You may try clearing your browser’s cache and cookies by following these instructions.
You can log in using any email address, username or mobile phone number associated with your account. Make sure that it is typed correctly.
A few people had reported finding a solution in using their username instead of their e-mail address when logging in. You have to set your username up manually and not everyone has done this, including my girlfriend, so this wasn't any help to us. The same goes for phone numbers.

To solve this problem I decided to try to test all of her other e-mail addresses to see if one of those had been made her login e-mail address somehow. Lucky it had and we were back into her account.

I don’t know if this is a bug in Facebook or somehow she changed it without knowing but she now has the account back. One thing that may be the cause was that she no longer had access to the e-mail address in question so it’s possible Facebook discovered this and in their wisdom deleted it from her account without saying so.

If you do get back into your account then I suggest changing your password just on the off chance that a hacker got into the account to cause the original e-mail address to be lost.

Wednesday, 12 May 2010

Installing KDevelop in Kubuntu/Ubuntu 10.04

After upgrading to Kubuntu 10.04 I was disappointed to find that KDevelop wasn't listed in the default repositories as apparently it wasn’t ready in time for the release. From what I've read there’s not much chance of it being added to the repository any time soon either so I decided to find another way to install it.

Luckily installing it isn't too difficult (no need to install from source) as it is available from the Kubuntu Backports PPA.

To add the PPA to your repository simply use the command:
sudo add-apt-repository ppa:kubuntu-ppa/backports
You can now update your repository and install KDevelop as normal:
sudo apt-get update
sudo apt-get install kdevelop