Sunday, September 26, 2010
C++ -> Flash
Monday, September 6, 2010
OpenGL and GLUT on Mac
Before I continue, go into terminal and type in:
"man make"
"man g++"
"man manuals are not found you NEED to upgrade Xcode! (I have no idea how you got MacPorts to work if you have not done this already)
Xcode is about 2.5gB, so it will take a while. But the upgrade is really nice (at least in my opinion). But it is needed for MacPorts.
Next, I will go over all the wrong steps.
MacPorts is a really nice tool, but you will NOT need it to install OpenGL and GLUT. It uses the "port" command from Terminal. Such as: "sudo port install cmake", which installs cmake. I tried installing glut though MacPorts, but it did not help. So I tried installing it manually from a zip file. Which include files are located (from what I currently know of) in two spots on the computer: "/opt/local/include/" and "/usr/local/include". I dragged and dropped some files in there (as well as some "Allegro" files, which is another library. I will be going over "Allegro" for a little bit in here since it also messed me up. I copied .../Allegro5/* into the include folders, but I really needed to copy .../* of the zip into the folder (leaving the Allegro5 folder intact though the copy). This left conflicting packages (ie. Memory.h!). Allegro needed to install something in "/Allegro5/platform/". (try to compile with #include
So what should you do?
NOTHING! Thats right, nothing! It is ALREADY INSTALLED ON MACS!!! Lucky you!
But to use it the right way you need to:
Use the right includes:
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
Terminal users:
g++ main.cpp -o main -framework GLUT -framework OpenGL
gcc main.c -o main -framework GLUT -framework OpenGL
make is the same way
Xcode users:
Right click project in the "Groups & Files" bar (left side)
Add
Existing Frameworks...
Select Glut and OpenGl
You should see them added with your project
Thursday, August 12, 2010
My conflicting dpkg install of g++
Copy everything below and paste it into the terminal. It will auto run when you paste it.
How to extract it & copy it over: (please change the stuff in red)
cd ~/Documents/folder/to/app/
cp Geo.ipa Geo.zip || exit
unzip Geo.zip
cd Payload
rm Geo.zip
scp -r Geo.app root@192.168.1.999:/Applications||rm -rf "Payload" &&exit
rm -rf Payload
ssh root@192.168.1.999 || exit && exit
cd /Applications
cd Geo.app/ || echo "ERROR D" && exit
chmod +x Geo
echo "done!"
exit
exit
<- end highlight right here, then copy
It will prompt for the password two times.
And there we go! Go to the home screen and it should be there. If it isn't look though all your pages. Tf it still is not there, open up an app, use the app for about a minute and close it. If it still isn't there, restart you iPhone.
Wednesday, May 12, 2010
300: Revised Abstract
Laurens Requirement
My research examined the application and benefits of using Solar Power vs. Wind Power as alternative energy. I found that we need to reform our ways of obtaining energy from the carbon emitting producers and replace the process with clean, renewable, options. Without these new options we would soon face the doom of filling our atmosphere with concentrated carbon dioxide. The problem is in finding which option is best in a given situation. My method in analyzing the problem was to explore individual requirement in each case, understanding what it needs, what can be done, when it can be used, etc. By learning which option is best to use, we may develop a more efficient result and a cleaner environment. Unfortunately, there is no clean cut answer to each problem as there are variables to consider, such as reliant climate, sun and wind, environmental protection, and costs. For example, wind generated energy requires a lot of wind. Solar generated energy requires a lot of sun. Placing these options in regions not suited to the particular environment does not make environmental sense.
Some possibilities are being explored now with varying results. Solar generated street signs have been proven too unreliable due to the cost of each solar panel and the unreliability of weather patterns. According to “Solar Powered Signals: Myth or Marvel?” by Coetzee, theft of solar panels was one of the biggest cons for using solar generated street lights. However, there are some good possibilities, such as a US and China solar project to develop the biggest solar farm set for completion in 2019 in the Mongolian Desert with a total of 11,950 megawatts of power. The same US company is also developing three more solar farms, one the Mohave Desert totaling up to be 1,100 megawatts of power.
Friday, May 7, 2010
Revised Abstract: The Future of Renewable Power
Some possibilities are being explored now with varying results, wind generated power used in residential zones has been unacceptable due to audible noise caused by the spinning turbine generators. Solar generated street signs have been proven too unreliable due to the cost of each solar panel and the unreliability of weather patterns. According to “Solar Powered Signals: Myth or Marvel?” by Coetzee1, theft of solar panels was one of the biggest cons for using solar generated street lights. However, there are some good possibilities, such as a US and China solar project to develop the biggest solar farm set for completion in 2019 in the Mongolian desert of China2. This project will supply power to three million Chinese homes when fully completed with a total of 11,950 megawatts of power. The same us company is also developing three more solar farms, one the Mohave Desert, California totaling up to be 1,100 megawatts of power3.
As these solar and wind options become cheaper and more available, we can count on seeing them competing with other non-renewable options in the future to help relieve our demand for energy.
1)Coetzee, Jan, Willem Louw, and Peter Bullock. "SOLAR POWERED TRAFFIC SIGNALS: MYTH OR MARVEL?." digital research repository of the University of Pretoria. Document Transformation Technologies cc, 11 July 2008. Web. 9 Apr. 2010.
2)Woody, Todd. "China and U.S. Company Plan a Big Solar Project - NYTimes.com." The New York Times - Breaking News, World News & Multimedia. N.p., 8 Sept. 2009. Web. 6 May 2010.
3)Woody, Todd. "A Boost for Photovoltaics in California Deal - Green Blog - NYTimes.com." Energy and Environment - Green Blog - NYTimes.com. N.p., 18 Aug. 2009. Web. 7 May 2010.
Tuesday, May 4, 2010
Abstract+
THIS IS OLD, A REVISED ESSAY CAN BE SEEN ABOVE!
The whole reason for my paper was to examine the results and uses of Solar Power vs. Wind Power energy solutions for alternative energy solutions. The paper also illustrates that we need to reform our process of obtaining energy from our carbon emitting plants to clean and renewable options, without these new options we would soon face the doom of overpopulating carbon dioxide in the atmosphere. The problem is finding which options are best in the given situations. My Approach to solving that problem was stating the requirements for each what it needs, what has to be done, when to use it, and so on. By learning which options are best to use, we may develop a more efficient environment. Unfortunately, there is no clear cut answer to this question as each need very reliant climate and weather to be able to produce energy. Wind generated energy needs a lot of wind, Solar generated energy needs a lot of sun. Placing them in regions that do not suit the environment does not economical sense. Unfortunately wind generated power cannot be produced in residential zones due to its audible noise from the generators turbine spinning to produce power.
Further through the paper I discuss the possibilities of using solar power. Unfortunately solar generated street signs is too unrealistic with the cost of each solar panel and the reliability of the different weather patterns. Theft of solar panels was one of the biggest cons from using solar panels to generate electricity for street lights and street signs. Although that idea does not work, using solar panels to cool medicine such as vaccines is a viable option for developing countries such as Africa where electricity grids are not always readily available in the area treatments need to be performed in.
"Solar Energy is also being looked into providing energy for developing regions where energy grids are hard to come by or economically or physically unfeasible."
Monday, May 3, 2010
Smoothy recipie
1 container of organic raspberry yogurt
1 banana
1 cup strawberries
1/4 cup blueberries
1.5 ~ 2 kiwi's
1 cup lemonade
(you can add a squirt of lime if needed for extra tangy)
ice, 1/2 to 1 cup, amount depends on the potency and consistency you desire
Courtesy of Lauren Neighbors, my sister