acloudtree

Tag Programming

Developing a Chrome Extension and the “Origin is not allowed by Access-Control-Allow-Origin Error”

I have been messing around building a Chrome extension and am fetching some resources using good ol’ XMLHttpRequest(). At least I was trying to do so and instead was getting an epic fail.

I am using the google developer debugger to test (tutorial) and saw the following error in the console.

Example:

Origin [YOUR_RESOURCE_NAME] is not allowed by Access-Control-Allow-Origin Error.

I thought I had configured my manifest.json file with the correct permissions.

...snip...
  "permissions" : [
    "https://*.domain.com"
  ],
...snip...

Turns out I was simply missing the trailing slash /.

...snip...
  "permissions" : [
    "https://*.domain.com/"
  ],
...snip...

Hope that helps someone.

Macifier.com – FREE Mac App That Locks Your Keyboard And Mouse

Macifier - Pacifying Your Keyboard And Mouse

My daughter Gracie was routinely disabling our family laptop while she skyped with her Grandparents. So I wrote a small Macintosh application that locks the keyboard and mouse. After showing the initial app to my buddy Mike Brisk, he created an awesome logo.

Head over to http://macifier.com and download it for free.

(Story) So too will they replace you

He programs, he optimizes, he thinks. And once he is finished there waits satisfaction.

“Thank you for all your hard work” his boss says “We really appreciate it”

Words are not easy for him, so he doesn’t speak. Only smiles and nods and blinks. He doesn’t say that the software was challenging to write. That there was a hard segment that stormed against him for weeks. And were it not for his diligence and effort, would have way-laid the project by months.

He does not say that the elegance found in file ‘Algorithm_search.c’ was something that the great artist Michelangelo would have been proud of. He had removed several thousand lines of code, and then optimized it in turn. This had increased the speed of the algorithm by over 80%.

He doesn’t mention that he has not slept well for several weeks. Not the pressures of the job, no far from it. More that he is concerned of what the code he is creating will eventually do.

“What do you mean they are upgrading the software?” he can hear the worker asking. “I’ve labored here for over twenty-five years! Now some dumb machine is going to do better than me?”

Read more

iPhone Methods : Shifty & Pulse

ShiftyAndPulseMethods

Over on www.iphonedevsdk.com someone was asking how to make their screen pulse. These methods are from a little experiment I did. They fire and visually show the user when their login attempt to the server fails. Pretty basic, and not perfect, but hopefully they get people started.

PS : sorry for watermark, I do not record my screen often enough to justify expense.

Copyright © Jared Folkins
Programming, Computers, Writing, Economics, and Life

Powered by WordPress