Tag Info

New answers tagged

1

The files ending with tilda ~ are usually temporary files, probably leaved by some editor. So it depends of the software The files, start with dot . are hidden files by UNIX (and linux) design. The purpose of temporary files is to give you backup in case of crash of your editor which can put edited file in unpredictable condition. If you are sure about ...


0

I'm still not clear on why this occurs, but I just tried installing from source, as recommended in this SO question about a different error message on Windows. install.packages("ggplot2", type="source",dependencies = TRUE) does the job.


0

Use first ssh-add in the terminal before using ssh. Like this OS X doesn't present you the GUI dialog of the ssh agent (and thus the error you see regarding the keychain, can be avoided). The key doesn't have to be converted to use it. Just check the permissions of your private key: They should be 0600 owned by you.


0

I'd contact the manufacturer of that expansion chassis - there is a chance that they have tried that configuration and not put it in the compatibility list (which includes no video output cards at all). However, you will need to check that video card driver software is available for the Mac, for example Nvidia do not list Mac display drivers for the NVS 510 ...


1

Defaults on Yosemite seem to be 12K and 10K: $ sysctl -a | grep kern.maxfiles kern.maxfiles: 12288 kern.maxfilesperproc: 10240 Only setting kern.maxfiles in /etc/sysctl.conf seems to have solved my problems. /etc/sysctl.conf file: kern.maxfiles=24576


2

Instead of -x "Icon" use -x "*Icon*"


0

So i figured it out after hours of tinkering but couldnt have done it without this forum so thanks. Tried to bootcamp windows 8 on my buddies mid 2010 imac desktop with a broken disk drive. I kept on getting the MBR GPT conflict error. i tried several times to install windows using bootcamp but eventually ditched it because it just wouldnt work. With no ...


0

On Mac OS X Yosemite, run the following command: vi ~/.profile Then add the following line: source ~/.bashrc Now save and close .profile, then open a new Terminal window or just run: source ~/.profile See also this answer. It worked on v10.10.3.


0

I had this problem here's what worked for me: Go to your Modem's url (usually it's 192.168.2.1) Go to advanced Firewall Settings Create a new custom rule Choose the port you want (for basic HTTP traffic it's 80) Enable all traffic for that port Basically, your modem / firewall will block all incoming web traffic, naturally. You must specifically allow ...


0

Open the PDF in Irfanview (which creates a bitmapped image from it). Then use Irfanview to blot out the necessary passages and save it, either as PDF or as JPEG. As Yoni points out you will no longer have searchable text if you do this, because it is now an image, not a text document. If you need to be able to select/search the rest of the text, then you ...


0

If you don't need the text to be selectable or searchable you can try this trick: After blocking out the text you want hidden, export the document to TIFF format. You do this via the menu item File > Export... and then choosing TIFF from the format menu at the bottom. This will create a large image file. Open this file and export again but this time back ...


0

To affect system-wide settings, you probably should modify /etc/profile or /etc/bashrc (the latter is sourced from /etc/profile). OSX uses bash by default for its /bin/sh. However, it does not use "Linux under the covers", but rather is mostly BSD (with some exceptions such as bash). Here are some related questions/discussion (which suggest OSX-specific ...


0

I decided to try just creating another account, moving the contents of the /Users/ directory and then chown'ing it. Worked first time, so it looks like theres a bug in the account creation part of the migration tool. Previous to this I had tried emptying the migrated users profile directory completely - which made no difference what so ever, neither ...


0

You can use dsstore_dump.pl tool which can read a store file's records in human-readable format. It's part of the Mac::Finder::DSStore project written in perl by Wim L which provides routines for reading and writing the .DS_Store files generated by the OS X. Sample usage: $ perl dsstore_dump.pl ~/.Trash/.DS_Store &makeEntries("foo.png", ...


0

Earlier versions of BBEdit may not have been able to do this, but as of version 11, this is possible via: Preferences -> Editing -> Highlight instances of selected text Do note that the "free version" of BBEdit, called "TextWrangler", doesn't have this feature (it seems to be one of a number of items reserved for TextWrangler's big brother to ...


0

This has also been discussed on Apple SE. I currently use the drag and drop solution. This has the benefit whereby you can have a large number of template files. So addition to have a blank textfile, you could also have other common blank files that you might use (e.g., Excel, Word, LaTeX templates, etc.) The answer is here, which I quote below: A ...


1

Drop the partition part (disks1 part in bold) as you write to the drive NOT a partition (for the context of this question at least -- as there are MORE ADVANCED use cases and ways to safely do to a partition) As for the 4M size issue how big is the actual USB stick ? is there other stuff on the stick presently ---if so back it up if its meaningful to you ...


1

Let's dissect the error. dd: bs: illegal numeric value bs: you set bs=4M in your command line. illegal numeric value: This means the value of bs isn't valid ("legal") If I recall correctly, the "m" in bs has to be lowercase. Of course you can use bs=4000000 (4 million, 4M) instead to avoid this. Also, the guide (I assume) you are using is assuming ...


0

This will append to the file: echo "some text" >> someFile.txt This will overwrite to the file: echo "some text" > someFile.txt This will append text from one file to another: cat someFile.txt >> someOtherFile.txt This will overwrite text from one file to another: cat someFile.txt > someOtherFile.txt


0

Most *nix systems support a few CLI text editors, the most common of which is vi and vim. See here (and google for about a thousand others) for a tutorial on vi. http://www.howtogeek.com/102468/a-beginners-guide-to-editing-text-files-with-vi/ Another really common one, especially for programmers is emacs. Tutorial here: ...


1

On most OS's this is done with redirect commands, almost always these are > to over-write any existing file, or >> to append to a file. Lookup pipes and redirects for more info. Not a Mac expert but since MacOS is largely unix these days I imagine it will be the same.


0

Yes, you would experience better performance by running it in a Boot Camp partition. However, given your video card, I doubt you will have a good chance at running Skyrim smoothly. The requirements on your link state VRAM to be at least 512MB, which your card doesn't have. Purchasing a newer stock NVIDIA Graphics card after updating your Mac to a newer ...


0

To remove the FileVault2 master password, just delete: /Library/Keychains/FileVaultMaster.keychain /Library/Keychains/FileVaultMaster.cer As with every system files, remember to back them up somewhere in case it crashes everything. You're now done removing the master password. Now, you may want to set a new strong password in System ...


0

First things first, enable bluetooth on your phone, pair it with OSX. Now on the phone (this is on Android Lollipop), go to Settings -> Wireless & networks -> More -> Tethering & portable hotspot -> enable Bluetooth tethering. On OSX, create a new Bluetooth PAN, you will be presented with the device you paired earlier Then ...


0

Create individual files with the desired PATH variable and store them in a directory in your home folder. Example: cat ~/ch_path.d/brew PATH="/usr/local/bin:/(and so on)" export PATH Then you can source whatever path you want source ~/ch_path.d/brew


1

Depending on how complicated your use-case actually is, you can set and/or change a variable for just one command by prefixing the command with the variable's value. For example, 1 prompt> X=1 2 prompt> X=2 some_command arg1 arg2 3 prompt> echo $X the variable X will be 2 inside some_command, but returned back to X=1 on line 3. So you could ...


1

Create an extra partition on your with Disk Utility. Download Yosemite from Appstore. Install it on the partition. Reboot from it and do your things. Reboot from the normal partition, launch Server.app and create the NetRestore disk (using a menu item) Store the image in the proper directory and enable NetInstall under the advanced options of Server.app.


1

The solution for your problem is very simple (and it can be found at the end of this answer). But if you want to know better why the error are occurring and why the proposed solution works, you can read the entire solution. What exactly does locate.updatedb? This is the currently behavior of locate.updatedb: If you are running the script as root, it ...


0

This is a bug in the legacy encryption protocol. Actually the legacy encryption has now been removed. Please try using the latest version which uses SSL encryption instead.


1

Thanks to @rickfillion: ssh -t me@server.com "cd sub/folders/; bash -l"


0

ssh user@ip cd /path/to/dir SHOULD do it fine OR set it in the ssh_config file for that connection even:


0

I went into Gmail on the browser, then settings -> labels. Then unticked "Show in IMAP", back to inbox then closed browser. I then gave it a moment and Quit mail and opened it again. There was a huge sync, re-downloading all of Gmail messages again and the Archived folder is gone.


0

I am experiencing the same issue - most often a short green bar flickering in the bottom half of the screen. It seems often to be when mail.app open. Is this your experience, or does this happen with other apps as well?


0

I solved the problem with the linewrapping with https://www.diffchecker.com/ You can save the website locally and it still work. It shows you the differences (also in line) und wraps the lines.


0

anaconda USES BASH so short of you running sudo chsh -s /usr/bin/zsh $username FIRST it will not look in ~/.zshrc as zsh is installed but not running


3

You probably have a .png file in your current directory and the * is expanded by your shell. Here's a practical explanation. Create a directory called test, then another one called sub inside it and finally a file called myfile.txt in sub. Then cd into test. Here are commands to do that: ~ >mkdir -p test/sub ~ >touch test/sub/myfile.txt ~ >cd test ...


0

So the scripts you want run is on a remote server, firstly you have to connect to the server via ssh, you can do it with the default Terminal app or iTerm: ssh username@serverip. This ssh connection process is the done by Putty as on windows.


0

I think it's the Darwin Kernel Version. I have the same problems. I've tested everthing. Hardware-Test: OK. System-Check: OK. I use LittleSnitch and VirtualBox for a long time. Bevore the problems started. I'm using third party RAM. But I'm using it for years without a problem. So the new Kernel is the only new thing.


0

Ok, found a workaround. Apparently there are two different modes of search: - Incremental search (cmd–i), and - Find (cmd-f) cmd-i does exactly what I need, so I switched shortcuts in my Preferences->Key Bindings (User) from: { "keys": ["super+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse":false} }, { "keys": ...


2

Are you looking for the .../folder/subfolder/ folder itself, all files in it, or some specific file in it? For the folder itself: find / -path "*/folder/subfolder" -type d For all files in it: find / -path "*/folder/subfolder/*" For a specific file directly in the folder: find / -path "*/folder/subfolder/filename" For a specific file somewhere under ...


1

You can read the source code of /usr/sbin/apachectl. apachectl start/restart/stop calls launchctl load -w $LAUNCHD_JOB,and the job is a launch plist config /System/Library/LaunchDaemon/org.apache.httpd.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...


0

I'd use find with grep: find | grep -i "\/folder\/subfolder\/"


0

Try find / -name "*/?older/?ubfolder/*" -print That would, starting from the root, output every file that contained /folder/subfolder/ in its path. Note the '?' marks are to compensate for case-sensitivity.


1

According to the following Apple Support Community post, the fix might be raising the Session Timeout: On the Windows machine, open Regedit, and go to \HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\ Add a DWORD value called SessTimeout and set it for something like 3000 seconds Restart workstation service ...


1

In addition to @Tim's answer, but also with input from this message on TextMate's mailing list , one can create the following one-key shortcut: ( { command = 'selectWord:'; }, { command = 'copySelectionToFindPboard:'; }, { command = 'findAllInSelection:'; }, ) I assigned this to Command-A, and it works quite nicely, highlighting all ...


2

If your keyboard is near your mouse, you can hold the shift key down while you operate the scroll wheel. The window should scroll left and right. Of course, the left and right arrow keys will scroll the contents of a window left or right in short steps. Some mouse devices have additional controls and a software driver designed for Macs (Logitech, for ...


2

Because bash does variable expansion before interpreting variable assignment statements. So, since SOMETHING was not previously defined, your command becomes… SOMETHING=1 echo '' …then gets executed.


0

Assigning a variable a value, likeSOMETHING=1, and printing the value of the variable, like echo $SOMETHING, are two separate things that use two separate statements/commands. Usually in a shell script they could take two separate lines. The && allows you to write two separate commands on the same line. It's the same as SOMETHING=1; echo ...


1

To prevent an app, one time, from opening previous windows at launch, hold the Shift ⇧ key immediately after you double-click to launch. To make it open only the docs you want opened each time, always close unwanted documents before quitting. To permanently stop it from opening previously open documents, go to Terminal & type defaults write ...


1

Briefly speaking, a scoped DNS query can use only specified network interfaces (e.g. Ethernet or WiFi), while non-scoped can use any available interface. More verbosely, an application that wants to resolve a name, sends a request (either scoped or non-scoped) to a resolver (usually a DNS client application), if the resolver does not have the answer cached, ...



Top 50 recent answers are included