Google Contacts – I can’t find any of my Contacts any more

I have all my contacts in Google Contacts.

If I want to find someone I usually type their name in the Google Contacts search box and I can find them in seconds.

This has all changed now.

The latest version of Google Contacts now searches Google+. E.g. take a look at this:

Google Contactshttp://www.snowcrash.eu/wp-content/uploads/2015/04/Google-Contacts-588x487.png 588w, http://www.snowcrash.eu/wp-content/uploads/2015/04/Google-Contacts.png 622w" sizes="(max-width: 300px) 100vw, 300px" />

Here’s a search I did recently for someone called Mark.

Why does Google think it makes any sense whatsoever to search all the Marks in the entire world?

I’ve tried clicking all the menu options at the top and on the left such as “Frequently contacted”, etc.

I have literally no idea how to search my Contacts any more. Fortunately, I have my contacts synced with my iPhone and now do all my searches using the Contact app there.

 

NameError: uninitialized constant

I recently opened up pry, ran this:

but got this:

Not greatly helpful.

It turned out that, despite adding it to my Gemfile and running

I still needed to require the file in pry.

However, the name of the file isn’t obvious if it’s not your own gem. E.g.

Eventually it seemed to be correct:

but this didn’t work:

but by looking at the gem file name via:

I eventually used:

which worked. E.g.

This all seems a lot of guess work.

What I’d like to see (and I’m sure there must be a way of doing this but Google’ing and searching StackOverflow has not turned anything up) is something like this:

PixelDungeon Prayers – alpha testing

Just finished building PixelDungeon Prayers – a slight tweak of PixelDungeon that lets heroes pray to their favourite gods in the hope of getting assistance.

Very excited – this is my first Android game so looking forward to working on it more.

If you’re interested in helping make this game better you can subscribe to the Google Testing group here https://groups.google.com/forum/#!forum/pixeldungeon-prayers

Photos on Android

Why does the Photos app take so much time to delete a photo?

Sometimes it literally takes over a minute. What’s worse it takes an indeterminate period of time. Sometimes seconds, sometimes minute .

It seems worse when there are Internet connection issue. All Google apps seem to be in the same boat – without Internet they suck big time.

Screenshot_2014-10-10-19-10-54http://www.snowcrash.eu/wp-content/uploads/2014/10/Screenshot_2014-10-10-19-10-54-576x1024.png 576w, http://www.snowcrash.eu/wp-content/uploads/2014/10/Screenshot_2014-10-10-19-10-54-588x1045.png 588w, http://www.snowcrash.eu/wp-content/uploads/2014/10/Screenshot_2014-10-10-19-10-54.png 1080w" sizes="(max-width: 168px) 100vw, 168px" />

The other thing is it’s unreliable. Sometimes it says the photo has been deleted then a minute later there it is again seemingly resurrected from the dead. I’ve occasionally deleted them multiple time .

Here’s another example – this time Google Docs . Why does it take so long to load a document?!

Screenshot_2014-10-11-21-28-24http://www.snowcrash.eu/wp-content/uploads/2014/10/Screenshot_2014-10-11-21-28-24-576x1024.png 576w, http://www.snowcrash.eu/wp-content/uploads/2014/10/Screenshot_2014-10-11-21-28-24-588x1045.png 588w, http://www.snowcrash.eu/wp-content/uploads/2014/10/Screenshot_2014-10-11-21-28-24.png 1080w" sizes="(max-width: 168px) 100vw, 168px" />

 

Mac: GPU Panic

I’ve recently had a few issues where the Mac has crashed with a “GPU Panic”.

Turns out it might be something to do with Google’s Chrome browser which uses some GPU acceleration for HTML5 updates. 

More here:

http://betanews.com/2012/06/29/google-comes-clean-yes-your-kernel-panic-is-chromes-fault/ 

and here:

http://forums.macrumors.com/showthread.php?t=1597599

For the moment I’m going to uninstall Chrome and see what happens.

Also experienced an annoying logout problem which also happens to be related to the GPU and GPU switching. If you’re using multiple GPUs then you can use gfxCardStatus to fix the Mac to 1 GPU.

http://forums.macrumors.com/showthread.php?p=13322234#post13322234

Passenger: specifying the environment

Passenger runs in production by default.

To run in development, update your Virtual Host and set the Rails Environment variable, e.g.:

RailsEnv development

e.g. here’s my full Passenger VirtualHost config:

<VirtualHost *:80>

        ServerName server.name.here

        # !!! Be sure to point DocumentRoot to ‘public’!

        DocumentRoot “/path/to/public”

        RailsEnv development

        <Directory “/path/to/public”>

                Order allow,deny

                Allow from all

                # This relaxes Apache security settings.

                AllowOverride all

                # MultiViews must be turned off.

                Options -MultiViews

        </Directory>

</VirtualHost>

See also this discussion:

http://code.google.com/p/phusion-passenger/issues/detail?id=45

and this:

http://my.opera.com/williamn/blog/2009/03/03/how-to-make-phusion-passenger-run-in-development-mode

Rails: Phusion Passenger

Passenger is an application server for Ruby (Rack) and Python (WSGI) apps.

Some notes on installing it:

https://www.phusionpassenger.com/download

Ignore the docs that suggest:

$ sudo gem install passenger

$ sudo passenger-install-apache2-module

Instead use:

gem install passenger

passenger-install-apache2-module

Then paste the LoadModule code it spits out at the end into your Apache conf file.

Test whether Passenger has installed by running:

curl -sI localhost | grep ^Server

and check for the “Phusion_Passenger” signature. E.g. 

Server: Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch Phusion_Passenger/4.0.5 mod_ssl/2.2.22 OpenSSL/0.9.8x

If you need to uninstall Passenger using sudo then:

$ sudo gem uninstall passenger

And a discussion on whether to use rvmsudo or not here:

https://groups.google.com/forum/#!topic/rubyversionmanager/9dnmAsTiHR4

In short, https://www.phusionpassenger.com/download

suggests using sudo but the rvm page suggests not:

https://rvm.io/integration/passenger

Note:

If you get a warning doing the passenger install apache2 module like this:

rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all

Warning: can not check /etc/sudoers for secure_path, falling back to call via /usr/bin/env, this breaks rules from /etc/sudoers. Run:

    export rvmsudo_secure_path=1

Then run:

    export rvmsudo_secure_path=1

and:

rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all

(remember to run rvm requirements afterwards)

On the Mac the Apache conf and restart commands go like this:

[~]$ sudo vim /etc/apache2/httpd.conf

[~]$ sudo apachectl restart

See also:

https://developer.apple.com/library/mac/#featuredarticles/PhusionRails/_index.html

and this very useful guide:

http://jasoncodes.com/posts/mac-os-rails-server

Rails: Phusion Passenger

Passenger is an application server for Ruby (Rack) and Python (WSGI) apps.

Some notes on installing it:

https://www.phusionpassenger.com/download

Ignore the docs that suggest:

$ sudo gem install passenger

$ sudo passenger-install-apache2-module

Instead use:

gem install passenger

should be sufficient and rvm.io suggests just running:

passenger-install-apache2-module

See also:

http://stackoverflow.com/questions/17245105/passenger-module-fails-to-install

and

http://stackoverflow.com/questions/17248660/installing-passenger-use-sudo-rvmsudo-or-nothing

Then, paste the LoadModule code it spits out at the end into your Apache conf file.

Test whether Passenger has installed by running:

curl -sI localhost | grep ^Server

and check for the “Phusion_Passenger” signature. E.g. 

Server: Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch Phusion_Passenger/4.0.5 mod_ssl/2.2.22 OpenSSL/0.9.8x

If you need to uninstall Passenger using sudo then:

$ sudo gem uninstall passenger

And a discussion on whether to use rvmsudo or not here:

https://groups.google.com/forum/#!topic/rubyversionmanager/9dnmAsTiHR4

In short, https://www.phusionpassenger.com/download

suggests using sudo but the rvm page suggests not:

https://rvm.io/integration/passenger

Note:

If you get a warning doing the passenger install apache2 module like this:

rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all

Warning: can not check /etc/sudoers for secure_path, falling back to call via /usr/bin/env, this breaks rules from /etc/sudoers. Run:

    export rvmsudo_secure_path=1

Then run:

    export rvmsudo_secure_path=1

and:

rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all

(remember to run rvm requirements afterwards)

On the Mac the Apache conf and restart commands go like this:

[~]$ sudo vim /etc/apache2/httpd.conf

[~]$ sudo apachectl restart

See also:

https://developer.apple.com/library/mac/#featuredarticles/PhusionRails/_index.html