Skip to main content

imageNamed not found and other Assets/Resource Files issues after creating a new CocoaPod library

Some days ago i wrote a post to announce that my DownPicker component library just became available on CocoaPods. Shortly after the pull of the refactoring I made to make everything compliant with the CocoaPods public trunk interface, some users noticed that the component – only when installed as a pod using the pod install  command –  was unable to properly display the embedded images. A strange behaviour indeed, since I had them included in the  /Assets/ folder, which path is obviously included in the wildcard reference i set to the resource_bundle  property of the  .podspec file:

After a quick check it turned out that the issue was related to the component code itself: the method I used to reference my image wasn’t referencing any bundle, expecting the resource files to be in the root path.

This is something that would work on a manually added component – such as it was until few days ago – but not for a CocoaPod.

Luckily enough, the fix was quite straightforward: all I had to do was creating a reference to the bundle itself and passing it to the imageNamed method using the additional overload which serves this exact purpose:

This small update can be used for any other asset / resource file not found, it won’t break your existing code and it will work even for manual installations. If you’re also facing a similar issue, chances are that it will save your day too.

Happy coding!

EDIT: just found this thread on StackOverflow containing an almost identical approach. You might want to check it out for future updates regarding this issue.

 

DownPicker is now available through CocoaPods

A while ago I wrote an article about DownPicker, an open-source GitHub project written in Objective-C to make Android-like drop-down-lists on iOS like the one shown in the following image:

UITextField.DownPicker

For additional info about DownPicker installation and features you can read my previous post here.

In case you want to try it (or if you’re already using it) I’m pleased to inform you that DownPicker has been added to CocoaPods, the well-known dependency manager for Objective-C and Swift iOS components. If you never heard about it you can learn an excellent way to manage your iOS project by reading their official guide.

Installing DownPicker using CocoaPods is just as easy as adding this line to your Podfile:

Here are the CocoaPods relevant meta info:

CI Status Version License Platform

You’re still free to install it manually, as explained in the project GitHub page or directly in the official repository README doc.

Here are some useful links regarding the project:

Happy coding!

 

ODBC Call Failed – Error 3151 on Windows 7 64-bit and how to fix it

If you stumbled upon this issue, chances are you’re (re)installing an old software client on a new-or-newly-updated Windows 7 64-bit system. That program – often an archive/administrative/management service client or a similar home-made piece of software –  uses a persistent ODBC connection to a local or remote DB via an ODBC DSN interface defined at user or system level using the Windows ODBC Administrator tool.

The Problem

The aforemetioned client can’t find the ODBC Data Source entry, therefore showing an error pop-up containing the following:

ODBC Call Failed – Error 3151

Or, depending on the ODBC driver installed:

ODBC Connection Failed – Error 3146

First thing we need to do is to check if the latest version of the Windows ODBC is properly installed and if a proper Data Source pointing to the DB we need to connect has been set: you can check both of these by opening the Windows Control Panel and navigate through Administrative Tools -> ODBC Data Source Administrator. If there’s something missing there, fix that and check again, otherwise keep reading.

Read More

VMware vSphere Client Download for Windows: All Versions and Releases

Few will deny the impact VMware had on modern virtualization technology environment and the Palo Alto software company leading role in the revolution involving thousands of server farms in recent years. An infrastructural change that also had an huge impact on many system administrators, who suddenly found themselves eager to learn and manage the logics behind the maintenance, backup and administration of either the Virtual Machines and their Hypervisors.

These issues are being mostly handled by using the vSphere Client, which is a free software released by VMware enabling SA to connect to VM Hypervisor systems and manage them. If you stumbled upon this page, chances are you know how difficult can be to retrieve the download links of the vSphere Client’s builds, each one required to connect to the corresponding vSphere release. This list comes to the rescue, including the download links for a wide number of available vSphere Client for Windows in the most likely case you’ll need them.

 

Read More

The Hateful Eight: the (non-fake) trailer of the eighth film directed by Quentin Tarantino

This time it’s the real deal: we’re not talking about the well known fake trailer posted on YouTube a few months ago – and which we mentioned in this old post: welcome to the first official trailer of Quentin Tarantino‘s eighth effort, hoping it will be a masterpiece such as Reservoir Dogs, Pulp Fiction, Inglourious Basterds and Django Unchained undoubtely were. The trailer is out since yesterday on The Wenstein Company YouTube channel and this time we can say without any doubt that it is as authentic as Samuel L. Jackson face.

The upcoming movie, which is due for release on 25 December 2015 for US only and on January (hateful) 8 2016 in Europe, is a western mostly inspired by John Ford’s masterpieces of the past: it is therefore another homage, not only from an incredibly talentuos director to another but also from a nostalgic, yet very avant-garde, modern star to a milestone genre of the american movie history. The well-known Ford moments, cleverly mixed with Tarantino’s peculiar hilarious mood, are clear to be seen through every trailer scene, showing us the course of a horse-trained wagon and a mysterious group of strangers: both of them are clearly homages to 1939’s Stagecoach, one of the best Ford efforts and also one of the greatest western movies ever made. In the small pack of scenes unveiled by the trailer, we can easily recognize some old friend’s faces – which the Director already used in the past – such as Samuel L. Jackson, Tim Roth, Michael Madsen, Zoe Bell and Kurt Russell, tagged along with some “new entries” – yet experienced and very talented actors – such as Jennifer Jason Leigh and Walton Goggings.

We’ll leave you to the trailer, which also emphasize the fact that the film is being shot in “glorious 70mm”, just like (almost) any good old western masterpiece.

The Hateful Eight Trailer

Enjoy!

Useful Links

 

Close