Tuesday, July 24, 2012

How to quickly remove Mac apps from Quarantine

Hi all,

Getting the following annoying message every time you open the same app?

“XYZ.app” is an application downloaded from the Internet. Are you sure you want to open it?

I was receiving the same for Adium when I last upgraded it, and found a very easy solution to that. Open up a Terminal window and type in the following:

sudo xattr -d com.apple.quarantine /Applications/Adium.app

Voila! You're done.

Let me know if that helped :)

Sunday, July 1, 2012

How to copy and paste tables in Firefox

Hi all,

During my course of work, I need to frequently copy and paste tables between Firefox tabs. Having to do this, I always used to copy the tables through Google Chrome, and paste them into Firefox to resume work. Of course that's a tedious job, specially when your tables take time to generate (long queries and such). So, what's the solution?

One word, Text2Clipboard add-on!

Simply go to Tools -> Add-ons if you're on a Mac (I don't have a Windows machine to test the steps at the moment), then search for Text2Clipboard. Download and install the add-on and restart your browser. Don't forget to contribute to the developer!

To copy a table, simple right-click the table, highlight Text2Clipboard and select Copy whole table.

To paste anywhere else in Firefox (I personally have to paste some table outputs in some Firefox forms for work), just go over there, right-click and select paste.

Hope this proves useful.

Sunday, June 24, 2012

How to allow Java access to recording devices through browser

So I needed to allow Java access to my Mac's mic and speakers through one of our websites at work. I was prompted to download a .exe file supplied by the vendor to allow access. Since I'm a Mac user, this wasn't an option.

The solution was simply as follows:
  1. Open up your Terminal.app
  2. Create a new file called .java.policy
mSergani:~ $ vim .java.policy
  1. Add the following to the newly created file:
grant {
    permission javax.sound.sampled.AudioPermission "record";
};
  1. Save the file and restart your browser.

I'm now able to record and play sounds through the browser, and so should you :)
This should work just fine on Linux as well.


Let me know if that worked out for you, if there are better ways to do the same!

Saturday, June 23, 2012

My first blog

Hey all,

Just thought to try out a few things, so this is actually my first post on the blog :)
Others *should* follow :)

//M