Tag Info

New answers tagged

0

I've been running it like this: sudo dtruss -f -p 12345 2> /tmp/trace.txt -f says follow child processes, -p specifies which process ID to trace, 2> pipes standard error into the output file. For some reason dtruss outputs everything on stderr.


1

The ~/.zshrc doesn’t exist by default in Mac OS X so you need to create it. The ~/ translates to your users home directory and the .zshrc is the ZSH configuration file itself. So just open up a “Terminal” or “iTerm” window and create that file like this; I am using nano as a text editor but feel free to use whatever text editor you feel comfortable with: ...


0

Note that I am connected to a network in large institute. That’s exactly it. SSH does not have anything to do with this—and does not blindly integrate with a large network when it’s enabled—but rather the fact that your IP address has a hostname connected to it within your institute’s network. When you enable “Remote Login” a message—that reads ...


0

SSH does not integrate with other systems by default. Normally it will just open up port 22 on your local computer and allow SSH clients to connect to it. members-12-13.hallsnetwork.xxxx.com is most likely the reverse-DNS for your IP address. Try finding your IP address using ifconfig and enter it here. I would bet that it will give you the same hostname.


0

finch should suit your neds. It's ncurses based and connects to gchat through XMPP. brew install finch https://bhavyanshu.me/tutorials/use-fbgtalk-chat-using-terminal-console/12/07/2013/


1

I just removed the numbers ABOVE the one I wanted to call, and now the contact shows up fine in Skype. One of the numbers AVOBE the one I wanted to call had commas in it, and some code I used with long distance calling cards. So it seems the answer is "Skype doesn't show a contact based on it having at least ONE valid number, but expecting ALL of them ...


1

You can use du -ah . which displays sizes of all files and directories recursively. This can be combined with sort, so you'll see the top-20 biggest directories in the current folder: du -ah . | sort -rh | head -20 Note: Option -h for sort is not available on OSX/BSD, so you've to install sort from coreutils (e.g. via brew) and apply the bin path to ...


0

Perhaps this short terminal command will help: watch -x egrep -rhn 'TODO|FIXME' . To explain, watch repeatedly -x executes the given command at a default interval. egrep searches with the provided RegEx through files -r recursively in the . current directory, -h removes filename headers from output (just remove the h if you want those), and -n prepends ...


1

If you want to use utilities that are already present on Mac OS X systems, you can use Secure Shell (SSH), which is a more secure means to log into a remote system than telnet, since SSH connections are encrypted. First you would need to configure her system to enable it to function as an SSH server. You can do that through System Preferences by going to ...


-1

Since you know the name of the process, you can use killall: $ killall "Google Chrome"


0

I guess it's too late for the OP, but I can report on my recent experience with OS X 10.10 Yosemite. Looks like you can NOT configure syslogd in OS X to directly recognise the sender. In fact, once the log messages have been received into ASL (Apple System Log), the only way to recognise them is because they have some nonsensical keys: PID is 0xFFFFFFFF+1, ...


0

I tried this in OS X 10.9.5 sudo kextunload /System/Library/Extensions/AppleUSBMultitouch.kext it gives error "(kernel) Can't unload kext com.apple.driver.AppleUSBMultitouch; classes have instances" but it disables the Trackpad successfully. Then after sudo kextload /System/Library/Extensions/AppleUSBMultitouch.kext it enables the Trackpad again.


0

On windows computer in word I usually do is Press Alt+E together once and press E and I one after other to get to equation. However i Like what Indrek said Alt + =.


4

This is pretty easy to explain. Let’s look at a screenshot of “Activity Monitor” taken from my Mac OS X 10.9.5 system just now: With that as a reference, let’s do some math based on the items on the lower right-hand side of that screenshot: App Memory: 1.59GB File Cache: 1.32GB Wired Memory: 1.30GB Add those numbers up and the total is: 4.21GB which ...


0

Note that memory "usage" is actually rather hard to estimate. There is a very enlightening post about memory usage in Android over at Stack Overflow; although there are clearly differences between Mac OS X and the modified Linux kernel used in Android, there are enough similarities that it’s still relevant. Taking into account shared memory, per-process ...


0

COPYFILE_DISABLE=1 tar cf filename.tar or tar --disable-copyfile cf filename.tar This is the least discoverable feature of tar on OS X that I am personally aware of. See also Why do I get files like ._foo in my tarball on OS X?


5

osascript -e 'quit app "/Applications/Google Chrome.app"' As per this page. Or, as per the comments, osascript -e 'tell app "/Applications/Google Chrome.app" to quit'


1

Considering this question is the top result on Google for "mac grab save as png", I thought I'd add my workaround for this. The Grab app allows you to include a mouse pointer in a screenshot, which I use frequently to illustrate hover states and such. The built-in ⌘-Shift-3 / 4 screenshot utility doesn't have this functionality, as far as I know. So here's ...


2

The Chrome Remote Desktop addon for Google Chrome is one of the easiest and most newbie-friendly ways to access another computer remotely. Chrome Remote Desktop allows you to remotely access one computer from another over the Internet. For example, you can use the app to securely access your files or applications from another computer. Or you can give a ...


3

The accepted answer is misleading. On OS X (and U*x generally), the name of the file doesn't matter at all. What matters is that it needs to have executable permission (chmod +x file) and a correct shebang line. bash$ cat > randomness #!/bin/sh echo Hello, world Ctrl+D bash$ chmod +x randomness bash$ ./randomness Hello, world bash$


0

For plaintext tabs, you don't need to replace the entire TextEdit app to change it. I looked at the source they changed and it provides the simpler answer: Open the Terminal and type defaults write com.apple.TextEdit "TabWidth" '4' Where '4' is the number of spaces a tab should be.


-2

Just write/paste your commands in TextEdit app then save it to desktop .rtf, and once its on the desktop press on the title and rename to your preferred extension. A window will pop up asking you if you are sure you want to save as... select your option. Done. The icon should change to represent the app that can open the extension. Good luck.


0

Seems like the best solution would be to install MPlayer in Mac OS X and then run a command line Bash script such as this one shown here: find -type f -name "*.avi" -print0 | xargs -0 mplayer -vo dummy -ao dummy -identify 2>/dev/null | perl -nle '/ID_LENGTH=([0-9\.]+)/ && ($t +=$1) && printf "%02d:%02d:%02d\n",$t/3600,$t/60%60,$t%60' | ...


0

Here's how I resolved it... and more importantly, what caused it. Cause A friend came over and connected to my network while I was using my machine. Their machine, rightly so, showed up in my Finder shares (as a remote drive). During this time, I closed my laptop and it went to sleep -- remembering that it had shares. A little later I woke my laptop at ...


1

It's not as easy as a "command-tab" kind of switching, but you can press F10, then press the left or right arrow key, then press F10 again.


0

The simple answer for me, if you're just completely removing external monitors (e.g., for going to a conference with your laptop) is to just close the lid and open it again. All of the other answers (^1, Zoom, moving windows) did not work for me.


0

I found a way! Under Preferences → Integration, you can install a command line tool, gittower, which can open a local repo. You use it by calling gittower /path/to/repo. gittower . works nicely if your current directory is a clone of the repo in question.


1

The Finder doesn't have a Cut command, as such. Use Cmd ⌘ C to copy, then Cmd ⌘ Opt ⌥ C to simultaneously Cut from the previous location & paste to the new. Alternatively, hold Cmd ⌘ whilst dragging from one partition to another to Move instead of Copy.


0

Check the owner of the according directories. You can do so by ls -ld <dir>. You likely find that one has wheel as group and the other to be staff. Change the wrong one with sudo chgrp staff <dir> where <dir> is the name of the directory.


0

I'm seeing this with both headless and normal mode. A workaround for me is just to stop opendirectoryd: sudo launchctl stop com.apple.opendirectoryd Sadly, something restarts it. This config tweak is currently working for me: http://superuser.com/a/426719/418576


0

Is ownership being ignored on the home folder volume? In the Finder, Get Info on the volume (note that it must be the volume itself, not a folder or file in it), expand the "Sharing & Permissions" section, and see if "Ignore ownership on this volume" is selected. If it is, click the padlock icon, authenticate, then switch it off.


-1

Cmd+L will take you back to the url bar in Chrome, which is also a search bar.


0

I also miss the ease at which I could navigate Windows menus from the keyboard :( A couple people mentioned that you can use ctrl-F2 to get to the menu bar. This seems really awkward to me, so I took the advice of this CNET article and changed it to option-downArrow. As the article mentions, the advantage to this shortcut is that after using it, your finger ...


0

Chrome - Settings - Advance Settings - Use hardware acceleration when available - deselect it.


0

I use Mac OS X—currently 10.9 (Mavericks)—and I like to use ExifTool for batch metadata operations like this. Have used it from Mac OS X 10.6 onwards and even on different flavors of Linux such as Ubuntu and it works great. As far as bulk scripting goes, I use this very simply Bash script that uses find to wipe all metadata from images; in this case JPEG ...


1

brew has options you can set type brew options ffmpeg then you can do thing like brew install ffmpeg --with-fdk-aac. But, there is no twolame option. You can modify the brew formula like so: http://stackoverflow.com/questions/3939651/how-to-modify-a-homebrew-formula


0

It looks like multiple problems which might be related to each other or not: Status: Server sent passive reply with unroutable address. Using server address instead. This is usually the case if the server is deployed behind some firewall or NAT router and the server itself does not have a public IP. Error: Primary connection and ...


0

@grgarside points the way. I want to note the steps of solving problems like this. Double click the process name in Activiy Monitor, then select "Open Files and Ports" tab, identify the related file path of the process Locate the file in Finder (cmd-shift-G) > right click the file > Show Package Contents View Info.plist in any text editor To view *.strings ...


0

You can use Ctrl+Cmd+F for maximising / minimising (already maximised) applications on OS X. Once you maximised to the entire screen, you can toggle between applications by easily swiping left or right using four fingers. (This is the default gesture.)


0

If Spotlight is running on that Mac laptop, then you could do something like this via Spotlight as explained here: For example, this would find any files created on February 14, 2015: created: 02/14/2015 For example, this would find any files modified on February 14, 2015: modified: 02/14/2015 And if you wanted to find any files created after ...


0

Perhaps the Macbook Air (not the pro) has stealth mode enabled. Quoting from Apple website: Enabling stealth mode prevents the computer from responding to probing requests. The computer still answers incoming requests for authorized apps. Unexpected requests, such as ICMP (ping) are ignored.


1

You want to create a USB installer, if the Linux Mint live image didn't include an installer program. This link will help with creating live USB installers, and Ubuntu isn't a half bad candidate for use on a Mac either. The instructions from Step 4 onward should also work from Linux Mint. You may need an external hard drive or to format the Macbook's main ...


0

Log into your router’s web interface—usually by putting your “Default Gateway” in your web browser—then there should be a status tab or something along those lines. In that menu there should be a list of all devices connected to your network.


0

Tim Klein posted a solution on the Apple Support Community that did the trick: Sign out of the iCloud account on both devices. (I let iCloud delete everything when asked. It all comes back when sign back in later) Reset Network Settings on the iPhone (General -> Reset -> Reset Network Settings) If necessary, Rename the phone to what you want it ...


0

I ran into a similar problem trying to use Bootcamp on my MBA (late 2010 model) after I did a clean install of Yosemite. With this version I no longer have the option to use an ISO to make a bootable USB drive (and I never had the option to install anything newer than Windows 7). The fix is easy: Open Terminal and elevate to root: sudo -i Edit ...


2

Right click on the photoshop icon in the Dock. Go to "Options" and uncheck "Open at Login".


0

You ought to be able to use "Document Container" as a search criterion, then save the whole thing as a Smart Folder… … unfortunately, it doesn't work :-( Any search using Document Container returns no results [some people have reported it will work if the container is your iCloud Drive, but I can't even get that to work] - apparently someone forgot to hook ...


0

Even if you can successfully ping another router on the internet - and this is often blocked - it only confirms the presence of this router, not of any computers behind it. However many (but not all) routers will allow you to open ports from the outside to internal computers and this can provide a way to test that such computer is active - e.g. by ...


0

Does running brew doctor resolve the issue or otherwise turn anything up? (I can't post comments yet but this may help fix the issue) Edit - I would run: brew doctor brew update brew doctor brew cleanup


0

Yes it does, as windows reads all fonts on start up and must validate all fonts in: C:\windows\fonts before resuming start up. If you install new fonts in windows, you will experience slower boot by windows. That is why it is recommended that you only keep the main fonts in windows listed in this link and keep also fonts you are using in special ...



Top 50 recent answers are included