How to get parent custom field from attachment I am able to get standard field of parent object in attachment:  SELECT Id, Parent.Name, CreatedBy.Name FROM Attachment   But how to get custom field from parent attachment, something like:  SELECT Id, Parent.Name, CreatedBy.Name, Parent.Custom_Field__c FROM Attachment   How can I achieve this?
How Get Parent Field in Attachment? Please Help me...  Account sObject is Parent of Attachment. Now I want to bring Read-only Field Custom field (isReadOnly__c).  SELECT Id, Name, Account.isReadOnly__c FROM Attachment   How It Gets ?  Thanks in Advance  Manu
Plural or singular verb for collective term concurrentModificationException When it comes to , I often read recommendations like "Use adb logcat to find some more details". Looking for a good way to backup all my apps including their data,  refers to adb backup and adb restore. In several places one can find ways to remotely do on an Android device with the use of , such as transferring files using adb push or adb pull, accessing the  via adb shell, and more. So ADB seems to be a good thing to have for an Android user.  But how to get this "ADB thingy" on my computer? Not being a developer, installing the entire  seems a bit overkill. Is there a more minimalistic approach available? When I'm generating a List of Figures in my project, all figures are grouped by chapter. I would like to have the whole list without any additional new lines between different chapters.  How it looks like:  Figure 1.1  Figure 1.2  Figure 2.1  Figure 3.1  Figure 3.2   How it should:  Figure 1.1  Figure 1.2 Figure 2.1 Figure 3.1  Figure 3.2   I tried to apply the following solutions but failed completely :        My main file:  \documentclass[12pt,oneside,titlepage,utf8x]{report}  \usepackage{times,a4wide,multirow,tabularx,graphicx}  \usepackage{psfrag,fancyhdr,longtable}  \usepackage[T1]{fontenc} \usepackage{float} \usepackage[utf8]{inputenc}  \usepackage{url} \usepackage{color} \usepackage{verbatim} \usepackage{fancyvrb} \usepackage{natbib} \usepackage{relsize}  \usepackage{caption} \captionsetup[longtable]{belowskip=10pt}  \usepackage[left=4cm,top=2cm,right=3cm,bottom=2.5cm]{geometry}  \renewcommand{\chaptermark}[1]{\markboth{\nouppercase{\thechapter.\ #1}}{}} \pagestyle{fancy} \headheight 30pt \rhead{} \lfoot{} \cfoot{\thepage} \rfoot{}  \setlength{\parindent}{2em} \setlength{\parskip}{1em} \linespread{1.3}   \begin{document}  \begin{titlepage} \maketitle \end{titlepage}  \tableofcontents  \chapter{First} \label{sec:First} \input{chapter1/chapter1}  \chapter{Second} \label{sec:Second} \input{chapter2/chapter2}  \chapter{Third} \label{sec:Third} \input{chapter3/chapter3}  \relsize{-1} \listoffigures \normalsize  \bibliography{praca_mgr} \bibliographystyle{plain} \nocite{*}  \end{document} How can I enable shell-escape? I need to enable shell escape for a package that I want to use. What is shell escape exactly, and how do I enable it in my editor or compiling toolchain? Links to answers for different editors/toolchains, in alphabetical order:   AUCTeX (Emacs) ,         Note: this is a FAQ post. Related Meta question: . Please add an answer for your own editor/toolchain if it is missing. Thank you! When adding an answer, please indicate if the setting is permanent or per-document, and/or describe how you can add a button, shortcut, menu item, etc. to make it easy to switch between shell-escape and regular compilation. Edelstein Theorem Let $(M,d)$ be a compact metric space and $d(f(x),f(y)) &lt; d(x,y) $ for all $ x\neq y$ Prove that if $f$ is a continuous fuction then there is a unique $x_0 \in M $ such that $f(x_0)=x_0$ I know that since $g(x) = d((f(x),f(y))$ is continuous then a continuous function in a compact space reaches its maximum and minimum. Then by proving that the minimum of $g(x)$ = 0 can I conclude that $x_0$ is a fixed point? When I'm using rendered viewport it initially takes a while before rendering starts, but once it does, I can freely move around and rendering a new view happens almost instantaneously. When on the other hand I'm rendering a movie, for each frame Blender takes a significant amount of time before rendering even starts, usually doing the following:  Synchronizing object, Updating images, Updating meshes, Updating Scene BVH, Packing BVH,  Why does it do this? And is it possible to disable this to increase movie rendering speed? rsync two existing directories copying everything I have two file servers in two locations. Currently both have the same data, which generally is unmodified (used for read only access).When the second server was set up (the one I'm sshing to) the data was copied over LAN and has since been moved geographically.  I'm trying to use rsync for the first time on the required directories. An example command;  sudo rsync -avz --ignore-existing -P --dry-run /media/Storage/OSs/ user@mydomain:/mnt/Storage/OSs/   I've tried using -c -t -u (Additionally went on the remote server and updated the timestamps to today) also but every time I execute a dry run it wants to copy everything!  Additionally the user is the same for both machines with the same UID.  *Edit  After playing around a bit more, I've found that rsync does not like the whitespace in the subdirectory names; For instance if I use ' to escape local shell &amp; \ to escape remote shell     sudo rsync -avz --ignore-existing -P '/media/Storage/OSs/Windows/Windows server 2011/' 'user@mydomain:/mnt/Storage/OSs/Windows/Windows\ server\ 2011/'   Then all is well, my theory is then that rsync does not like the subdirectories with whitespaces. I have thousands of subdirectories; the only solution I can think of is to write a small python/shell script to run each sub directory separately but is undesirable. What are the minimum contributions required for co-authorship Is it safe to use the hash of the data as the key to encrypt them? Is it safe to use the hash of the data as the key to encrypt them?  That is, if I give one some encrypted data and tell them that the key that was used to encrypt them was the hash digest of the data before encrypting, will it be easier for them to decrypt them?  Edit as I can not reply to comments: The recipient will have the keys, that is no problem. Is it possible to understand the One Piece storyline by watching the movies only? What's the C++ way of parsing a string (given as char *) into an int? Robust and clear error handling is a plus (instead of ). Extract Raster Value into Polygon Attribute I have Raster Data for a State which has Elevation Data in its pixels. I also have Vector layer which has the 300 divisions of State. what I need is, I want to get the average elevation value of particular division from the raster data using ArcGIS. I tried extract by mask in ArcGIS to extract individual polygon to clip the raster into 300 raster then from individual raster i have collected average elevation but it has taken days together to complete the work. Is there any other easy way to get it? I'm using Google calendar, and I subscribe to my Google Calendar from multiple computers.  Whenever I set an event with (an) email reminder(s) on Google calendar, I'll get multiple emails because (1) Google calendar itself sends me the email reminder and (2) each computer that subscribes the calendar tries to send the email reminder (when the computer wakes up).  It's very annoying. Possible arguments:  Pro   For brevity for trivial deductions   Contra   Looks like the writer could not be bothered to write an extensive explanation Definition of what is trivial to which reader and what not java.rmi.NoSuchObjectException: no such object in table I am writing a very simple RMI server, and I am seeing intermittent java.rmi.NoSuchObjectExceptions in the unit tests.   I have a string of remote method calls on the same object, and while the first few go through, the later ones will sometimes fail. I am not doing anything to unregister the server object in between.  These error do not appear always, and if I put in breakpoints they tend to not appear. Are those Heisenbugs, whose race conditions dissolve when looking at them through the slowed down execution of the debugger? There is no multi-threading going on in my test or server code (though maybe inside of the RMI stack?).  I am running this on Mac OS X 10.5 (Java 1.5) through Eclipse's JUnit plugin, and the RMI server and client are both in the same JVM.  What can cause these exceptions? How to remove app which is greyed out, can't be deleted, won't open and doesn't appear in apps list? I have this app with a greyed out icon which I'm trying to delete.    I tap and hold, and it asks me if I want to delete it and its data. I confirm and nothing happens.  I try to open it and nothing happens.  I go to Settings>General>Usage and it's not in the list.  I reboot the device and it's still here.  Is there another way to force deletion of this (ghost) app? Is there a better way to do optional function parameters in JavaScript? We often get questions on bicycles.stackexchange about identifying a bicycles manufacturer, model, make, and year.  Often these questions are downvoted or closed -- usually with a comment attached to them that it's not necessary to know the exact model/make/year of a bicycle if you want to fix, repair, or ride your bike. Why should owners not care about the model/make/year of their bicycle? Especially when it comes to less expensive bikes (aka BSOs) and BMX bicycles? This is intended as a canonical question that we can point closed questions to. Also see      (generally not helpful for identifying a brand/model) Conjugate to $\cos z$ is not equal to $\cos z$ conjugate $\overline{\cos(z)}\neq\cos(\overline{z})$ I have a dilemma. I have a task where I'm supposed to show that $|\cos z|^2+|\sin z|^2=1$ if and only if $z\in \mathbb{R} $. In my argument I have that $$\cos z\cdot\overline{\cos z} + \sin z\cdot\overline{\sin z}=\cos z\cdot \cos\overline{z} + \sin z\cdot \sin\overline{z}$$ but my teacher said that $\overline {\cos z} \neq \cos \overline{z}$.  Is this true?  But $$\overline{\cos(z)} = \overline{\frac{e^{iz}+e^{-iz}}{2}}=\frac{e^{-i\overline{z}}+e^{i\overline{z}}}{2}=\cos(\overline{z})$$