Jills blog - of technology and everyday life

2010

I have been thinking about this for a while now: I really need to update my blog!
2010 - a new year, lots of new possibilities and exciting technology to learn and play with.
I have been really busy lately at work, the last month I have been learning iPhone development while developing an iPhone application. It means working in a complete new environment and platform, learning Objective C, working on a Mac. Lots of fun, and some challenges ;) So this is a jump in a new direction. Last year I have worked most of the time as part of a distributed scrum team across different countries, developing a completely new intranet solution on the Sharepoint platform - for 17 000 users! I have also done some prototyping projects, working with asp.net, Silverlight and FAST search. And some work related to Flash and Flex as well. We have recently got a Microsoft Surface table in our office, unfortunately this year has been to busy due to the iPhone project that I have not had time to play with it yet.. :)

But 2010 is also going to be a good year, because of the next versions of SharePoint and Visual Studio! I would love to work with those products. I’m going to a seminar on monday and looking forward to hear Sahil Malik talk about SP 2010!

2010 also means.. I will update my blog more often? More to come..

Javscript cross domain security problem

I have a page with a popup containing a div with an iframe with a page inside. From this page inside the iframe  I have a button that I just want to call a closing popup script on the parent window. But I get a pemission denied error. What I didn’t think of, was that the parent window and the iframe page is located on different sub domains of the domain, but still on the same server. So this operation is not allowed beacuse of cross-domain security restriction of javascript. This is reasonable behaviour because we don’t want anyone outside our domain that we don’t trust to access our scripts.  But in this case we want the two sub domains to communicate: sub2.mydomain.com want to call a script on sub1.mydomain.com.  So a solution to this was adding this script to the masterpage and the page inside the iframe:

<script type="text/javascript">
  document.domain="mydomain.com";
</script>

But be aware of this: you have to set the security domain on all pages on both domains! For a page on sub1.mydomain.com the default domain is
sub1.mydomain.com, and it has not automatically access to mydomain.com.

Hobbies and interior

Her er noen av mine hobbyprosjekter som inneholder verken data eller programmering! Jeg har akkurat lært meg å hekle bestemorruter etter og ha funnet disse videoene på på nett. Ikke så vanskelig i det hele tatt, men håper produksjonen går litt fortere etterhvert. Tviler kanskje på at det blir et teppe.. er vel litt mye jobb. Men artig å holde på med. Jeg har også noen syprosjekter på gang, og er helt frelst etter stoff og stæsj, for eksempel fra denne nettsida: Etsy, en slags ebay for håndarbeid. Mye fint! Og ellers syns jeg det er gøy med interiør og av og til tar kreativiteten overhånd :)

p1000529

Ikea kommode som er malt og dekorert

De to første forsøk på bestemorlapper

De to første forsøk på bestemorlapper

p1000538

Her er det orden i sysakene

Symaskinen min, en Singer. Her blir det nok flere prosjekter utover høsten.

Symaskinen er klar for nye prosjekter

p1000531

Egen dekorasjon av ikea papp arkivholdere

p1000546

Nødvendig utstyr, garn i fine farger og litt hjelp :)

Web development with Aptana

I have been working a lot with html, css and javascript lately and I was looking for a good IDE for web development, and I found Aptana Studio. Its a stanadalone program but since it’s based on Eclipse so you can also plug it into Eclipse or other Eclipse-based IDEs, and it is free and opensource. It has JavaScript code completion and debugging, HTML/CSS/JavaScript code assist, and added in support for all the leading Ajax libraries (Adobe Spry, Prototype, MochiKit, YUI, Mootools, Dojo Toolkit, JQuery, Scriptaculous) as well as a JSON (JavaScript Object Notation) Editor. You can also use a number of Aptana plugins which offer tools for developing with Ruby on Rails, PHP, Adobe AIR, and Apple iPhone. There is also a pro version form $99 that adds even more features to it.

So often when working with javascript you got those ugly script errors in the browsers, but now you can get real error messages that actually tells you what’s wrong, and you have the possibility to add breakpoints and trace the scripts when running in debugging mode, that’s nice! There are also nice samples included in Aptana Studio where you can test out examples with different Ajax libraries and so on. Also I have tested Iphone development with Aptana, and it works great! It is almost to easy to set up an Iphone web application, you just create a new Iphone project, and the framework is set up ready to start developing with the basic files in place. And you can run it in debugging mode in the emulator or directly on your Iphone using the built in internal server, and immediately you get a preview of your application. There are many more IDEs for web development out there, both opensource and paid for, but I have found something I like so I’m happy developing. And this application is not only for Windows but also for Mac and Linux.

 Page 1 of 5  1  2  3  4  5 »