Tuesday 31 May 2011

Flex4, trace function is not working anymore!


situation

This is known bug! This problem occurred when you exported a “release” previously; thenceforth the trace() messages are not appeared in the console window.
!!! If you are beginner on Flex, read the "attention" at the bottom of this post! !!!
problem

adobe flex4 AS3.0
Flex4, trace function is not working anymore!
----
> page: dn
difficulty level

3/10 :))
compatibility

flex4, as3
solution

Try 1
1. Clean the build: Project -> Clean -> Clean project (select this one specific from the list) -> ok
2. “Debug” the application (pressing the “bug” button); rebuild will be done
3. The problem should be solved! Otherwise try try2.

Try 2
1. Restart the Flex / Flash builder IDE
2. Restart the browser with Adobe Flash Debugger Player
3. Clean the build: Project -> Clean -> Clean project (select this one specific from the list) -> ok
4. “Debug” the application (pressing the “bug” button); rebuild will be done
3. The problem should be solved!
attention

Important note for beginners: You should “debug” the application (pressing the “bug” button) and not “run” the application (pressing the “play” button) to see the trace() messages at the console window. In “run” mode the trace() message are omitted.

excel... if function... with add comparison... how possible could it be??? [research!]


situation

how idiot excel could be??? TOO MUCH… so many years are passed and Microsoft is sleeping! They haven't implement yet a parser to the world's famous application for calculations… excel “shame on you microsoft!!!”
problem

What is the fucken syntax for ADD comparison in IF function of excel
difficulty level

0/10 :| microsoft SUCKS
Compatibility

All f*cken excel versions
solution


The follow formula
=IF(AND(1=1;2=2);"this is true";"this is false")
returns “this is true”

the follow formula
=IF(AND(1=1;2=3);"this is true";"this is false")
returns “this is false”

with similar way use the OR comparison

good luck and don’t forget that microsoft sucks
Attention

microsoft sucks

Monday 30 May 2011

VirtualBox... where are my shared folders?

Easy to do it
Devices -> shared folder -> add something here; you may do it even where the machine is running

On virtual machine... where are my shared folders?
go to \\vboxsvr\

Tuesday 24 May 2011

flex4, how to make an image brighter, i.e. for focus purposes, without modify it


situation

how to make easy(!) modifications in Image components with out modifying their data. The data modification (image modification) requires a lot cpu resources as result low performance.
problem

adobe flex4 AS3.0
how to make an image brighter, i.e. for focus purposes, without modify it

> page: dn
difficulty level

2/10 :)
compatibility

flex4, as3
solution

- drop a Label on the Image component to cover it, clear text property
- on this Label... set as background color the white color
- also set as blendmode the "overlay" value
- also set as backgroundAlpha the value 0.5
- now... on runtime play with "alpha" property of the Label with values 0..400




Tuesday 17 May 2011

Oracle, virtualbox, how to import / insert a vdi file when the New and Add buttons are removed from the Virtual Media manager?


situation

Oracle, please, don’t be Microsoft! It is a shame to remove capabilities from this wonderful software!

The “new” and “add” buttons are removed from the Virtual Media manager from version 4.0.0 because simply they are idiot (I can’t find other logical reason). It is shame to reduce the capabilities of a too powerful application.
problem

Oracle, virtualbox, how to import / insert a vdi file when the New and Add buttons are removed from the Virtual Media manager?
difficulty level

2/10 :)
compatibility

virtual box >= 4.0.0
solution

To add a vdi info your "Virtual Media Manager" do the follow:
- Go at the "Settings" of any virtual machine. If you haven’t any, create a dummy (there is no need to create disk for it).
- Go at the "Storage" section.
- Click of the “ide controller” (or “sata controller”)
- On the same line of the "controller" the two “add” buttons will be appeared, click on “Add hard disk”
- Then click on “choose existing disk”
- Select the vdi file and will be inserted to Virtual Media Manager.
- From this point, you may use this disk in any Virtual machine you want.
attention

The problem occurred in version 4.0.0 - 4.0.6 at least.

Sunday 15 May 2011

visual studio - c# / vb - Label is not transparent

Problem
Setting the Backcolor of the Label component to web -> Transparent, the Label is not transparent at all!

Solution
This is because MS is confused about what is really transparent! Forget the transparent effect between the components!
This Transparent color means that if you set Backgroundimage at the container where hosts the Label component, the Label will be transparent at the image that is loaded in the container.
In practice...
- create a Form
- set a Backgroundimage at the created form, load a jpg file...
- drop a Label compoent
- set the at Label component the property Backcolor to web -> Transparent

Now  you have a transparent Label in the way of Microsoft :(

Tuesday 10 May 2011

Visual Studio - error: System.Security.SecurityException was unhandled (trying to use a referenced DLL)


situation

Visual Studio compiles an application that is using a foreign DLL (a referenced one) but on run time whern the app tries to use the dll occurs the follow error
problem

Visual Studio - error
System.Security.SecurityException was unhandled
  Message="That assembly does not allow partially trusted callers."
difficulty level

1/10 :)
compatibility

VS2008
solution

project -> properties -> security -> check Enable ClickOnce Security Settings -> select This is a full trust application