Tag Info

Hot answers tagged

33

Yes, your cigarette will be irreparably damaged. You will have to replace it with a new one.


28

I would say that the only damage caused by a cigarette to the aluminum itself would be cosmetic. Clearly, the pebbled surface will trap nicotine and ash on the Aluminum. I suspect that Apple anodizes their unibody parts - and if so, that creates a hard, durable layer of aluminum oxide that protects the metal from scratches, stains, and further oxidation I ...


17

I asked this question on the Apple Developer Forums as well and got back this, official response. Change the Info.plist of the .app itself to contain an "LSEnvironment" dictionary with the environment variables you want. ~/.MacOSX/environment.plist is no longer supported.


10

There is a much easier way. Place a text file in the folder /etc/paths.d/. In this text file, enter the desired path AND a newline. The best way is to create a new file for each path. On my system, there is a file called MySQL with the text '/usr/local/mysql/bin' and a newline.


9

Place the electronics that contain a lithium based battery in the shade and keep windows open a crack. If possible, place the vehicle in the shade or use light or reflective colored windshield shades to reduce the heat that stays in the car. Usually the trunk (or a well insulated bag) will lag the passenger compartment many tens of degrees and warm up ...


9

After many trials with different options I conclude: Is there a unified way to set the PATH for applications launched by different means (like shell script, Finder and Spotlight)? Well, yes and no: No: Setting PATH in shell start up scripts (e.g. .bashrc) works only for apps launched by shells. No: Setting PATH for the current launchd process via ...


8

As you have discovered, the use of environment.plist file is no longer followed, the variables stored in Info.plist as LSEnvironment strings are only set by launchd. You cannot depend on them to set a general environment variable that the terminal will set if you call your program from the terminal/shell directly. The good news is the open -a command does ...


8

Yes you can, but there are some aspects of the environment of the beach life that need to be controlled. Salt water corrodes electronics fiercely. Waves crashing means that the atmosphere at a beach is saturated with water droplets with a high concentration of salt in many cases. Direct sun on the front black face of any iOS device can over heat it ...


8

With Mountain Lion /etc/launchd.conf is where you should set the GUI applications Path. Remember it's not a script file; it only supports launchctl commands so you should write something like: setenv PATH /new/path:/usr/bin:/bin:/usr/sbin:/sbin Note also that it doesn't support shell environment variable substitutions (like $PATH) so you'll have to set ...


8

Yosemite /etc/launchd.conf is no longer supported in 10.10. See man launchctl: The /etc/launchd.conf file is no longer consulted for subcommands to run during early boot time; this functionality was removed for security considerations. You can now for example save this plist as ~/Library/LaunchAgents/my.startup.plist: <?xml version="1.0" ...


7

I have a .profile in my home directory; it contains many export … statements for environment variables. You can create such a file by opening a Terminal and issuing the command touch .profile Close Terminal. Then you should open that file in a plain-text editor (TextWrangler for example). You can also use nano .profile in a Terminal window (current ...


7

I'm going to stick my neck and say that you cannot do this. No matter what materials you have to hand, your MacBook requires open access to the internals via vents and grills etc for fans to push unwanted air out, or suck cooler air in etc. You can't safely just block all this up. You can get a wide range of keyboard covers to allow you to type with ...


7

I use an OtterBox Defender case to protect my iPad in harsh environments. If I'm using it as a "chart plotter" on a small boat or kayak, I also put it into a waterproof map bag (along with a desiccant packet) that I got from an outdoor store. For occasional use, you can also protect the iPad within a 1 gallon Zip-Loc™ bag. (Again, I'd add a desiccant ...


6

I know this is an old question but I thought I would point out that in Yosemite /etc/launchd.conf no longer works (as confirmed by the man page). So here is an alternative. Launch AppleScript Editor, enter a command like this: do shell script "launchctl setenv variablename value" (add as many lines as you like) Now save (⌘S) as File format: Application. ...


6

I would question two things about your framing of the issue (and will sidestep the whole repair discussion/issue entirely): 1) Apple's warranty does cover batteries that don't retain a percentage of their useful life based on aging at one, two and three years (two for most iOS warranty / coverage, but there are exceptions in some cases). You should open a ...


6

The correct file, prior to Mavericks, was ~/.MacOSX/environment.plist. This is no longer supported. In Darwin, and therefore in Mac OS X, the proper place to set these is in /etc/launchd.conf to apply to all processes; if relating to user shells specifically, use the appropriate shell files instead, depending on the shell in question. See the launchd.conf ...


6

If you are using bash, then setting the environment variables in /etc/profile will apply for all users. From the bash manual on OS X Mavericks, with my emphasis (this has not changed from previous versions): When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands ...


6

The short answer is 'yes,' it will damage the aluminum. The burning cigarette will accelerate the rate of oxidation. Maybe not one cigarette will make a noticeable mark, but given repeated exposure, you would see a difference.


5

Most of the third party iPhone ones are mostly safe most of the time. However there isn't a good way to tell which ones aren't. Here is a teardown of an Apple one and a clone. I say most of the time since some of the safety issues are only problems if there are faults. But in a poorly designed one, faults can cause fire and/or shock. Also poorly designed ...


5

Your mileage may vary. Most 3rd-party accessories use inferior parts or less rigorous quality assurance. They may work, they may not. Paying the extra $10 for the official Apple charger is probably worth it, when weighed against the risk of buying a new iPhone. Plus, any issues with official accessories will be covered by the warranty. Basically, it's hit ...


5

Coffee cups (with lid, of course) The most flexible and cheap solution are coffee cups. These cups are usually designed to have insulating walls. Insulation is the most effective way to prevent heat building up. You might want to prefer white cups, but it should not make much of a difference.


4

Depends on how soon after lighting you put it out. If you put it out before sticking it in your mouth and inhaling then overall there will be very little meaningful damage


4

The operating temperature of an iPhone 4s is 0 to 35 degrees Celsius (source: http://store.apple.com/us/browse/home/shop_iphone/family/iphone4s). At minus 12 degrees C, you're below the threshold so your phone behavior is expected. To keep iPhone warm in cold environment, I put it in the inner vest or jacket pocket as that will be warmer with the ...


3

You may be able to set environment variables in the file /etc/launchd-user.conf... In Mavericks, I was able to configure an environment variable in the file using the line: setenv TEST test After a fresh boot, $TEST from /etc/launchd-user.conf is set. Edit It's possible that the syntax of the file at /etc/launchd.conf is invalid. Can you post the ...


3

Yes. Reference the XQuartz Project, which is developing an OS X friendly version of Xorg: http://xquartz.macosforge.org/trac/wiki Awesome WM has been successfully installed by at least this user: http://permalink.gmane.org/gmane.comp.window-managers.awesome/7939 They go on to list a step by step. Your mileage may vary, but it looks like it is possible to ...


3

Insulation, not only can it keep stuff warm for longer, but it can also stop stuff heating up in the first place. So anything that provides insulative properties, styrofoam cups etc can be used. Even a cardboard box. The first rule of thumb is to keep the thing out of direct sunlight, and even if it's on a pocket or compartment, choose one that is also ...


3

~/.MacOSX/environment.plist is read at session start. If you want your change to it to be tested immediatly you have to restart your session. A restart of the system is useless. You can edit this environment initialisation file with: plutil -convert xml1 environment.plist vi environment.plist I advise you to simply recover it to its version prior to your ...


3

It works if you call the GUI app from Terminal: PATH=/this/is/kind/of/crazy:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin /Applications/Automator.app/Contents/MacOS/Automator Not really nice or comfortable but it does the job if needed.


3

Just for the sake of anyone who might come along and wonder how to restrict this to only when the TERM is a certain value, you could put something like this in your shell's "rc" file (.zshrc or .bashrc etc): case "$TERM" in xterm-256color) export CLICOLOR="YES" ;; *color|xterm*) export CLICOLOR="YES" ;; vt100) ...


2

Try this: log "Glassfish Home: " & (system attribute "AS_HOME")



Only top voted, non community-wiki answers of a minimum length are eligible