Skip to content
Jul 27 / jenni

Filtering weekdays in Excel 2007

I wanted to conditionally format all Mondays in a date range. I found no way to do this with conditional formatting and filters, but at least I found a workaround.

In a column, next to the table I have, I used this formula:

=IF(WEEKDAY(Table1[[#This Row];[Datum]])=2;”Monday”;”Not Monday”)

I copied this formula to the other cells and then I filtered that specific column for Mondays and colored the background of those cells manually. This method does obviously not work so well if you have a lot of data, but formatting a few rows where dates are not changing should at least be quicker than manually going through each date.

You could also use something like this:

=IF(WEEKDAY(A1)=2;”Monday”;”Not Monday”)

The weekdays have the following numbering:

Sunday = 1
Monday = 2
Tuesday = 3
Wednesday = 4
Thursday = 5
Friday = 6
Saturday = 7

Jul 6 / jenni

Tracking memory usage

Lessons learned:

  1. Graphics on the timeline are much heavier SWF resources than SWF files with externalized resources.
  2. Always implement a destroy method for custom classes, to call when the object needs to be removed and made available for garbage collection.
  3. Stage event listeners are bad.
  4. Track your memory usage before deploying a project and shipping it to the customer’s public event.
Jun 21 / jenni

Bilden bredvid texten i Word 2007 (Mac)

1. Börja med att importera bilden via Insert -> Picture -> From file…
2. Om inte formateringspaletten är synlig, klicka på Toolbox-ikonen i menyraden.


3. Klicka på bilden och följande alternativ bör dyka upp i formateringspaletten:


4. Klicka på Wrapping-menyn. Då visas ”Style” där man kan välja hur bilden ska vara placerad. Skillnaden mellan Square och Tight är att om man har exempelvis en transparent GIF så hamnar texten runt konturerna på bilden, istället för att det blir fyrkant runt bilden. Skillnaden är denna:


5. Sedan kan man välja vilken sida av bilden texten ska vara på samt hur stort avståndet till texten ska vara från bilden.


6. Slutligen är det bara att klicka på bilden och dra den dit man vill ha den i dokumentet, exempelvis till höger sida så att det ser ut såhär. Nackdelen med denna layoutform är att om man ändrar i texten så tenderar bilden att hoppa iväg och har man inte oändligt mycket tålamod och har lärt sig knepen för att Word ska funka så kan man bli väldigt frustrerad. Ibland försvinner t.ex. bilden ut i marginalen och det är omöjligt att få tillbaka den på rätt ställe. Knepet är då att markera bilden, ändra till ”In line with text” och sedan börja om från början. Brukar fungera!

Jun 20 / jenni

Commenting ActionScript 3

I found some good input on how to comment ActionScript and how to toggle comments on and off by adding a slash in front of the block comment sign. Read more here.

//*
thisIsCodeIWant.toToggle(onOff);
andMoreCodeHere();
//*/

Uncommented comments:

/*
thisIsCodeIWant.toToggle(onOff);
andMoreCodeHere();
*/
Jun 16 / jenni

Adding a favorite and blinking green light on 3M MPro 150

Finding the manual to 3M’s pocket projector MPro 150 is a bit tricky, so I though I would share some things on my blog, as googling is a lot faster sometimes than actually reading a manual.

How to mark a file as favorite
While browsing the files section of the projector, pressing the left button marked the file with a star, and in the start up view you simply choose the star to view your favorite file.

Blinking green light
Our projector wasn’t starting up properly, despite being plugged in and charged. The indicator kept flashing green. Simply taking out the battery and putting it back in solved the problem.