Category Archives: Uncategorized

iPhone does not appear in iPhoto

So, ordinarily, iPhone is supposed to appear in your iPhoto list, as pictured. But what if that doesn’t happen, and you’ve tried everything: erasing iPhoto settings, playing with iTunes preferences… everything, in fact, except erasing your iPhone’s valuable data? How to sync photos into iPhoto again; that is, how to get your iPhone to introduce itself as a camera once again?

As strange as it may sound, this is caused by you downloading picture attachments or choosing Save image in mobile Safari. So just go and mail yourself every photo from Camera Roll that was not created with iPhone’s own Camera, and then delete them.

That’s right, just go right ahead and delete all the photos you downloaded from your iPhone’s Camera Roll. This’ll restore your access. This has worked on my iPhone 2G with OS 3.1.2.

Well, if it doesn’t help you, you could also try something else from this thread on MacRumors forums.

Function call is a hidden goto

I’ve recently had two instances of studying some innocent looking code, only to realize it’s riddled with something you are ordinarily actually recommended to do. “If a function is too long, separate blocks of code into separate functions!”

Yes, that’s all nice. This rule rocks, but not when you go and insanely apply it to rather short functions.

Remember: most IDEs don’t allow easy browser-style navigation: click on a symbol name, read, then go back. This means reading complex code, spread over several functions spanning hundreds of lines of code if you look from top to the bottom… this is horrifying, and studying that code is near impossible.

If goto is considered harmful, don’t ignore the fact that function call is a hidden goto; in some cases, a wolf in sheep’s clothing.

Now, if I tell you one of the instances was some (supposedly relatively simple) sample code by a well known software company…

Image source: xkcd

Jesse Schell: Design Out Of The Box (DICE 2010)

Is your life just one big RPG? Find out in a mind blowing presentation by Jesse Schell. I’m very impressed by the fantastic and scary vision of the future.

http://g4tv.com/lv3/44277

Source: http://g4tv.com/thefeed/blog/post/702668/DICE-2010-Video-Design-Outside-The-Box.html

IT Showoff

Everyone who had the chance, but did not listen to almost entire spectrum at the IT Showoff conference, should be very very sorry. Most informational. Very satisfied.

One speech was too self-promotional and over-valuing the product presented, but most others in the “branch” of the schedule I followed were cool.

Facebook Chat on Jabber

If you use Facebook and XMPP, rejoice. You can now get spammed via your favorite Jabber client: iChat, Pidgin, Adium, Psi, Finch, Meebo or any other that allows you to configure custom server (gtalk not included).

Federationing not supported.

Probably a fail for privacy, but a win for openness.

Instructions

Username: username@chat.facebook.com
Server: chat.facebook.com
Port: 5222
SSL: No
Allow plaintext authentication: No

Your username is your “vanity URL” suffix, for example firstlast in http://www.facebook.com/firstlast – so create this alias if you didn’t already.

Using Alpine on MacOSX and with Gmail

Ahh… good ol’ Pine. One of coolest little mail programs.

Step 1: Get MacPorts

Step 2: In terminal:
sudo port install alpine
Step 3: Launch alpine.
Step 4: Go to configuration options. Set up the options, as follows:
User Domain: user@gmail.com
SMTP Server: smtp.gmail.com:587/tls/novalidate-cert/user=user@gmail.com
Inbox Path:
  Name of Inbox server: imap.gmail.com/ssl/novalidate-cert/user=user@gmail.com
  Folder on “imap.gmail.com/ss…” to use for INBOX [inbox]: just press enter here.
Final settings:

That’s it!

Sweet.

Note the potentially insecure novalidate-cert because Google’s certificate is considered invalid, and I didn’t feel like going and finding how to add this cert properly.