A nice post

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.

Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.

Read more

Gratitude 5/11/12

1. Daryll
2. Affirmation Labs
3. KDJ
4. A Good Mother
5. A Good Father
6. Sister
7. Brother
8. Matthew and Mark
9. Tracy
10. McKenzie
11. Internet
12. MacBook Air
13. Ideas
14. Connective.ly
15. Isaac and Jake
16. OGL
17. Stephen
18. Michelle
19. Masako
20. iPhone
21. iPad
22. 30 Inch LCD
23. Water
24. Salvadore
25. iOS
26. StackOverflow
27. Matz
28. InCase
29. Travel
30. Lori
31. Adara
32. Jen
33. Rosie
33. Paba
34. A grandmothers love
35. Theo
36. Chris
37. Warren
38. 2810
39. Anthony
40. Setorii
41. Playoff Basketball
42. Soccer
43. Erik
44. Design
45. Art Center
46. Rick Marini
47. Chinese Companies Offering Big Bucks
48. Patience
49. Domains
50. Cool Cloud
51. AfterNic
52. Sun
53. Food
54. A cool breeze
55. Porsche
56. Frank
57. Nic
58. Jesse
59. Peter Lamas
60. Enzo
61. Shelby and Tim
62. Noel
63. Barry
64. Christina
65. Ben
66. Natura
67. WordPress
68. Destiny
69. Affirmations
70. xCode
71. GPS
72. Disney
73. Snoddy
74. Kraft
75. Robo 7, Henry and Kira
76. Hawaii
77. New York
78. Mandarin Oriental
79. Jared
80. Eric
81. Good Jeans
82. Quality Leather
83. Samuals Family
84. CK
85. Hammer
86. Norelco
87. Pinot Noir
88. Technology
89. Cars
90. Ducati’s
91. Tron
92. Blade Runner
93. Casablanca
94. Marina’s
95. Walks
96. A good kiss
97. No Errors and No Warnings
98. THE JOURNEY
99. Kimbra
100. Art G
101. Greg G
102. Chess
103. Chess.com
104. Sicilian
105. Penultimate
106. JC
107. Doug
108. Laura
109. Long Beach
110. Long Beach Poly
111. MIT
112. Chapman
113. Jim Casparie
114. Suster
115. Leo
116. Robert
117. Ted
118. Chuck
119. Fatima
120. Joe
121. SF
122. Sherrie
123. Kai
124. Alice
125. Fertile Action
126. Summit Series
127. Josh Zabar

128.Strietzel Forbes Ranking

129. The Art Gastelum Foundation

AVAudioSession Speaker Fix

Below is a code snipped that quickly solved what could have been a huge problem. In the development of the Affirmation Labs iOS App, I set a session up so my affirmation audio can loop and continue in the background regardless of home-button push and device lock. After this behemoth task and trickery was completed, I realized that during my AVAudioSession with Category set to AVAudioSessionCategoryPlayAndRecord, I had a huge issue with volume decreasing when the session was enabled. Once I created the fix for directing audio forcefully to the iOS speaker to retain my max volume level, I ran into another bug that certainly stumped me. When I would plug in headphones and unplug them during the audio session, the audio would revert off of the speaker and I would hear a huge decrease in iPhone audio. Much love to Jonas on StackOverflow for figuring this out and sharing it with the community. I’ve re-posted the code as a kickoff to my “Code” category on my blog as it certainly saved me a tone of time and investigation and is quite simple and elegant.

NSError *setCategoryErr = nil;

NSError *activationErr  = nil;

//Set the general audio session category

[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:&setCategoryErr];

//Make the default sound route for the session be to use the speaker

//Jonas' Code Begins ---------------

UInt32 doChangeDefaultRoute = 1;

AudioSessionSetProperty (kAudioSessionProperty_OverrideCategoryDefaultToSpeaker, sizeof (doChangeDefaultRoute), &doChangeDefaultRoute);

//Jonas' Code Ends ----------------

//Activate the customized audio session

[[AVAudioSession sharedInstance] setActive: YES error: &activationErr];