Chauffage iPad version

I started working on the iPad-version. It turns out to be much more work than I initially thought it would be. My detail view is quite complicated and requires a lot of dedicated TableCellViews. If I want to support landscape, I even need to double those. As many CellViews have TextFields in them, the delegate TextField method obtained a rather complex switch-statement (as some other methods as well).

Some issues that I encountered:


Categories: Computing
PermaLink Comments

Chauffage app

I started working on my first real app, called Chauffage. This app should help us with our billing. It helps calculating the heating cost of our gites. This app should be fairly straightforward and involves Core Data and TableViews. I need to input various types of data (string, integers, floats, dates and a pick list). So it gives me a chance to dive a bit deeper into things. It should however be ready in a few days.

However I did come across a few issues and errors of mine that took more than average time to solve:

I am about to wrap this phase up. The app is working. Now I can deploy privately and do some testing in practice.

 


Categories: Computing
PermaLink Comments

CS193p wrapping up

I am putting the last touches to assignment 6. There are only a few courses left, so it is slowly time to wrap things up. I started looking at these other courses.


Categories: Computingcs193p
PermaLink Comments

CS193p Assignment 6

Again I record my progress on this assignment in this post. For this assignment one has to watch several courses. These are basically courses after lecture 11 (Core Location / MapKit):

The assignment 6 application is taking shape. I created a new branch to do this work in.


Categories: Computingcs193p
PermaLink Comments

CS193p Assignment 5

After watching lecture 11 and 12, I started working on this assignment. The lecture on version control is also useful, although I had already found out most things.

Seems that I am ready to move onto the next assignment.


Categories: Computingcs193p
PermaLink Comments

CS193p Github

I created a github account to store my cs193p assignment results.

My first repository Calculator is to the store all the work on the calculator. This covers assignment 1 to 3.

I intend to commit all small changes to the application closely following the parts of the assignment and documenting the hints from the assignment and the courses. Unfortunately I have to redo my assignements again to create the required commits.

 


Categories: Computingcs193p
PermaLink Comments

CS193p Delegation concepts

Delegation is a rather difficult concept to understand. In order to get a better idea what it is I made a drawing.

Delegation

Suppose we have three object: a square, a circle and a pentagram. The square has four white holes in itself (an oval, a 4-pointer star (not quite white), a 5-pointed star and a hexagram). It announces to the world that another object can fill these holes (the lines protruding the square). In fact it needs two other objects: one for the blue holes and one for the red holes.

The circle object announces that it will help the square object with its blue holes. And the pentagram object says it will help with the red holes. Thus the circle object fills the blue oval hole of the square object. And the pentagram object fills the red pentagram hole and the 5-pointed star hole of the square object. The four pointed star has not been filled as it was optional (not quite white).

With this it is possible to explain the various delegation concepts:

These leads to the five steps defined in course 7(?). Two steps are definition and three steps are adoption:

  1. Protocol - define the methods for a protocol;
  2. Delegator - define who needs to delegator a protocol;
  3. Adoption - a class (delegatee) should declare it adopts a certain protocol;
  4. Implementation - the delegatee should implement the methods required in the protocol by the delegator;
  5. delegator properties - the delegator properties that point to its delegatees should be set;

Categories: Computingcs193p
PermaLink Comments

CS193p Assignment 4

I started working on Assignment 4 of the CS193 fall 2011 course.

 


Categories: Computingcs193p
PermaLink Comments

CS193p Post Assignment 3 thoughts

I finished assignment 3 now, apart from the content scaling thing.

In course 9 the TableViewController was introduced. I added the instructions as given during the course. It all worked like a charm. I did however a few things a bit different: all buttons were added to the toolbar in the iPad storyboard.

Paul Hegarty was not able to all the relevant things in the course, so extra code was posted on the website. I folded all the posted code into my code. I used a slightly different approach to the iPhone storyboard: I added a toolbar at the bottom of the GraphView and put the formula, switch and add to favorites in there.

I am however left with one problem: the swipe gesture does not work. I still have to find a way to debug this. At the moment I am lost. It seems that the swipe-gesture is not recognized.

 


Categories: Computingcs193p
PermaLink Comments

CS193p fall 2011 resources

This post gathers interesting resources I found for the fall 2011 course.

The official material can be found on the course website at Stanford and on iTunesU. These lectures are based on Xcode 4 and iOS 5, so the older solutions are no longer applicable. There can be some help found in a corresponding Google Group.

There are multiple people that I are following the course:

I found various solutions on the web, which work as inspiration. You can find my solutions on Github.

Assignment 1 (Simple Calculator)

Assignment 2 (Programmable Calculator):

Assignment 3 (Graphing Calculator):

 


Categories: Computingcs193p
PermaLink Comments

CS193p Assignment 2 thoughts

In this post I gather some thoughts on the assignment 2:


Categories: Computingcs193p
PermaLink Comments

IOS programming

And again I started learning IOS-programming. The last time I did finish the book by LaMarche for beginners. However I did not feel confident enough to work on my own. I started with the CS193p course that was then available, but got bogged down in mismatching courses and materials.

So a new year seem to be a good start to begin. I found out that in the mean time Xcode was heavily changed and IOS moved to version 5. This implied that I really had to start from the beginning. I am now up to course 7 and finished assignment 2.

 


Categories: Computingcs193p
PermaLink Comments

Bundle time

It seems that it is the time of the year for all sorts of bundles.

The bundle of Productive Macs looks at productivity apps, such as Fantasical, BusyCal, Home Inventory, NotBook, Folder X, LaunchBar, Cashculator and Tags. They offer also some prize. Anyway the bundle is not for me, I have already enough related apps. I like the prizes though, such as Hype.

The MacUpdate bundle seems more interesting with TechTool Pro, IconBox, TotalFinder, Postbox 3, FontPack pro Master, Labels&Adresses;, Mac DVDRipper Pro 3, Back in Focus, NeverWinter Nights, Hear, iClip 5 and FolderSynchronizer. I like TechTool as I have not really something comparable. TotalFinder looks interesting. A DVDRipper useful (Handbrake?). Back in Focus and iClip (have an old version).


Categories: Computing
PermaLink

Effect of eccentricity

SPH10003247

Simultaneous fitting two transits of an eclipsing binary is not evident. It is not allways clear how the various parameters interact. For SPH10003247 I used this approach:

Thus my current model does not work to explain these observations. I need to have other parameters that I can tune. There seems to be one assumption to many in my model.

This eclipsing binary has an eccenctric orbit as can be seen from the centers of the transits (0.0985 and 0.7561). Thus my assumption of a circular orbit does not hold. There might be a difference in apparent radii due to the orbit. A change from 0.95 to 0.77 is then needed, to explain the observations.

The difference in transit timings reveals at least a minimal eccentricity of 0.25, which corresponds to a relative distance variation between the two stars of 1.6. This might thus explain why my circular orbit does not work. So I need to refine my model to incorporate eccentricity. (Literature used Russell (1912) and Sterne (1939).


Categories: Science
PermaLink Comments

Tatooine star analysis

This a very interesting object: a double star with a planet circling around it. The excellent analysis of the previous posters seems to be the best solution. I wondered however if I would be able to expand on that by adding some numbers. Unfortunately most of the published formulae do not work here, as they all assume that the occulted star is stationary, which is certainly not the case here. So I had to invent some stuff to get to an extended explanation.

SPH21491066

The first step involves the double star. As the transits have equal depth and are close to 50%, so both stars are assumed to be equal in size and the orbital plane (circular) has an inclination angle of 90 degrees. Thus we see the orbit edge on. The orbital period can be determined from two transits (i and i+1 - the two green transits) and is 2.976 days. Normally the width of a transitcan be used to calculate the half-major axis of the orbit. However formula 3 of Seager&Mallen;-Ornelas (2002) assumes however that the occulted star does not move, which it does in this case. Thus the observed width (0.13 days) must be doubled to get the correct one. From this the hal-major axis can be determined as 11.3 stellar radii.

To determine the movement of the planet, better timings of the transits are needed. In order to make the three extra transits more clear I subtracted the LC of the double star. This was done by shifting and overlaying an adjacent LC and then subtracting the two. The blue and green lines show where the transits were. The dots shows the results of the subtraction. And you as well that the subtraction did not succeed 100%.

Then these three transits were fitted to determine the transit times. The dermined values, such as the width (T) and impact parameter (b) have not much significance, as the formulae assume a static object. Using the start of the ingress of the first transit (day 55023.31) and the end of the egress of the third transit (day 55024.94), we can determined the speed of the planet. The model of the double star indicates where the stars are and by putting the planet next to the star, we set the position of the planet. I used the configuration indicated by @kianjin in his last animation as starting point.

This resulted in the following animation, which confirms @kianjin’s results. The first transit happens just as star 1 is turning prograde. The planet starts the transit and then star 1 speeds up and moves out under the planet. Transit 2 is when the planet passes in front of star 2. Star 2 is then retrograde, which results in a small transit width. Transit 3 happens when star 2 is retrograde.

Interestingly in the animation a fourth transit happens, when the planet transits star 2 again. This fourth transit really isn’t in the data. I checked whether there isn’t any small grazing one. It turns out that this transit only occurs due to the position of the viewer in this 3D-animation. I am not able to undo this perspective (yet) and hence the animation does not allow to read the transit times.

I have a 2D-animation as well, which allows me to put the observer at infinity. In this animation the blue line represents the planet and viewing direction. I can not determine the distance of the planet, as we have no period as yet.

To be continued…

 


Categories: Science
PermaLink Comments

Page 1 of 39 pages  1 2 3 >  Dernier »