Macbook Pro Pink Screen Fix

Got a pink screen of dead on your Macbook Pro? (pink links across the screen)

No problem! Take it to the Apple Store, they will fix it for FREE as part of a special program. Its a known issue with the graphics card, and even my early 2011 Macbook Pro was accepted and fixed, for free. 🙂

 

Did you find this post useful?

Tip me some bitcoin:

How to add static HTML pages in Drupal

Sometimes you just need a static HTML page, or a template-less page, in your CMS. There are many ways to do this with Drupal, like creating node specific page templates, with all of the container HTML chopped out.

However, the quickest and easiest way is to use the Static Page Module

After installation, do the following:

  • Create a new Content Type, maybe call it “Static HTML”, make sure it has a “Body” field
  • In /admin/config/content/static_page, select the new content type that you created
  • Now create some content!

 

Did you find this post useful?

Tip me some bitcoin:

Awesome parenting tips, with examples

This is my ever growing list of parenting tips, with examples. Enjoy!

How to foster independence

Scene: Playground sandbox. A construction toy! It’s a seat with two long handles that work independently of each other to operate a scoop.

Enter: Boy, age 3. He climbs up onto the seat and eagerly leans toward the handles. He cannot reach.

Enter: Grandpa. “Here, you pull these handles.” Grandpa pushes them toward the boy. The boy grasps the handles but doesn’t immediately know how they work. “Help him,” Grandma says. Grandpa starts to operate the handles: one to lift and lower the scoop; one to rock the scoop into the sandbox and dump the sand out. When Grandpa lets go, the boy doesn’t quite have it down.
“Okay,” Grandma says. “We’re going to give someone else a turn, since you can’t do this.”

Scene: Same morning. Same sandbox. Same toy.

Enter: Girl, age 3. She climbs up onto the seat and eagerly leans toward the handles. She cannot reach.

Nearby: Her mother sits with a book. She smiles encouragingly as the girl tries to get at both handles. Another child comes over and pushes one handle toward the girl. She’s able to get the other. The girl grasps the handles but doesn’t immediately know how they work. She tries this and that. “Help me,” she calls to her mother. “Hmm. Try putting your feet here,” her mother says, aiming to improve her leverage. Mom sits back down. The girl starts experimenting with the handles. After a while, she is scooping and dumping sand.

“Mama, I’m scooping!” she says proudly.

So how can we foster our little ones’ independence? These playground scenes provide a simple illustration. We can:
•hang back instead of jump in
• observe instead of direct
• step in after being asked instead of before
• guide lightly instead of grabbing hold
• smile encouragingly instead of giving up for them, and
• let our children surprise us

What do you want to be when you grow up?

Don’t ask kids what they want to be when they grow up, instead ask what problem do they want to solve? This changes the conversation from “who do i want to work for”, to “what do i need to learn to be able to do that”.

 

Include node specific JS/CSS in Drupal

 

Did you find this post useful?

Tip me some bitcoin:

Cleanflight on Mac OSX

If you’re having problems getting cleanflight to recognise your Naze board and you’re on a Mac, do the following:

  1. Using USB to connect to the Naze32 requires the installation of the SiLabs CP2102 VCP Drivers. The drivers are available for download directly from the SiLabs Website
  2. Force the serial connection to be recognized by running the following line at the command terminal: sudo ln -s /dev/tty.SLAB_USBtoUART /dev/tty.usbserial
  3. Fire up Cleanflight!

 

Did you find this post useful?

Tip me some bitcoin:

Drupal: How to apply the img-responsive class to all images in your bootstrap subtheme

UPDATE: This is now included by default and should not be used.

In your subtheme’s template.php file, add the following:

 

Did you find this post useful?

Tip me some bitcoin:

What happens when you reach your parse.com request limit?

This is what happens:

IMG_8840

 

 

 

 

 

 

Next: How to cache parse requests…

 

Did you find this post useful?

Tip me some bitcoin:

How to install Drupal with PostgreSQL on Windows 7

So you want to see this?

Drupal database type

 

 

 

 

No problem, just follow my instructions:

  1. Download the latest version of Drupal and extract into c:\dev\drupal
  2. Download and install Postgres
  3. Download EasyPHP and install in c:\dev
  4. Once installed, double click on EasyPHP task menu icon and stop Apache and MySQL
  5. Add the following to your PATH environment variable: C:\Program Files\PostgreSQL\9.4\lib; (or change the path if thats not where you installed Postgres)
  6. Edit your php.ini file (found here: C:\dev\EasyPHP-DevServer-14.1VC9\binaries\php\php_runningversion) and remove the semicolon prededing “extension=php_pdo_pgsql.dll” and “extension=php_pgsql.dll”
  7. Double click on EasyPHP task menu icon and start Apache
  8. Right-click on EasyPHP task menu icon and choose Administer
  9. On the Admin screen, in the Local Files section, add a new alias (name: your-site, path: C:\dev\drupal\drupal-7.38 <- from step 1)
  10. Visit http://127.0.0.1/your-site/ and follow the Drupal setup wizard
  11. Install standard version of Drupal, on database setup screen you will now have the option to choose “PostgreSQL”
  12. From your Start Menu, find PostgreSQL and open “pgAdmin” tool
  13. Right click and choose Connect
  14. Get the database name (postgres), hostname (localhost), port number (5432) and username (postgres) and password (set this yourself)
  15. Enter the details and you’re all set.

 

Did you find this post useful?

Tip me some bitcoin:

How to patch/hotfix your CQ5 website

You can use a package to patch your javascript, if you find a bug in production and dont want to perform a production deploy. In other words, if you need a quick fix…

  1. Make a package containing the file you wish to patch, perhaps a javascript file in your clientlibs, install it in the package manager in your production author.
  2. Go into CRX/DE, drill down to the file you are patching, click on it, click the replication tab, click replicate
  3. Go to the CQ welcome screen, Tools > Replication > Activate Tree > Drill down, select file, activate
  4. Update cachebreaker which will force clientlibs to recompile

 

Did you find this post useful?

Tip me some bitcoin:

Parse.com Javascript SDK + Disqus SSO Integration

Universal code:

When your page content changes and you need to load new comments:

Dependancies:

  • http://code.google.com/p/crypto-js
  • http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript

Did you find this post useful?

Tip me some bitcoin: