Category Archives: Uncategorized

Meta-post: Follow the blog, follow on twitter

A small meta-post (didn’t do this in a while).

If you follow this blog, please “Follow” it. Let’s call that “Follow” an official one. The widget to do this is placed on the right side. Do it, for I wanna know how many people are around here.
If you like this blog, you may want to follow me on Twitter. Just follow ivucica.

iPhone development: Bits/c++config.h: No such file or directory

Developing for iPhone with some C++ code? Suddenly getting this error after installing a beta SDK?

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:65:0 Bits/c++config.h: No such file or directory in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h

Note the bolded folder. Change into it and make a symlink from arm-apple-darwin9 to arm-apple-darwin10. Please note that Apple has fixed this already at one upgrade of beta SDK (I had this error before too, but I still didn’t get 4.0 beta 2 so I didn’t check) so it’s reasonable to assume they will do this again.

cd Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/include/c++/4.2.1/
ln -s arm-apple-darwin9 arm-apple-darwin10

PS I don’t think posting this violates any NDA. Especially since origin for this solution is also public.

iTunes: Cannot combine songs into an album?

If you cannot merge songs into a single album, first check that their album name, artist name, and other properties match.

If these are already the same, note that sometimes “foreign symbols” may cause issues. For example, try renaming album “Mačak u vreći” to “Macak u vreci”. If this successfully combines the songs, you can try renaming the album back into its original name.

Croatian ISPs have DNS issues?

Chrome screenshot depicts “nehe.gamedev.net” as opened on Croatian T-Com ISP with their DNS. Black Safari screenshot depicts “nehe.gamedev.net” when using Google’s DNS server.

Reportedly Croatian ISP B-Net also has the same issue.

On B-Net and T-Com, nehe.gamedev.net resolves to 209.62.105.19. Ordinarily it should resolve to 216.185.96.235.

White Safari screenshots depicts what you get when you visit this IP directly. Apparently searchmagnified is not owned by NetworkSolutions because it advertises other registrars.

Could this be some well orchestrated DNS hijack? Or is it just caching gone haywire? (It seems strange that this reputable domain would “revert” to a spyware and ad-troll site and be restored so quickly, but that Croatian ISPs’ DNSs’ would go insane.)

Could it be related to this January 2010 attack against Network Solutions?

From inquiring foreign acquaintances and friends, looks like this is a local problem. Also, here’s some whois and nslookup digging.
The-Evil-MacBook:~ ivucica$ whois gamedev.net

[snip]

Registrant:
Bells & Whistles Software, Inc.
   2705 North Carroll Avenue
   Southlake, TX 76092
   US

   Domain Name: GAMEDEV.NET

   ————————————————————————
   Promote your business to millions of viewers for only $1 a month
   Learn how you can get an Enhanced Business Listing here for your domain name.
   Learn more at http://www.NetworkSolutions.com/
   ————————————————————————

   Administrative Contact, Technical Contact:
      ZWave, LLC domains@ZWAVE.COM
      2705 N CARROLL AVE
      SOUTHLAKE, TX 76092-3101
      US
      (817) 329-9242 fax: (817) 329-9243


   Record expires on 26-Mar-2020.
   Record created on 26-Mar-1999.
   Database last updated on 2-Apr-2010 12:59:27 EDT.

   Domain servers in listed order:

   NS2.ZWAVE.COM                216.234.238.74
   NS1.ZWAVE.COM                216.234.238.75

The-Evil-MacBook:~ ivucica$ nslookup
> server 216.234.238.74
Default server: 216.234.238.74
Address: 216.234.238.74#53
> nehe.gamedev.net
Server: 216.234.238.74
Address: 216.234.238.74#53

Name: nehe.gamedev.net
Address: 216.185.96.235
Looks like the domain itself is pretty much doing very well! As it stands it looks like it’s truly a DNS hijack, but I’m not exactly a network expert so don’t take my word for it.

Getting GNU/Linux to reboot properly on unibody Macbook from late 2009 (Macbook 6,1)

To get a GNU/Linux to reboot properly and not hang in the final step, you need to pass another parameter to the kernel. You need to pass reboot=pci to Linux.

Currently, Debian and Debian-derivatives such as Ubuntu tend to use Grub2 as the bootloader, by default. You need to:

  • edit the /etc/default/grub configuration file, as root, and using your favorite editor
  • find line that looks similar to GRUB_CMDLINE_LINUX=””
  • if it contained anything inside quotes, don’t delete those commands!
  • into the quotes, add reboot=pci but do not delete existing text
  • back in command line, run update-grub as root user

It should now work flawlessly!

Image: unplgdd.com