lifeofatechdude.com
Life of a Tech dude: Installing ssl for Python (RedHat/CentOS)
http://www.lifeofatechdude.com/2012/01/installing-ssl-library-for-python.html
Life of a Tech dude. Thursday, January 12, 2012. Installing ssl for Python (RedHat/CentOS). Recently, I had to install pythons SSL library ( http:/ docs.python.org/dev/library/ssl.html. After installing the OpenSSL dev Library with YUM I thought to be a good Idea to use easy install and received following error message:. Error: Setup script exited with error: SandboxViolation: open('/usr/lib64/python2.4/test/test ssl.py', 'wb') {}. After a few minutes of thinking, I decided to download the source with.
lifeofatechdude.com
Life of a Tech dude: Convert NSDictionary to JSON with SBJson
http://www.lifeofatechdude.com/2011/06/convert-nsdictionary-to-json.html
Life of a Tech dude. Monday, June 20, 2011. Convert NSDictionary to JSON with SBJson. UPDATE: For the iOS5 Solution please look at. Http:/ life-of-a-tech-dude.blogspot.com/2012/01/nsjsonserialization-convert-nsstring-to.html. Most people writing software for Apples iOS probably had to read some sort of data from a JSON encoded string and there are heaps of examples out there who explain in every detail how you can DECODE a JSON string using the JSON-Framework ( https:/ github.com/stig/json-framework.
lifeofatechdude.com
Life of a Tech dude: February 2012
http://www.lifeofatechdude.com/2012_02_01_archive.html
Life of a Tech dude. Thursday, February 2, 2012. IOS - Store CGPoint in NSArray or NSDictionary. Ever tried to add a CGPoint variable to an NSArray or NSDictionary? Did you received the following error message? Error: sending 'CGPoint' (aka 'struct CGPoint') to parameter of incompatible type 'id'. If so than following code snippet should be of good help to you:. NSArray *myPoints = [NSArray arrayWithObjects: [NSValue valueWithCGPoint:CGPointMake(10.f,20.f)], nil];. Or in short :. IOS - Store CGPoint in N...
lifeofatechdude.com
Life of a Tech dude: January 2012
http://www.lifeofatechdude.com/2012_01_01_archive.html
Life of a Tech dude. Monday, January 23, 2012. Python: Convert Object to Dictionary. I recently had to explain how you can convert a Python Object to a Python Dictionary. The answer is surprisingly simple :. Class testclass: first = str() second = str() third = str() def init (self): self.first = 'Some' self.second = 'weird' self.third = 'test' test = testclass() print test. dict. As you probably guest, the answer is hidden in the last line. Friday, January 20, 2012. I would like to show you how to retri...
lifeofatechdude.com
Life of a Tech dude: iOS 6 : Add Social Networking with Social Framework
http://www.lifeofatechdude.com/2012/10/ios-6-add-social-networking-with-social.html
Life of a Tech dude. Sunday, October 7, 2012. IOS 6 : Add Social Networking with Social Framework. Another Quick and easy Post for everyone who quickly wants to implement a social sharing solution. Essentially, all you have to do is calling the UIActivityController. Sure, you don't always want to show all sharing options but the out-of-the-box solution is fairly good and should suffice for a lot of Projects. You always have to pass an NSArray containing your shared content towards the Activity Controller.
lifeofatechdude.com
Life of a Tech dude: Generator function in Python or How to use yield
http://www.lifeofatechdude.com/2014/03/generator-function-in-python.html
Life of a Tech dude. Saturday, March 15, 2014. Generator function in Python or How to use yield. What are generator functions. A Generator function in Python is essentially a custom iterator to be used a loop. For example, it can be used to create a custom iterator that will walk through a date range e.g. return all dates between an start and end date or you could Iterate over all prime numbers. How to declare a generator function. Iterate through prime numbers. Here comes the code:. Python returns a val...
lifeofatechdude.com
Life of a Tech dude: October 2012
http://www.lifeofatechdude.com/2012_10_01_archive.html
Life of a Tech dude. Sunday, October 14, 2012. Thanks to http:/ thedoghousediaries.com. Tuesday, October 9, 2012. Modern Objective C : Literals. With the Introduction of iOS6 and the new LLVM Compiler Version 4.0, Apple introduced a few very handy and powerful features to the Objective C Language. Sunday, October 7, 2012. IOS 6 : Add Social Networking with Social Framework. Another Quick and easy Post for everyone who quickly wants to implement a social sharing solution. Easy solution, nice effect. I rec...
lifeofatechdude.com
Life of a Tech dude: March 2014
http://www.lifeofatechdude.com/2014_03_01_archive.html
Life of a Tech dude. Thursday, March 20, 2014. My disappointment in Amnesty International. Today, I want to write about something that has nothing to do with computers but with my life. After all, this Blog is called Life. Of a Tech Dude and I decided it is time to put something up about my life or better write about something that really pisses me off! Tuesday, March 18, 2014. Giving back to the community. Saturday, March 15, 2014. Generator function in Python or How to use yield. Since iOS5 Apple offer...
lifeofatechdude.com
Life of a Tech dude: NSJSONSerialization - Convert NSDictionary to JSON
http://www.lifeofatechdude.com/2012/01/nsjsonserialization-convert-nsstring-to.html
Life of a Tech dude. Friday, January 20, 2012. NSJSONSerialization - Convert NSDictionary to JSON. Since iOS5 Apple offers a very simple way to handle JSON Strings with the NSJSONSerialization Class. In this post I want to show how easy it is to create a JSON String with NSJSONSerialization. Please note that I did not put an NSError Object in place to keep the example as simple as possible. If you still have to support iOS4.X please have a look at Convert NSDictionary to JSON. NSJSONSerialization - Conve...
lifeofatechdude.com
Life of a Tech dude: iOS - Store CGPoint in NSArray or NSDictionary
http://www.lifeofatechdude.com/2012/02/ios-store-cgpoint-in-nsarray-or.html
Life of a Tech dude. Thursday, February 2, 2012. IOS - Store CGPoint in NSArray or NSDictionary. Ever tried to add a CGPoint variable to an NSArray or NSDictionary? Did you received the following error message? Error: sending 'CGPoint' (aka 'struct CGPoint') to parameter of incompatible type 'id'. If so than following code snippet should be of good help to you:. NSArray *myPoints = [NSArray arrayWithObjects: [NSValue valueWithCGPoint:CGPointMake(10.f,20.f)], nil];. Or in short :. April 6, 2012 at 6:47 PM.