Qt is great, but if you're just getting started playing around with the framework in Windows, you may have come across this ridiculous problem:
1) You make a 'Hello World' which works
2) You copy the project, or rename/move it
3) 'Hello World' no longer works with LNK1181 error
This seems like one of the dumbest things ever, and it is related to an option in the project's Build Settings (click on the Projects tool button with the green wrench) called Shadow build:
This seems like quite a useful option for advanced users, but having it set as the default is crazy... I've wasted a couple hours with it and still can't figure out what I'm supposed to do to make it work when I've made a copy of the original project (probably when the project is first created, some entry is made somewhere to add the new 'shadow' location to the environment when the compiler is called... but I don't give a %&@$, I am just trying to make a basic little forms app). So just disable it, and the build directory will be the same as the project directory, and it should compile fine.
Hope this helps someone out there, and maybe Qt will rethink having this as the default setting.
Z
Sunday, December 11, 2016
Wednesday, May 14, 2014
Strum-strum 1.1 Released
Strum-strum 1.1 is now in the App Store. Slow strumming has been improved significantly, and an issue with playback lag in the Chord Editor has been fixed.
Happy strumming!
Happy strumming!
Sunday, April 27, 2014
Strum-strum Virtual Guitar App in App Store
I have just released my first iOS app, Strum-strum, in the App Store. Strum-strum is a virtual guitar that allows you to program any chords you like, organize them into groups and play lightning-fast rhythms on your mobile device. Additionally, you can play the strings individually (finger-style) or do slow strums by swiping up and down over the fretboard. Here is the description as seen at the App Store:
Strum-strum is compatible with all iPhone, iPad, and iPod Touch devices running iOS 7.0 and higher.
You can view a quick demonstration video here: Strum-strum demo
The website for Strum-strum is located here: http://zachwestfall.com/strum-strum
This app is free, so check it out!
The world's fastest guitar app! Whether you are an experienced performer/songwriter or a complete beginner, Strum-strum has everything you need to play along with your favorite songs, compose new ones, or just have fun.
Features:
- Real guitar sounds
- Chord library containing standard chords
- Intuitive chord editor for creating, modifying and saving any chord
- Group editor for creating and saving custom chord groups
- Alternate, user definable tunings
- Low latency chord and single string playing; Strum-strum is as quick as you are
- Supports high-speed flamenco techniques
Strum-strum is compatible with all iPhone, iPad, and iPod Touch devices running iOS 7.0 and higher.
You can view a quick demonstration video here: Strum-strum demo
The website for Strum-strum is located here: http://zachwestfall.com/strum-strum
This app is free, so check it out!
Saturday, January 19, 2013
Commuting by bike
Since I already spend 8-9 hours every day stuck motionless in my computer chair, the last thing I ever want to do before and after work is sit in my car, strapped into a similar chair and stuck in traffic. Such a lifestyle is frustrating and terrible for your mental and physical health.
I discovered the many benefits of bicycle commuting a few years back, and I am now doing it every day (with the odd exception on days when I am feeling lazy, there is a wind storm or I need the car for errands).
In brief, it is friggin' awesome. It's that feeling of being a kid again, every single day.
I picked up a GoPro Hero 3 recently and decided to record my work commute. I thought it turned out quite well for a first attempt, so here it is:
I hope this will inspire someone out there to try biking to work for the first time. You'll be hooked in no time!
I discovered the many benefits of bicycle commuting a few years back, and I am now doing it every day (with the odd exception on days when I am feeling lazy, there is a wind storm or I need the car for errands).
In brief, it is friggin' awesome. It's that feeling of being a kid again, every single day.
I picked up a GoPro Hero 3 recently and decided to record my work commute. I thought it turned out quite well for a first attempt, so here it is:
I hope this will inspire someone out there to try biking to work for the first time. You'll be hooked in no time!
Sunday, September 18, 2011
Authentication methods are not supported by server - bug in Android 3.2 email client
I recently picked up an Asus Eee Pad Transformer which I am having some fun with. I was stuck last night, however, on an annoying Honeycomb glitch which prevented me from setting up my email. After entering the outgoing settings, the setup would refuse to finish, giving the error message described above. The solution is simple: before unticking the checkbox about requiring authentication, you need to clear the username and password fields that have been automatically filled in for you. THEN untick the checkbox and continue. That's it!
Friday, April 22, 2011
How to clean hidden sectors on your hard drive
WARNING: If you have not backed up all your important data somewhere else, stop right here. I will not be held responsible for lost software licenses, precious pictures of your late dog Fluffy, etc. Do the following at your own risk!
I strongly recommend creating a backup file of your hidden sectors before cleaning. See this post for instructions.
When you install certain software products (cough cough Autodesk), secret entries are made on a hidden sector of the computer’s hard drive. These entries are looked for when you attempt to install the software again and are not removed even if your reformat the drive or install a fresh image of your operating system.
To remove these “permanent” records, you need to use a low-level disk utility to zero out the affected sectors. Fortunately, this can be done quite easily using a Linux rescue disk. The following example uses Ubuntu Rescue Remix 10.10:
- Insert the rescue disk and reboot the computer. At the “boot” prompt, press Enter and wait for Linux to start (~ 1 minute).
- At the command prompt, type the following command:
sudo fdisk -l
(Note: the character at the end is the letter ’l’, as in “lettuce”)
You should see a list of connected drives and their partition information. Find the name of the drive you need to fix (looking at the drives’ capacities should give you a good hint). The drive name will be something like /dev/sda, or /dev/sdb etc.
- Now we will zero out some of the sectors on that drive where sneaky programs could be hiding data.
CAUTION: Be very careful with the dd command! One small typo or omission can render the entire drive unreadable! (dd has the nickname “disk destroyer” for a reason)
Type the following command, replacing “/dev/sdx” with the actual drive name:
sudo dd if=/dev/zero of=/dev/sdx seek=32 bs=512 count=30
This zeroes out 30 sectors, starting at sector 32, and leaves the last hidden sector (62) alone. The reason for this is that Norton Ghost hides its license information in sector 62, and zeroing it will cause problems for you if you use that product.
If you want to zero out all hidden sectors except the Master Boot Record, use the
following:
sudo dd if=/dev/zero of=/dev/sdx seek=1 bs=512 count=62
Whatever you choose to do, make sure 'seek' is at least 1, and that 'seek' plus 'count' is no more than 63! Also, don't forget to replace "/dev/sdx" with the actual drive name.
NOTE: Linux bootloaders, like GRUB and LILO, also write code to these hidden sectors. If you use Linux on this hard drive, you may be destroying information needed to boot the operating system.
ALSO NOTE: These examples assume the hard drive has 512-byte sectors. Next generation hard drives may have 4096-byte sectors, in which case you will need to update the “bs=512” parameter accordingly.
- Reboot the machine (sudo reboot) and proceed to do whatever it was you were doing.
Useful Links:
Ubuntu Rescue Remix: http://ubuntu-rescue-remix.org/
Backing up and restoring a hard drive’s hidden sectors
A computer hard drive typically contains 63 hidden sectors at the very beginning, the first sector containing the master boot record (MBR) and the remaining sectors being potentially used for a variety of purposes. Linux boot code (GRUB/LILO) may go here, and some Windows programs will sneakily write data to these hidden sectors to hide license information and to prevent abuse of time-limited trial versions. Before messing around with the contents of these sectors, it is recommended to back them up to a file so that you can restore them if things don't work out quite as planned.
Tools you will need:
- A Linux rescue CD (I will use Ubuntu Rescue Remix 10.10 for this example)
- A USB drive
How to back up the hidden sectors
- With the USB drive plugged in, insert the rescue CD and reboot your computer.
- At the command prompt, find the name of the drive whose sectors you will be backing up. Type the command:
sudo fdisk -l
(Note: the character at the end is the letter ’l’, as in “lettuce”)
You will see a list of connected drives. Find the name of the drive (looking at the drive capacity should give you a hint). The drive name will be something like /dev/sdx. Also take note of the name of your USB drive and its main partition number.
- Mount the USB drive so you can work with it. Type the following commands:
sudo mkdir /mnt/USBDrive
sudo mount /dev/<USB Drive Partition> /mnt/USBDrive
where <USB Drive Partition> is the USB drive’s main partition, eg. /dev/sdb1.
- Now we will save the contents of those hidden sectors to a file on the USB drive:
sudo dd if=<Drive Name> of=/mnt/USBDrive/first63sectors.bak bs=512 count=63
where <Drive Name> is the name of the hard drive, eg. /dev/sda. Note that there is no partition number at the end of the drive name; we are copying from the beginning of the drive itself!
- Reboot the computer:
sudo reboot
If you like, you can now inspect the file you created with a Hex Editor (XVI32 for Windows is a good one) to see what mysterious entries might exist after the MBR.
How to restore the hidden sectors
- Start by following steps 1, 2 and 3 in the previous example.
- Now we will restore the backup that you previously made:
sudo dd if=/mnt/USBDrive/first63sectors.bak of=<Drive Name> bs=512 count=63
where <Drive Name> is the name of the hard drive, eg. /dev/sda.
Everything should now be back to where it was before you started messing with it
NOTE: These examples assume the hard drive has 512-byte sectors. Newer hard drives (1 TB+) may have 4096-byte sectors, in which case you may need to update the “bs=512” parameter accordingly.
Subscribe to:
Posts (Atom)