Search This Blog

Monday, March 28, 2011

The problem is that DataGrid is bound to the ArrayList and in most cases this ArrayList is stored locally, so just calling invalidateList() on DataGrid is not enough. I had my DataGrid bound to a MySQL data table and that’s how I succeeded:

getRunningTestsResult() is my function in bounded service in PHP that downloads running tests. I had to “update” the array (i.e. fill it with data once more). Then I used invalidateList() that moved data from the Array to DataGrid.

You can you a [Bindable] Array to make changes “in real time”. So this is a half-solution.

Note:

I used FlexGlobals.topLevelApplication just because I updated DataGrid from ItemRunderer. If you do this locally there is no need to use global vars.

Thursday, March 17, 2011

When you see the grub splash boot menu press ‘c’ or ‘control-c’ to enter command prompt.

To successfully boot the system when something fails do the following:

grub> root(to see what partition is to be booted)

grub> set root=(hd0,0)(to set the root partition)

grub> kernel /vmlinuz root=/dev/sda1 ro Single(or whatever other options you’d like at the end – these are passed as arguments to the kernel)(you can use ‘linux’ command alternatively if there is no kernel command)

Wednesday, March 16, 2011

If you don’t have any specific settings and you just want to “copy” your linux working environment like running services and so on you can install a machine with identical packages installed by exporting the list of packages and importing it on another machine.

There’re new security rules applied in Flash Builder 4. Everything works fine when you debug your application from localhost. However if you try to access your page from remote host you’ll come across an error: “Security error accessing url”. To resolve the situation you’ll have to create a file named: crossdomain.xml at the root of your domain. Sample crossdomain.xml can be found here.

That’s not all. If you want to access the site from remote hosts, just export the project from FlashBuilder! (Project->Export release build). In debug releases Flash forces browser to download crossdomain.xml from “localhost”. In release builds crossdomain.xml will be downloaded from the server.

Tuesday, March 8, 2011

If you use Firefox for Flex development, you may have had problems with a SWF caching problem. Even though a Flex compile updates the SWF file on the file system, Firefox doesn’t pull the new SWF from the server, but rather uses its internal already cached SWF file. This can cause headaches when trying to guess why the code change doesn’t appear in the browser. To solution has been to clear the cache in Firefox and reload the page. I turned my browser cache size limit down to 0MB. This doesn’t seem to fix the problem either. There is another setting that can’t be found in the Firefox interface.

Open a new tab in Firefox.

Type about:config in the url.

Agree to the warning.

Change the property browser.cache.disk.enable and set it to false.

Thus far this solution seems to keep my SWF file from being cached by Firefox.

The game was developed to present Alfa-Beta algorithm. It's goal is to reach opponent's last (nearest to him) row. Breakthrough is similar to checkers. You beat pieces crosswise (aslant) if you're near opponent's piece. After knocking other player's piece you place your piece in the same place. You cannot beat pieces in backward "backward" direction (i.e. you cannot go back).

What we want to do is to install VNC Server (which is about 45MB) without install the whole gnome environment. Such a vnc server can be started at boot time and serve as a XFCE or Fluxbox desktop with single user.

This error is caused by having kernel module kvm and VirtualBox at the same time. KVM is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).http://www.linux-kvm.org/page/Main_Page

To remove kvm module enter:

sudo modprobe -r kvm-intel sudo modprobe -r kvm-amd

remove kvm from modules that are loaded at boot time. These are stored in file: