### How to fit the table into landscape mode

The below method works great for a regular table. I was wondering if there is a command phrase to shrink/resize the table in the sideways mode. I think problem is because of \textwidth which obviously doesn't work in the landscape mode.

\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{table}
\resizebox{\textwidth}{!}{%
\begin{tabular}{cc}
Knuth & Lamport
\end{tabular}}
\end{table}

\end{document}


This code was taken from the following link on this forum. Changing the font size in a table

UPDATE:

Here's my MWE that utilizes tabularx but for some reason, I can't get the table sizing right. In portrait mode, text is getting too small with the \resizebox command. So, I've decided to make only this page to landscape mode.

\documentclass[12pt]{report}
\usepackage{graphicx,xcolor}
\usepackage{caption}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{newlfont}
\usepackage[version = 3]{mhchem}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{mathptmx}
\usepackage{textcomp}
\usepackage{array}

\begin{document}
\begin{sidewaystable}
\caption{Kinetic parameters for oxygen reduction mechanism in MCFC cathode.}
\begin{tabularx}{\textwidth}{X|X|X|X|X|X|X|X}
\hline
\hline
\multicolumn{8}{c}{$i_o = i_o^o (O_2)^a (CO_2)^b$} \\
\multicolumn{8}{c}{$i_o$ = Bulk exchange current density, $mA/cm^2$} \\
\multicolumn{8}{c}{$i_o^o$ = Standard exchange current density, $mA/cm^2$} \\
\hline
$i_o$ $mA/cm^2$ & a & b & Method & Electrode & Dominant Mechanism & Electrolyte &   Reference \\
\hline
& 0.85 & -0.45 & Potential-step, AC Imped. & Au(ref), Ni(cathode) & Superoxide & 62/38 Li-K &  \\
10,27,39 & 0.1 & -0.15 & Potential-step, Coul. relax., and AC Imped. & Au smooth & Superoxide & 43/57 Li-K eutectic & \\
11,26.3 & 0.1 & -0.15 & SS potentiostatic, potential step & Au smooth & Superoxide & Li, Li-K eutectic &  \\
0.023-0.065 & - & - & SS potentiostatic & Au smooth &  & Li-Na-K eutectic &  \\
10 & 0.15 & -0.15 & Potential-step & Au, smooth & Superoxide & & \\
- & 0.3 & 0 & SS, kinetic control assumed & NiO, porous &  & & Tang (1980) \\
- & 0.6 & 0.6 &  & NiO, porous &  & & Tang (1980) \\
~1 & 0.5 & 0 & C & NiO, porous & & &  \\
4-7 & - & - & Transient potentiostatic & Au & & & IGT Proj 9105 \\
0.78 & 0.2 & 0.2 & Modeling of SS data & NiO, porous & Peroxide & Na-K &  \\
0.16-0.5 & 0.875 & -0.25 & Modeling of SS data & NiO, porous & & &  \\
0.01-0.03 & - & - & Potential-sweep & Au & Peroxide & Na-K, Li &  \\
& 0.375 & -1.25 & Modeling of SS data & NiO, porous &  & &  \\
& 0.4 & 0 & Modeling of SS data & SS porous & Superoxide & Li-Na-K, Li-K & This work \\
\hline
\end{tabularx}
\end{sidewaystable}
\end{document}


### Timtum Halev not b'derech achila

Does the notion of Timtum Halev -- dulling of the heart (spirutal damage) which Rabbeniu Bachaye explains in Vayikra 11:43 -- apply when the non kosher food was put in one's body without doing it b'derech achila (e.g. through a tube)? Sources please.

### Unable to mount Time Machine partition

I have a WD external HDD which is plugged into my MacBook Air more or less all the time; it has two partitions one of which is my Time Machine disk. Just today I noticed that the hard drive is not mounting correctly anymore

• On boot-up, both partitions do not show up in the Finder at all

• When I unplug the drive and replug it back in, only the non-Time Machine partition shows up in Finder. It appears to work like normal i.e. reading and writing (I've already copied all my data off it)

• I can't seem to either eject the disk or unmount the partition that is mountable. If I hit the eject button in Finder, the partition name greys out and is not clickable but does not go away.

Via Disk Utility, I am unable to either mount the Time Machine partition (I get the generic not able to mount partition error message) and I am also unable to run Repair disk on it (error message: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.). Screenshot below. I tried erasing the disk but that also did not work (error message: Couldn’t unmount disk.)

It sounds like my hard drive has failed (or is in the process of failing) - the only things that I makes me second guess myself and make me wonder if the disk is salvageable are:

• The non-Time Machine partition appears to mount correctly and can be used as usual (although as mentioned above it cannot be unmounted)
• The drive is not that old all: probably about 18 months old. I have drives that are older that are still ticking along nicely.

Is this a simple case of a failed drive (perhaps a defective product) or is this a symptom of a software related problem (e.g. there have been several instances where the drive has been unplugged without being ejected correctly)?

### Find orphaned unused files and images

Is there a way to list all unused files which reside inside public file system and inside theme directory and list them, or maybe even have an option to delete them automatically?

By unused I mean files which are currently not linked from any css stylesheet or from any node.

### How to create a realistic 2D Role-Playing game collision detection?

I’ve always wanted to create an old-fashionned 2D Role-Playing Game like Star Ocean, Final Fantasy, Sword of Mana and even the “Tales of” series, and I guess a lot of people do. But before even writing a single line of code I did a lot of research, drawing and tryouts.

I've found almost all the answers to my questions but there is a problem I haven’t been able to solve: How do you create a realistic but yet simple collision detection, like in the games I named before?

I already know several ways of calculating collision detection, look at the following examples:

None of these satisfy my needs.

• Tile-based collisions are way too simple and suits more a Zelda than a Star Ocean. Plus, the drawing of each tile needs to fill up all space in order to look realistic.
• Pixel-perfect has too many constraints. If your tile has some pixel here and there, the player will most likely get stuck in the midle of nowhere(ie: in some games you get stuck on a 2 pixels width tree root).
• And binary masks uses too much memory and settings imo.

I've read alot of documentation but I never found something that looked good to me. And all my tryouts didn't look close to what I used to play with. So if you have any good links or tutorials on how evolved 2D RPG work please let me know.

### How can I configure Visual Studio 2008, so that it uses multiple cores for compile?

I use Visual Studio 2008 on a bigger project. If some files get compiled, it compiles them one after the other. My computer has 8 cores, except one they are idle. How can I configure Visual Studio, that it makes use of the cores?

### How to choose a language for web map development?

I am building a web map application using:

• GeoServer
• OpenLayers
• Tomcat

I would like to build a web application, where the user can log in and have the map arranged according to their profile. As I am already using tomcat, I would like to stick with java.

However, I have found that python is more suitable to web programming, so is jython an alternative?

This thread provided some light, but is not complete.

Are there any examples? I have thought of using JSF and implementing wms service from geoserver. Any ideas and suggestions to get started. I am ready to learn new technologies.

Features:

2. User Should be able to only view maps that their role/user permits.
3. The application should only make use of the technology listed above, if possible.

### Proving that the free energy is extensive

If I have two system of an Ideal gas $A$ and $B$ each of these system has a partition function:

$Z_{A,B} = \left ( \frac{V_{A,B}}{\lambda_T} \right )^{N_{A,B}}$

Where:

$\lambda_T = \left ( \frac{m}{2\pi\beta \hbar } \right )^{\frac{1}{2}}$

The free energy is:

$F_{A,B} = -kT \ln \left ( Z_{A,B} \right ) = -kT N_{A,B}\ln \left (\frac{V_{A,B}}{\lambda_T}\right)$

For the free energy to be extensive the following must be true:

$F_{A} + F_B = F_{A+B} \Rightarrow Z_A \cdot Z_B = Z_{A+B}$

However:

$Z_A \cdot Z_B = \left (\frac{V_A}{\lambda_T} \right )^{N_A} \left ( \frac{V_B}{\lambda_T} \right)^{N_B}$

and:

$Z_{A+B} = \left ( \frac{V_{A+B}}{\lambda_T} \right )^{N_A + N_B}$

So, for $Z_A + Z_B = Z_{A+B}$ to be true $V_A^{N_A} V_{B}^{N_B} = \left(V_A + V_B \right)^{N_A + N_B}$ must be true as well but this isn't true for any system.

Since we cannot create energy by mixing two containers of Argon in the same pressure and temperature, something in my understanding is wrong. Where is my fault?

### Injecting UUIDs into ROM during production

I'm brand new to electronics and was wondering if someone could explain to me how individual MCU/MPU-powered electronics units can be assigned unique identities on the factory line.

For instance, lets say a particular device is being built. This device has an MCU/MPU (still don't fully understand their difference) that has a CPU, ROM to hold a binary/RTOS and RAM for running that binary at runtime. A control program is flashed to the ROM at some point during production.

Say this device has the need to be given a UUID that can be read from memory when the control program starts up. Obviously, each device needs a different (unique) ID. And so I would imagine that the MCU would undergo two different phases during its production build: an initial flashing of the control program to ROM, followed by a second flashing that "appends" (without overwriting, that is) a device-specific UUID to a specific address in ROM. The control program would then be hardcoded to look for the value (UUID) stored at this address at startup.

Am I on track here, or is there a more efficient/different/standard way of accomplishing such a task? And I guess I would generalize it beyond a UUID and ask the same question of any situation where all units share a binary (the control program) but then also have their own unique information that must be present in ROM at startup.

### If guessing a display name, what kind of confirmation is needed?

In an iPhone app of mine, the user needs a display name, that appears for other users.

I found out that I can guess a user's display name. In the mockup below I have guessed that it should be "Sanna". This is possibly the first name of the user. But it can also be totally wrong, and in that case the user will probably want to change it.

The idea is only to avoid unnecessary setup steps. If the name guess is mostly right, then why ask every user for it? But the guess might be embarrassingly wrong in a few cases. I tried to find a more accurate way, but so far I am simply using the Device Name to extract the Display Name. Here is an SO question about it. Basically, if the Device Name is "Sanna's iPhone", it will extract "Sanna".

I do not want to force the user to pick a contact, log in to facebook or such things, just to get a name. I just want to have a name real quickly, and continue with the game.

Below I mocked four different ways to handle this:

1. Enter from scratch - not using the guessed name at all. This is how most apps I encountered do it.
2. Suggest - Use the guessed name as prefilled text in a text box.
3. Preset - Let the user see the name that is set, and be offered to change it before proceeding.
4. Don't ask - use the name directly. You can change it later anyway.

EDIT: At this moment, I am using #4. Most users (95%) never mention it, which I think means it is working as intended. But I have received complaints about bad guesses, from users not liking the name I picked for them. They seem to be annoyed that they have to change it, even though that task is as easy as it would be confirming it in advance. So perhaps it is just seeing the bad guess that is annoying. If using a confirmation, like #2 or #3, perhaps the bad guess would be equally annoying. /EDIT

Is it a good idea to use a guess for a display name, or will it confuse the user? And if using a guess, then what kind of confirmation is needed?