Yesterday’s post was really helpful. It’s nice to get everything on your mind down onto (virtual) paper. I have made a decision to go wtih Solution B. For those of you who don’t know what Solution B is, I’ll quote it from yesterday’s blog right here:
Solution B. The other solutions is somewhat of a semi-fix. We could simply download 100 images (days) of each of the currently unobtainable wavelengths, and load it directly into the browser. This means that the Sun under these wavelengths will never be updated, and the user can only view a time-lapse of the sun within a permanently fixed interval. After all, the purpose of this project is to create an educational tool, not so much of a research tool. A school teacher does not really need a “live” version of the Sun in order to point out certain features such as solar flares and sun spots to a class. Having a “live” projection of the Sun is a cool, but not terribly essential feature.
We could provide the functioning 5 wavelengths, but also have a separate mode that allows the users to view the other wavelengths that are not “live.” This does have some benefits too. Because the images will be downloaded onto the laptop, these wavelength sets of the Sun can be viewed without access to the internet.
Because we have a limited time to work with, going with solution B is the safest and most reliable option. We are pretty much certain that Solution B will work, whereas Solution A carries great risks. If we pull off Solution B and have some time to spare, we can definitely give Solution A a shot, But if we start with Solution A and get stuck, we might have to scramble to implement Solution B.
Today, Rory and I began the process of downloading 100 images of each wavelength set. While downloading, we rename them to YYYYMMDD_WAVE.jpg.
- YYYY = year (eg 2014)
- MM = month (eg, April = 04)
- DD = day (eg, 01)
- WAVE = wavelength (eg. 0131)
After downloading them, we will create an entirely separate html program called “SuNOfflineMode.” This html will function almost identically to the online version, but it will simply retrieve images directly from folders in the laptop instead of from the web. Coding this shouldn’t be too big of a problem, but since we’re re-coding, I might want to try optimize the process and make it a little more efficient. After examining and tracing the code of the online version, I feel like there are some possible shortcut alternatives. Anything to cut loading times is always welcome.
Speaking of loading times, I might want to add a loading bar to the SuN so that users won’t try to navigate the Sun time-lapse before all images are fully loaded. But again, this is just a “fun” feature and it is not very essential to the project.
On a completely different note, I learned how to grill today! David, Maryam, and I grilled for the barbecue today, and I think we did a pretty good job. We ate whatever we messed up. For example, while transporting the beef patties from the bag to the grill, I may have ripped it a bit and had to eat it later. But it still tasted fantastic; plus, who cares about what it looks like when it all looks the same in your stomach? Also, here’s a pro tip for future grillers: be patient and flip as few times as possible ( preferably just once).
Overall it was a fun experience, and I wouldn’t mind doing it again.