Nov 24 2008

Embedding Fonts within Flash

  1. First to embed a font you must open the Library (ctrl + L) and add the font you would like to embed.
    001
  2. Now Click on Embed002
  3. Choose the characters you would like to embed
    003

  4. Save, Publish and you’re done.

Sep 20 2008

Microsoft Windows Shortcut Keys

Shortcut Keys 3.x 95 98 ME NT 2000 XP Vista Description
Alt + Tab X X X X X X X X Switch between open applications.
Alt + Shift + Tab X X X X X X X X Switch backwards between open applications.
Alt + double-click X X X X X X X Display the properties of the object you double-click on. For example, doing this on a file would display its properties.
Ctrl + Tab X X X X X X X X Switches between program groups or document windows in applications that support this feature.
Ctrl + Shift + Tab X X X X X X X X Same as above but backwards.
Alt + Print Screen X X X X X X X X Create a screen shot only for the program you are currently in.
Ctrl + Alt + Del X X X X X X X X Reboot the computer and/or bring up the Windows task manager.
Ctrl + Esc X X X X X X X X Bring up the Windows Start menu. In Windows 3.x this would bring up the Task Manager.
Alt + Esc   X X X X X X X Switch Between open applications on taskbar.
F1 X X X X X X X X Activates help for current open application.
F2 X X X X X X X X Renames selected Icon.
F3   X X X X X X X Starts find from desktop.
F4   X X X X X X X Opens the drive selection when browsing.
F5   X X X X X X X Refresh Contents.
F10 X X X X X X X X Activates menu bar.
Shift + F10   X X X X X X X Simulates right-click on selected item.
F4   X X X X X X X Select a different location to browse in the Windows Explorer toolbar.
Alt + F4 X X X X X X X X Closes Current open program.
Ctrl + F4 X X X X X X X X Closes Window in Program.
F6   X X X X X X X Move cursor to different Windows Explorer pane.
Ctrl + Space bar X X X X X X X X Drops down the window control menu.
Ctrl + (the ‘+’ key on the keypad)     X X X X X X Automatically adjust the widths of all the columns in Windows explorer
Alt + Enter   X X X X X X X Opens properties window of selected icon or program.
Shift + Del   X X X X X X X Delete programs/files without throwing them into therecycle bin.
Holding Shift X X X X X X X X Boot Safe Mode or by pass system files as the computer is booting.
Holding Shift   X X X X X X X When putting in an audio CD, will prevent CD Player from playing.
Enter X X X X X X X X Activates the highlighted program.
Alt + Down arrow   X X X X X X X Display all available options on drop down menu.
* (on the keypad)   X X X X X X X Expands all folders on the currently selected folder or drive in Windows Explorer.
+ (on the keypad)   X X X X X X X Expands only the currently selected folder in Windows Explorer.
- (on the keypad)   X X X X X X X Collapses the currently selected folder in Windows Explorer.
 Left alt + shift + Print Screen             x  x   Converts your screen to High contrast mode. Try it, it is fun!
Shortcut Keys Description
WINKEY Pressing the Windows key alone will open Start.
WINKEY + F1 Opens the Microsoft Windows help and support center.
WINKEY + F3 Opens the Advanced find window in Microsoft Outlook.
WINKEY + D  Brings the desktop to the top of all other windows.
WINKEY + M Minimizes all windows.
WINKEY + SHIFT + M Undo the minimize done by WINKEY + M and WINKEY + D.
WINKEY + E Open Microsoft Explorer.
WINKEY + Tab Cycle through open programs through the taskbar.
WINKEY + F Display the Windows Search / Find feature.
WINKEY + CTRL + F  Display the search for computers window.
WINKEY + F1 Display the Microsoft Windows help.
WINKEY + R Open the run window.
WINKEY + Pause / Break key  Open the system properties window.
WINKEY + U Open Utility Manager.
WINKEY + L Lock the computer (Windows XP and above only).

Aug 21 2008

Vista and Linux

Well how do you makes these two Operating Systems operate on the same machine, well it is a little tricky and you need at least 2 HDD. This shouldn’t be too difficult.

1. Make sure BIOS can change the boot sequence of drives (if not this trick will not work)

2. Now all you need to do is install Vista on your 1st HDD

3. Reboot and change the BIOS setting to boot to the 2nd HDD

4. Install Linux

Over and done with and now that you have Linux on its separate HDD you can install multiple other Linux distros on that drive since you have Grub or whichever boot loader you have chosen to install. This way Windows has its own HDD it is happy and if you can just change BIOS setting depending on which OS you would like to boot into.

I would like to give a thank you out to John for the inspiration.


Aug 16 2008

BAT file

 

:::::::::::::::::::::::::::::
:: LOOP.BAT
:: Compares Replaceable parameters
@ECHO OFF
:TOP
IF (%1)==() GOTO END
ECHO Value is “%1″ and still running…
SHIFT
GOTO TOP
:END
:::::::::::::::::::::::::::::

:::::::::::::::::::::::::::::
::Make a list of all files(names) in folder1
dir /b “c:\folder1″ >>filelist.txt

::Goes trough every line in filelist
:: %%i contains the filename
for /f %%i in (filelist.txt) do
(
copy “c:\folder2\logo.png” “c:\folder2\%%i”
)
del filelist.txt
:::::::::::::::::::::::::::::


Jul 11 2008

Dual Monitor setup for Linux

Prerequisites

In all likelihood, you are probably using either two PCI graphics cards or one AGP card and one PCI card. Either way, it is quite quick and easy to make a new xorg.conf or XF86Config for your new cards.

First, of course, make sure you are using a recent version of X for best results. I’m using X.org 6.7.0, and I’ve also had this working with XFree86 4.3.x. XFree86 4.2.x should also work, but I wouldn’t recommend anything older than that.

Now backup your existing X configuration – things could go wrong, or you might need it for reference later.

Disable X from starting at boot (rc-update del xdm default), shut down your computer, insert both graphics cards, and boot the computer back up again. The screen that your bios information shows up on is your “primary” monitor. If this is the wrong one, and you are using an AGP and a PCI graphics card, there should be an option in your BIOS that lets you choose which one to use.

  • In AWARD BIOS (v4.51PG), menu: Integrated Peripherals -> Init Display First -> [PCI Slot / AGP]
  • In AMIBIOS (v 08.00.08), menu: PCIPnP -> PCI Bus Scan Order -> [Ascent/Descent]
  • In other BIOSs it’s called: Bios First Boot -> [AGP/PCI]

Configuring X

In most cases, it is simplest to let X do as much auto-configuring as possible.
It can usually detect your graphics cards, at least.

As root run,

Code: X Auto-Configuration
X -configure

This will make your screen blink a few times, before returning with a message saying that it has created a test X configuration file at /root/XF86Config.new or /root/xorg.conf.new and giving the command line to test the X server using this config file.

With a bit of good luck, this should be a working X configuration.
You may have to edit the mouse, monitor, or resolution settings. This is done in the same way as with a single-monitor setup, but there will be two “Monitor” sections, two “Device” sections, and two “Screen” sections.
The “Screen” sections connect a monitor to a graphics card.

It is probably a good idea to change the Identifiers of the device and monitor sections so you can tell them apart, e.g.

File: /etc/X11/xorg.conf or /etc/X11/XF86Config
...
Section "Monitor"
  Identifier   "NECMonitor"
...
Section "Monitor"
  Identifier   "VSMonitor"
...
Section "Device"
  Identifier  "NvidiaCard"
  Driver      "nvidia"
...
Section "Device"
  Identifier  "AtiCard"
  Driver      "ati"
...
Section "Screen"
  Identifier   "LeftScreen"
  Device       "NvidiaCard"
  Monitor      "NecMonitor"
  DefaultDepth 24
...
Section "Screen"
  Identifier   "RightScreen"
  Device       "AtiCard"
  Monitor      "VSMonitor"
  DefaultDepth 24

At the top of the file, there is a section called “ServerLayout”.
This section specifies the layout of your monitors.
In my configuration, I have two monitors beside each-other–”RightScreen” is to the right of “LeftScreen”.

The layout can be specified using keywords or absolute pixel positions (useful for odd layouts, or even overlapping layouts!?)
E.g.

File: /etc/X11/xorg.conf or /etc/X11/XF86Config
Section "ServerLayout"
  Identifier     "XFree86 Configured"
  Screen      0  "LeftScreen" 0 0
  Screen      1  "RightScreen" RightOf "LeftScreen"

“LeftScreen” is located at position 0,0.
I then have “RightScreen” to the right of it.

The useable keywords are “RightOf <identifier>”, “LeftOf <identifier>”, “Above <identifier>”, and “Below <identifier>”.
A special keyword is “Relative” – it is used to specify the position in pixels of a screen in relation to another screen.
E.G.

File: /etc/X11/xorg.conf or /etc/X11/XF86Config
  Screen      0  "LeftScreen" 0 0
  Screen      1  "RightScreen" Relative "LeftScreen" 1024 40

In most cases, the LeftOf and RightOf keywords are what you want.

So, try starting the xserver using your test configuration file again.
Verify that the mouse can move from screen-to-screen in a relatively intuitive manner, and that your resolution and refresh rate is right.
You can then copy your configuration file overtop of your old /etc/X11/XF86Config or /etc/X11/xorg.conf.


Jul 9 2008

Editing Grub boot menu

Editing /boot/grub/menu.lst to change the GRUB boot menu

Here’s a helpful reference. And here’s what I did:

The GRUB boot menu configuration is in the file
/boot/grub/menu.ls

1. backup menu.ls:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst-backup

2. edit menu.ls:
sudo gedit /boot/grub/menu.lst

3. Move the paragraph with the WinXP options up the list.

4. Change default to 1 (was 0)
default 1

5. comment out the lines about “Other operating systems“

So now I have the following options when booting:

  • Microsoft Windows XP Professional
  • Ubuntu, kernel 2.6.17-10-generic
  • Ubuntu, kernel 2.6.17-10-generic (recovery mode)
  • Ubuntu, memtest86+

…and the second option is automatically selected and boots-up after 10 seconds if I don’t do anything.

Here is the contents of the resulting file (showing only the uncommented lines)

default 1

timeout 10

title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
boot


Jul 9 2008

IE6 and IE7 Running on a Single Machine

Many of you have asked how to run IE6 and IE7 in a side by side environment. As Chris Wilson blogged about early this year, it’s unfortunately not so easy to do. There are workarounds, but they are unsupported and don’t necessarily work the same way as IE6 or IE7 would work when installed properly. As Chris said, the best way to use multiple versions of IE on one machine is via virtualization. Microsoft has recently made Virtual PC 2007 a free download; we’ve taken advantage of that by releasing a VPC virtual machine image containing a pre-activated Windows XP SP2, IE6 and the IE7 Readiness Toolkit to help facilitate your testing and development. The image is time bombed and will no longer function after Early September, 2008. We hope to continue to provide these images in the future as a service to web developers.

Now you can install IE7 on your main machine for development, and get all the advantages of IE7, like the RSS platform, native XMLHTTP stack, and improved security, while still running IE6 simultaneously in the VPC on the same computer. Most importantly, you don’t even have to buy an additional Windows license. The VPC image runs in a virtual machine that offers all of the functionality of a full IE6 installation without giving it any access to its host machine’s hard drive, registry, etc. You can make as many modifications as you want to the virtual machine without affecting your host installation at all.

This download page contains four separate VPC images, depending on what you want to test.

  • IE6-XPSP2_VPC.exe contains a Windows XP SP2 with IE6 VHD file
  • IE7-XPSP2_VPC.exe contains a Windows XP SP2 with IE7 VHD file
  • IE8B1-XPSP2_VPC.exe contains a Windows XP SP2 with IE8 Beta 1 VHD file
  • IE7-VIS1.exe+IE7-VIS2.rar+IE7-VIS3.rar contain a Vista Image with IE7 VHD file.

System Requirements for VPC 2007

CPU Speed: An x64-based or an x86-based computer with a 400 MHz or faster (1 GHz recommended) processor with L2 cache

  • Supported Operating Systems: Windows Server 2003 x64 editions; Windows Server 2003, Standard Edition (32-bit x86); Windows Vista 64-bit Editions Service Pack 1; Windows Vista Business; Windows Vista Business 64-bit edition; Windows Vista Enterprise; Windows Vista Enterprise 64-bit edition; Windows Vista Service Pack 1; Windows Vista Ultimate; Windows Vista Ultimate 64-bit edition; Windows XP Service Pack 2; Windows XP Service Pack 3
  • Processor: AMD Athlon/Duron, Intel Celeron, Intel Pentium II, Intel Pentium III, Intel Pentium 4, Intel Core Duo, and Intel Core2 Duo
  • RAM: Add the RAM requirement for the host operating system that you will be using to the requirement for the guest operating system that you will be using. If you will be using multiple guest operating systems simultaneously, total the requirements for all the guest operating systems that you need to run simultaneously.
  • Available disk space: To determine the hard disk space required, add the requirement for each guest operating system that will be installed.

Get more information on Virtual PC 2007
Download Virtual PC 2007
Download the Internet Explorer 6 Testing VPC Image