Showing posts with label OSX. Show all posts
Showing posts with label OSX. Show all posts

Monday, February 1, 2016

Completely Remove Slack App from Mac OSX

Once you have removed the Slack App from the app drawer manually, some slack files will remain. (this may still be true even if you used a third party uninstaller application)

Now, these files arent in the common/usual Mac OSX locations eg ~/Library/Application Support/ etc

Instead they are located at:

~/Library/Containers/com.tinyspeck.slackmacgap/ in the form of a folder.

Using the terminal you can confirm the presence as such:


ls -lrt ~/Library/Containers/com.tinyspeck.slackmacgap/Data/

which will give you a long-form folder listing. Once presence is confirmed you can remove the lot by:


rm -rf ~/Library/Containers/com.tinyspeck.slackmacgap/


Tuesday, July 2, 2013

Fix: Error on Mac OSX: No connected camera !?!

Every now and then you fire up PhotoBooth, or FaceTime or another OSX app but it show no camera as being connected!!! Its seriously annoying to have to restart. Luckily there is a fix that doesn't require a restart at all :)

Try this:

First close all camera apps.


1a) Open 'Terminal' application

1b) Type sudo killall VDCAssistant and hit enter
1c) Enter the sudo (your admin) password
1d) Open your camera app

if that doesn't solve it, then you will need to shutdown and then boot-up again (as the restart wont help in that case) but that has only ever happened to me the once.


Hope that helped.


Peace.

Tuesday, May 21, 2013

Transcoding an MPEG4 H.264 movie on OSX to DIVX/XVID AVI

Ive had some fun(!) in converting an MPEG4 H.264 on my Mac (OSX Mountain Lion 10.8.3) to an older format, namely DIVX and also XVID avi - why you may ask? Well because my perfectly good player is a couple years older than I would like it to be, and happily plays XVID/DIVX but not new enough to play H.264.

I tried iFFMPEG, nope, player didnt recognise. I tried with Handbrake - broke in the player! 

ffmpegX was a success! (and after finally getting it working, see previous post) it was by far the quickest and easist to use - drag, drop, and go!

:)

Installing ffmpegX on OSX

A quick note to all, as the install for ffmpegX leaves a little to be desired in terms of User Experience (UX) !

Do it like this and it'll be easy peasy, lemon squeezy:


  1. Download the dmg file and mount it
  2. Optionally - copy to Applications (which is better practice, arguably)
  3. Run
  4. When presented with install binaries screen as per below image (you can always get back here from the ffmpegX application menu ;-) ) do as it says, in terms of get the intel codec (url provided in the screen as text, so select/highlight and paste into browser. (On first install when the binaries aren't assigned the items will appear in RED indicating you need to complete the install)
  5.  Same with the mencoder and mplayer, although two urls are displayed they are for the same ZIP file so only download the once.
  6. Extract/ unpack the mencoder/mplayer ZIP file from the above step
  7. Respectively assign the downloaded files to each "Locate" button - NOTE the mencoder and mplayer binaries are in the folder you unpacked the zip to
  8. I personally dont like entering my login/sudo password directly into the app (far from best practice), but did so to complete setup.
  9. Go to the ffmpegX Application menu, select 'Install Binaries' and check that no RED text is displayed, if it is, you need to re-download and assign the particular dependency.



Cheers and happy transcoding!

Saturday, April 23, 2011

Installing Tomcat on Mac OSX with MacPorts

All you need to know is here:

http://mikevalentiner.wordpress.com/2009/01/30/how-to-install-and-run-tomcat-on-macos/

In case it goes off line however, these are the basic steps you need to follow:

1) Install MacPorts - official guide is here...

2) Check macports installed correctly in the terminal, type
port -version


3) Install Tomcat by typing ‘sudo port install tomcat6′. Replace ‘tomcat6′ with ‘tomcat5′, if that is the version you are after. To see all versions of Tomcat available for install from MacPort, type ‘port list | grep tomcat’.


Below is the console blurb after the tomcat install succeeds:

# setting up needed dirs
# installing tomcat...
# adding the jstl libs
# maint. empty dirs...
# adding our scripts
# adding our scripts 2
---> Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting tomcat6 with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load tomcat6
###########################################################
---> Installing tomcat6 @6.0.32_0
#
# Configuration files in /opt/local/share/java/tomcat6/conf have been
# installed with a .sample extension so that they won't be replaced by a
# port update. Each will be copied to its proper location during the
# first startup of tomcat by catalina.sh or tomcatctl if you don't
# do this yourself first. If this _is_ an update, you might do a diff to
# verify that you're not missing anything in the newer .sample versions
# of these files.
#
# The script /opt/local/share/java/tomcat6/bin/tomcatctl has been installed to
# facilitate start and stop of tomcat using the jsvc utility, which allows you to
# start tomcat as a true daemon process. Once tomcat has acquired its TCP socket,
# jsvc will drop its root privileges and run as user www.
#
# Under Apple Java, control over the Java version used to launch tomcat6 is
# through the shell variable JAVA_JVM_VERSION. This variable should be set
# to a java version such as 1.5, 1.6, or CurrentJDK (for the default version).
# You may set JAVA_JVM_VERSION in /opt/local/share/java/tomcat6/bin/setenv.sh.
#



4) Once installed, you need to make a few tweeks to get it to run. The first is to set up the tomcat-users.xml file in tomcat6/conf. Edit the contents to look like:

<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>

<role rolename="tomcat"/>

<role rolename="manager"/>

<role rolename="admin"/>

<user username="tomcat" password="password" roles="tomcat,admin,manager"/>

<user username="some-username" password="the-password" roles="tomcat,admin,manager"/> </tomcat-users>



5) The second tweek is to “fix” the file permissions on a number of files. In your shell window, cd to the tomcat6/bin directory and set all the .sh files so they are readable and executable:

sudo chmod 755 *.sh

6) The final tweek is to set the tomcat6 log files so they are writeable by tomcat. cd to the logs directory and change file permissions:
sudo chmod 777 catalina.*

7) That should be it. Start Tomcat be cd’ing to the bin directory and running:
sudo ./startup.sh

8) You can verify Tomcat is up and running by browsing to http://localhost:8080 in your browser.