I clicked on something and now all my windows have a black boundary around them whenever I focus on it. This happens on menu bar items as well when in focus. How do I remove it?
There is a pretty awesome applescript called "Open Terminal Here" ( http://www.entropy.ch/software/applescript/ ) which you can add to your finder's toolbar and click when you want to launch a terminal console which is set to that directory.
Sometimes I need to be root, and so I end up starting terminal, doing something like sudo -i and then I have to change back to the previous directory because the sudo command is landing me in /var/root.
I'm using sudo -i because I like it to load things like aliases / the bash profile.
The script is applescript, and here's the important part of how it works:
...
set cmd to "cd " & quoted form of the_path & " && echo $'\\ec'"
...
tell application "Terminal"
activate
do script with command cmd
How do I get this to load as root?
Both of my Macs play this sonar sound that sounds like "ping ping ping ping" with a small amount of delay / echo. It occurs to me that it is played once a day but I'm not sure why.
I checked iCal but didn't found anything (I don't use iCal anyways but maybe it's connected to Google calendar or my iPhone).
I've heard this sound played by both my MacBook and my iMac but not yet simultaneously.
Update
This sound is not submarine.aiff. It sounds much more like what skub linked to but there are 4 "pings" instead of 1.
It is played at different times (today around 5pm and again at 8.45, but as far as remember not everyday). That's why I'm not sure I could record it, but I could try.
The sound might come from my iPhone, though I'm not sure which apps are alowed to play sound when they are not running. Also I don't see any indication in the message center or something similar.
I think I have to start taking notes on which apps running.
I need to use a command for converting my images to pvrtc. It is located in /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool.
Right now I have to be inside that folder to be able to use the command. How can I set it up so I can run this command from anywhere?
Thanks
I try advice like this that recommends adding the following to your .profile:
function tabname {
printf "\e]1;$1\a"
}
So you can type tabname brokenbox to name your tab. The problem is as soon as I also type ssh [email protected] and log in, it wipes the tab name. I want a tab name that's as persistent as the tab, not the level of session I happen to be in. Is this possible? I don't even know what layer that data lives in.
I'd like to resize a bunch of images of variable size to be 720 by 480. Furthermore, I'd like to have the final image be rotated so that it is right side up. Any tools to help with the resizing at least?
Hello. I've just bought new Eee PC 1005 (with Atom N450, 250GB and 2GB memory) without any pre-installed system. Now I'd like to install windows and linux distribution on in. What should I choose ? I am a programmer and web designer, so I need Java IDE , Python interpreters, and Photoshop (on windows). Will Win 7 Pro 32bit work ?Or should I choose Windows XP ? And what about linux distro ? Ubuntu, Eeebuntu, Ubuntu netbook edition ?
btw is it true that linux's grub overrides mbr so that hardware system restore doesn't work ?
When I'm at work, I access various intranet pages as well as the wider Internet through ethernet. However, the company LAN blocks some ports (e.g. Google Calendar). I can get to those through WiFi. So, I gave the Airport priority, and then using route add, I set up selective routing: all intranet traffic goes through the ethernet and everything else via WiFi: sudo route add 10.0.0.0/8 <intranet gateway>.
However, there are a number of intranet sites that have their own DNS; i.e., hr.company.com only resolves on the intranet. The only way that I can get the DNS to work properly is to add the internal DNS server to the Airport DNS listing, however I fear that when I go elsewhere and forget, this will break things.
What's the right way to get the DNS to resolve using this setup?
When I am trying to secure empty my trash, I get a dialogue box saying:
The operation can’t be completed because you don’t have permission to access some of the items."
I have Chrome open most of the time in the lower right corner of my screen and work mostly with tabs. Sometimes I need a new Chrome window (instance) and hit cmd-n.
Now the new window always opens up in the upper left and I have to center it.
Is there a way to automatically center new chrome windows (or maybe maximize them..)?
Every day a new "SophosUpdate" folder/package will appear on my desktop (see screenshot).
When I highlight it my trash can turns into an eject button. When I drag them to the eject button nothing happens. Also nothing happens when I right click one of them and select "eject".
The only thing that got rid of them once was starting up in safe mode but they keep coming back after that.
Does anyone know what I can do? I'm stuck.
I bought (and just received) a new 1u dell poweredge 860 (got it on ebay for $35).
I finished installing Ubuntu Server (Ubuntu Server 12.04.3 LTS), install apache/mariadb/memcache/php5
works great but I am scared about security.
so far I am the only one using the server but eventually more people (friends, friends of friends) will use this server, use ssh etc...
I want to know what can I do to secure all the information and not get hacked, both from the web or ssh or ddos and any other attack possible.
Does Ubuntu Server does it for you right away? or I have to fix it my self?
Thank you
EDIT:
I installed (so far):
All dev tools
ssh server
LAMP
I didn't install:
Graphical interface
So far I had /Applications/play-1.2.5/ added to my $PATH variable. Now I'm working with 2.2.1, which I installed in /Applications/play-2.2.1 and changed in ~/.bash_profile (which is getting sourced at startup). However, when printing $PATH, 1.2.5 is somehow still around:
mbp:~ user$ echo $PATH
/usr/local/share/npm/bin:/Applications/play-2.2.1:/usr/local/heroku/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/play-1.2.5:/Applications/XAMPP/xamppfiles/bin/:/opt/X11/bin
As far as I now, I only entered $PATH variables in .bash_profile, which looks like this:
mbp:~ user$ cat .bash_profile
source ~/.git-completion.bash
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### Play Framework
export PATH="/Applications/play-2.2.1:$PATH"
export PATH="/usr/local/share/npm/bin:$PATH"
I'm also not sure where the XAMPP extension to the variable comes from. Can I see somewhere which other files are being sourced on startup?
I'm a software developer and my workstation is running Win7 Ultimate, 64bit. I want to run a virtual PC on which I can deploy and run the web-software I create, as a virtual web-server PC. I want the VM to also be Windows as that's what I know, the version isn't too important but on that PC I want to run things like MySQL, TomCat, etc.
I see VMWare make 'Player', also I see VirtualBox and I know MS also have solutions too, which I've heard good things about.
Does it make much difference which I use as far as creating & using VMs? Or are they all pretty similar?
After the recent 25 GB update, I wanted to sync my pictures with SkyDrive as I finally have enough space (My almost 10 GB Dropbox is full with other data and I need more than 10 GB for my pictures alone).
Anyway, the symlink (ln -s) option is not really working as it just creates an alias inside the skydrive which is not even synchronised. Is there any other option or do I have to live with moving the pictures folder into SkyDrive (which I wouldn't really want to do).
Hi,
I am so tired to every day at 8:00 am open Skype program to my job. I need a little script to set the hour to open and the hour to close. Sorry for my worst english.
Thanks
I wrote a little shellscript that helps installing a web application. The script itself just downloads a zip archive, extracts it and changes the permissions of the extracted files to the one needed to run the webapp.
The problem now is that some users reported that after running my script, all the permissions of every file in their home directory or even on their whole computer changed to 000 (except the actual unzipped files which do have the correct permissions).
The only lines in my script actually doing IO are these:
URL="http://foo.com/"
FILENAME="some.zip"
curl --silent "$URL$FILENAME" -o $FILENAME > /dev/null
echo "Unzipping...\c"
if unzip -oqq $FILENAME > /dev/null
then
chmod -R 777 app/tmp app/webroot app/Config/database* app/configuration*
chown -R www:www *
rm $FILENAME
echo "\t\t\tOK"
exit 0
else
echo "\t\t\tERROR"
exit 1
fi
I seriously can't explain this to myself. How can this even be possible?
It is entirely possible that the users accidentally ran the script in their home directory, but that still wouldn't explain why the permissions where set to 000, not www/777.
I am trying to connect from my MacBook to my Windows 7 machine within my own network - if it will work from outside my network that's a plus but no need to have.
My Windows 7 machine is freshly installed with Windows 7 Home Premium. It runs the built-in firewall with no settings changed so far as well as Microsoft Security Essentials.
So far I tried CoRD and Microsofts Remote Desktop Connections to connect from my Mac to my Windows machine without any success.
I did try and disabled the firewall on my Windows machine but could not connect either. The reason I did this was to check wether there is a Windows firewall setting preventing me from connecting.
On top of that I manually started the Remote Desktop Services and Remote Desktop Configuration within services.msc.
Is there anything else I have to enable for a remote desktop connection?
Could there be any router setting I have to tweak? Since I do not want to connect from outside my own network I thought I don't have to do any port forwarding.
The error messages I retrieve are all connection timeouts.
I can however ping the hostname and/or IP address.
Any help would be greatly appreciated.
Thanks a lot,
jrn
I have a little $PATH problem: I just reinstalled MacPorts, and my path contains the MacPorts directories as it should at the beginning of $PATH. However, despite me having no such setting in my ~/.bashrc, ~/.bash_profile or ~/.profile, /Library/Frameworks/Python.framework/Versions/2.6/bin is somehow getting appended to the beginning of my $PATH:
0 07:15:11pm ~ $ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I'd like to remove it as the MacPorts version of Python is newer. This must be appended after all the above-listed files are read, but I can't think of where. There is no mention of this in /etc/profile, /etc/bashrc or /etc/paths. Any assistance would be greatly appreciated. Thanks!
I need to run an app at startup/login on my mac. I want it to launch in the background and start doing it's work without interrupting me or me having to start it up because I invariably forget and then when I need it, it wasn't running!
I have tried using applescript to tell terminal to run it and type my password in, but it ends up opening multiple Terminal windows and not working. Ideally I need a script that I can just add to the user login items and it will run for me.
The app has no way of taking a password argument either and it has a password as well as the sudo! I need a solution that can either be done as an applescript (which can be made into an executable) or i need a commandline script but I have no idea about them.
This is the manual code I type
>sudo serverStatus
>password:123456
>password:serverpass
Not sure if this is the right stack to ask, but I have no idea now and it's above my head!
Thanks :D
My applescript:
tell application Terminal
activate
do shell script "sudo serverStatus"
delay 5
do shell script "123456"
delay 2
do shell script "serverpass"
end tell
I'm in dire straights. I was trying to replace my java JDK and downgrade to 1.6 and somehow managed to completely screw up all the previous versions in the process. Bottom line, my Mac has no JDK installed at all.
I've tried reinstalling java 1.7 from Oracle, I've tried using Pacifist to manually extract the files from the 1.6 Apple Java... nothing.
When I open terminal and use java -version all I get is
-bash: java: command not found
My real goal is just to get back to java 1.7, but even after running the installer, java is still inaccessible to terminal and other applications.
I want to know what files a specific application is trying to access on my disk. I know that you can use fs_usage, but this outputs events from all applications. I know that you can target a single application, but only one that is already running. I want to detect all readfile-events an application is trying to do, ever since it is started. I don't want to miss out on any event.
How do you achieve this?
I am installing Visual Studio 2010 on a vista 64 bits machine.
During the install it asked for a restart.
Since that, vista won't load. I tried restore to previous good configuration - didn't help.
I am only able to boot it using safe mode with networking. When I did that, it continued the vista part of the install (the screen with the 3 out of 3 updates) but after that when I restarted again - still fails.
I am installing vs2010 on a vista 64bit machine.
During the install it asked for a restart.
Since that, vista won't load.
I tried restore to previous good config - didn't help.
I am only able to boot it using safe mode with networking.
When I did that, it continued the vista part of the install (the screen with the 3 out of 3 updates) but after that when I restarted again - still fails.
HELP!!!