Learning iOS part 1: Using Delegates in Swift for E-mailing

After working in Android for a while, I am taking the plunge into Swift. Learning the ropes has been fairly easy, except for there are a few differences you must be careful on. This reminds me of learning Portuguese after learning Spanish. There are a lot of words that are alike, but you must not always assume that they are the same.

One of those differences has been nil and null. Apparently null does exist in the iOS world, and is actually used. Nil is used when you are wanting to return a null id, except for an object. If it is a non-object pointer (void*) then you would use null. Some other small differences include not needing to put parenthesis around if statements, and not having to add a semi-colon to the end of everything. Some of these changes have taken a while to get used to, but one thing that is taking a little bit more time to learn how to call system functions to do things like sending an e-mail.

In Android, you would use intents to handle calling system tasks like sending an e-mail. In iOS there is a specified controller that you can switch to after you pass it some extra information. This is much more tightly coupled, but makes the documentation at least pretty straight forward:

Sending files using Swift

The article does warn that you probably should use an actual device, and not a simulator. In the simulator the e-mail comes up, but it soon crashes. As soon as I get my developer account I will update.

The World is Not Flatter

[http://www.youtube.com/watch?v=KPNn880KWfU]

Thomas Friedman wrote a book about how the world is flat. The world is not flat, I believe that in a sense that people are more enclosed in their own world then ever before. People I believe have the opportunity to connect more to those that are around them, but a lot of people do not take that risk. They have the opportunity to outsource, insource and do things in ways that we never thought possible, but more important than how we do things is how often we do things. 90% of internet traffic is local. This leads me to believe that physical geography is still a great motivator in keeping people and nationas apart. I believe that the book is full of anecdotes and does not have the basis in reality that one needs to have to convince someone of the real truth of things. I enjoyed listening to the stories, but thought that the book would be more useful if it were shorter and contained more basis in studies.

 

Whited sepulchres

Image

Filtering the internet to protect vulgar, pornographic, or inappropriate websites may be good, but when it is a government what is their motivation  Around the world the internet is filtered in varying degrees. Recently Russia began to block almost two hundred websites. These include Russian websites that  are vulgar or give suicide techniques. Is this ethical or is this leaving the weightier matters undone? The cost of filtering the internet in Russia alone is estimated to cost ten billion dollars. What about the poor in Russia?

Obessing over Video Games

I quit video games during high school—cold turkey . I do not play them even years later, and my wife believes that if I did not quit video gaming, she would not have married me. I believe that many video games become habit forming, even though I did not play massively mulitplayer online games. A fabricated world is not an alternate reality because once the game is turned off, it disappears. Playing video games with my brothers or by myself used to be the ultimate vacation. It was all that I wanted to do when I had free time. Even though I was playing with others, I felt like my family relationships were becoming weaker than when we had played together outside on the trampoline or went biking because physically you are not engaged in the virtual world. You grow no muscles playing all day long on Playstation, your thumbs may be sore, but there are certainly no muscles developed. New technologies may have changed that, but to me weaning myself from excessive video game playing has been a lifesaver, and helped me to become more social, and enjoy life so much more. I remember hearing Elder Bednar speak about the problems of excessive gaming. I felt grateful for my decision to stop.

Linking our Ancestors

20121115-111001.jpg

What if your ancestors used Facebook? What would they say? Our ancestors hopefully would not be ashamed of our actions, but how many have been forgotten–even with all the many wonderful innovations in genealogy. Many of our ancestors are missing from the Familysearch Family Tree. Imagine how proud your ancestors would be when they see you have posted a copy of their marriage certificate from England onto the tree for all to see or collaborating with your cousins from France. There is no end to the amount of joy that we can find when we all work together to link our ancestors from all generations to us.

Consent of the Networked

In an increasingly connected world, corporations spheres of influence has expanded into the world’s social networks outside geopolitical boundaries. Facebookistan and Googledom are kingdoms of users with little representation. Rebecca MacKinnon, a former CNN Chinese Correspondent turned member of Global Voices, an international blogging community in her book Consent of the Networked explains the need for internet regulators to evolve from monarchies into democracies. A Chinese dissident Ai Weiwei, “We will never have a real civil society, a democratic society, unless people take responsibility.” The Great Firewall of China is only one way the government exercises control, but the private sector also must filter and censure at risk of Chinese authorities blocking their websites. In many cases American companies such as Apple have complied by not letting Tibetan dissidents apps be published on the Chinese App Store. Even in the United States, a democracy, companies such as Amazon have bowed from pressure of government leaders to shut down Julian Assange’s WikiLeaks. Corporations should be liable not simply to the government, but also their global users.