Arrays are omnipresent. As I needed a snippet to make a string into an array of values, I thought would be helpful to share this for beginners. For example, take a string variable like, Create an array variable “array1” as:- I used the for loop to know the array1 values, which is displayed in Console […]

Recently I was asked by a friend to provide some support with UIPickerView in iOS 7. He was a bit puzzled by what it seemed to be the impossibility to pad the content of each picker view row to a certain distance from the left side of the UIPickerView. Basically, let’s consider the following example. […]

Cleaned my spam list in the blog today. I am constantly amazed by the stupidity of these bots. Just a rant. Have a great day.

Going into some USB programming for a project I am into (on my Mac), I ran into this and I thought would be nice and useful to elaborate a bit. This is about void* pointers and callbacks in C. USB device discovery and probing under IOKit makes heavy use of callbacks, I wanted to write […]

Ok, this will be quick. There is no built-in feature or that supports automatic code versioning in XCode. I am talking about auto incrementing versions or build numbers in XCode plist, aka “CFBundleVersion” info.plist entry. Here’s a quick one for XCode 5. Make sure your target has an *Info.plist file. Add an entry there, as […]

The rationale for Apple’s move to LLVM and slowly parting with the aging GCC has a long history and is out of the scope of this brief tutorial on LLVM commands. The primary reason for switching from GCC to Clang — probably — is the incompatibility of GCC’s GPL v3 license with the goals of […]

NSString initWithBytes:length:encoding instance method. A quick example. Uses a NSData object from the content of my blog’s first page and displays the string in an NSTextView outlet: The result: A variant, with a char array: The result:

While revamping my blog, I ran over several CSS generators that are freely available on the web. These considerably speed up the process of styling your web. So I though would be nice to share some links. Some might be interested. Gradient CSS generators One of the best CSS generators is ColorZilla, available also as […]

Another year started. Been so busy in the past month that I was unable to articulate some thoughts on my plans for 2013. This helps bringing some structured approach and — having a tendency to do many things at a time — should provide some prioritization. First, I would deepen my knowledge. In programming, in electronics and […]

Ok, this will be a short one. Probably I will create a category like “code snippets and hints” to include all these small articles. This is about zombies in your coding projects and how to chase them. Enabling a project to trace zombies is different in XCode 4 than in previous versions. There is a […]

I will probably write a longer article on exception handling in XCode, for now just a quickie: how to use XCode 4 exception breakpoints, use the breakpoint customization features and get useful information for debugging. Usually when the app is crashing, a lot of cryptical mumbo-jumbo is displayed in the console. You have to dig the […]

January brings updated documentation from Apple and I want to share the link to the  completely rewritten Core Animation Programming Guide. The release notes include reference to a “Major revamp, reorganization, and expansion to cover modern Core Animation behavior in iOS and OS X”. Just in time, as some of my projects rely on this. […]

Couple of days ago I need to create a hatched drawing for one of my project plan. Discovered a neat way to create hatching in Illustrator and I thought it might be useful to share. Create a new document, any size. Press “M” to access the Rectangle Tool: Click on the canvas and make a […]

Some good months ago I started a series on NSOutlineView that I didn’t imagine it will stir such an interest. To my astonishment, googling NSOutlineView ranks my post fourth in the search, immediately after Apple’s official documentation and some other two links: This intriguing situation (nevertheless inspiring for me) might have to do with the […]

While creating some artwork for an article, I ran into an interesting anti aliasing Illustrator feature. That might be handy for you to know. Exporting images for web (“Save for web”) uses Cmd-Opt-Shift-S shortcut (Ctrl-Alt-Shift-S on Windows). This brings the following screen: You have three anti aliasing Illustrator options for the look of your exported artwork: […]

This is very, very short. Books I have to read. But I really, really have to read: Art of electronics book Art of electronics student book Masterminds of programming

Until recently I have extensively used my MacBook, AVRDude and USBTiny for my μController projects: Now I got myself a proper tool, the AVRISP markII, mostly because I wanted to use AVRStudio 6.0 features: Key features: Programs both flash and EEPROM Supports fuses and lock bit programming Upgradeable for future device support Supports target voltages from […]

More than a year ago I posted this. It was the beginning of this blog and the beginning of my personal space for hobbies and small DIY projects, a very crammed and tiny space that I have in my apartment. I cannot imagine how quickly time passed and how less and less available time I have for […]

Looking for some detailed information about JFET circuit analysis, I ran today into three excellent videos posted by Bournemouth University. Already subscribed to them. The videos are part of Linear and Switching Circuits Series and target the following topics: Performing the DC JFET circuit analysis of a simple JFET self-bias amplifier (to find the circuit […]

Several years ago I completely switch to Apple starting with an iPod and culminating, some months later, with an iMac, a 13″ MacBook and, finally, with a QuadCore i7 MacBook Pro. Still very happy with may MBP, and things got better and better with each OSX release. Now, with Mountain Lion cannot be more satisfied. […]

Working on my Logic Analyzer project, I wanted to setup a combined target structure in XCode, to have the complete E2E scenario built, from μC firmware to the cocoa libraries and application code. This means adding custom targets for μC build and upload. Well, as a short reminder, for now I am using a simple Arduino […]

…and not only software (maybe). OK, to keep things short, I got tired by limitations of my Saleae logic analyzer, especially on the software side so I decided to build one. This is my new project: a DIY logic analyzer that I will hopefully use to better extent in my other projects. First results promising. […]

I love organizations that know how to share their know-how. Analog Devices is one of them.

Found and bought, joy of my friend’s kids.

Fabulous piece of literature from NXP (here’s the link to a cool pdf). Nothing beats a well written material. So it seems that I have some very interesting thing to do this evening: printing this and have a good read. This comes on perfect timing for my MOSFET dummy load project ! Quoting from NXP’s material: […]

This is the first part of a series I intend to maintain on NSOutlineView. Some NSOutlineView basics and a very simple example.

Some time ago I have on boarded on a very ambitious project that I though could be overkill, nevertheless I have persevered in my ambition to prove it is doable. However, as I needed to dig a bit into Assembly language, I have gathered some resources I thought it might be useful to share here.

Next steps for my dummy load prototype based on IRF830 N-Channel MOSFET, and a LM328 plus a multi turn pot.

Previous versions of OSX had a very handy shortcut for downloading an item from activity window. How to do it in Lion ?

SmartRF™ Studio is a Windows application that can be used to evaluate and configure Low Power RF-ICs from Texas Instruments.