How to change blue color on android ListView?
Android - How to change color of an ScrollView/ListView Overscroll?(see Desc. for example)
How do I sort a list of dictionaries by a value of the dictionary? I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]  When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}] Say I have two strings,  String s1 = "AbBaCca"; String s2 = "bac";   I want to perform a check returning that s2 is contained within s1. I can do this with:  return s1.contains(s2);   I am pretty sure that contains() is case sensitive, however I can't determine this for sure from reading the documentation. If it is then I suppose my best method would be something like:  return s1.toLowerCase().contains(s2.toLowerCase());   All this aside, is there another (possibly better) way to accomplish this without caring about case-sensitivity? Extracting embedded images from a PDF (a) $S_k=\{A\subset\mathbb{N}: |A|=k\}$ for $k\in\mathbb{N}$  (b) $S = \bigcup_{k=1}^\infty S_k$   Work: For (a), I am not too sure about what approach I should use. I think finding a bijective function between the $S_k$ and $\mathbb{N}$ is hard to do . I also thought about using the Schroeder-Bernstein theorem and find injective functions $f:\mathbb{N}\rightarrow S_k$and $g:S_k\rightarrow\mathbb{N}$ in order to prove that $S_k$ and $\mathbb{N}$ are numerically equivalent. However, I have a hard time finding and proving these injective functions. I haven't really looked at (b) as I have yet to complete (a). Can you travel to the US prior 1 months of tourist visa expiry? I've heard that i can travel to the US any time before my tourist visa expiry.  Is that true?  (please advise) I'm trying to write a simple bash function that takes, as its arguments, a number of files and/or directories. It should:   Fully qualify the filenames. Sort them. Remove duplicates. Print all that actually exist. Return the number of non-existent files.   I have a script that almost does what I want, but falls down on the sorting. The return value of the script as it stands is correct, but the output is not (unsorted and duplicates). If I uncomment the | sort -u statement as indicated, the output is correct but the return value is always 0.  N.B. Simpler solutions to solve the problem are welcome but the question is really about why is this occurring in the code I have. That is, why does adding the pipe seemingly stop the script incrementing the variable r?  Here's the script:  function uniqfile {     local r=0       for arg in "$@"     do           readlink -e "$arg" || (( ++r ))      done #| sort -u    ## remove that comment      return $r } Adjust space between entries in LoF and LoT myOpenID shuts down February 1, 2014; add an alternative login method to your account Janrain has , one of the many OpenID providers. MyOpenID will not be available starting February 1, 2014. (An   hinted at the same but did not set a date for end of service.)   This decision was made by Janrain, and Stack Exchange did not have any part in it. You can still use myOpenID to log in to Stack Exchange, but be aware that any outages in the myOpenID service will mean that you are unable to log in to Stack Exchange until Janrain fixes it – which may take several days, or weeks, or never. After February 1, you will no longer be able to use myOpenID to log in to Stack Exchange. Stack Exchange will not be able to answer any questions about why myOpenID is down or when it will be working again. If you do not have any other login credentials on your account by February 1, you will be locked out, and Stack Exchange will be unlikely to help you recover your account.  To avoid getting locked out of your Stack Exchange account, we strongly suggest that anyone using myOpenID as their primary (or even backup) login add a new login method to their Stack Exchange account.  We're also going to remove the "myOpenID" button from the sign-up/login page soon, in order to discourage new users from signing up using myOpenID.  Here's how to add a new login to your account. You must be logged into your account when you begin. (This information is also available .)  Open up your user profile page (by clicking on your login name at the top of the screen) and click the "my logins" link above the bio box on the right hand side.   You should see a list of all of your logins.  To add a new login, click "add more logins..." at the bottom of the box. Choose the new login from the list and follow the steps to confirm.    If you choose, you can remove your myOpenID login by clicking the same "my logins" link, then clicking "remove" next to myOpenID.  If you are adding a Stack Exchange OpenID, you will receive a confirmation email. You must click the link in the email to confirm your email address before the Stack Exchange OpenID will show up under "my logins". Please make sure that you are already logged into your account when you click the confirmation link; otherwise, you will create a new account that needs to be merged with your old one.    If you encounter any trouble adding logins, or accidentally create a separate account that you would like merged, please fill out our . How to use Stokes theorem in the presence of holes? What is the difference between metonymy and synecdoche? I need to grant select permission for all tables owned by a specific user to another user.  Can I do this with a single command along the lines of:  Grant Select on OwningUser.* to ReceivingUser   Or do I have to generate the sql for each table with something along the lines of:   Select 'GRANT SELECT ON OwningUser.'||Table_Name||'TO ReceivingUser'   From All_Tables Where Owner='OWNINGUSER' I have a large number of zip files that were compressed using the zip command. I would like to recompress them with the -9 flag to improve the compression ratio. Does anyone know if that can be done without manually decompressing and then compressing.  PS. I need to keep them as zip files since they are served to windows users( and as such have white spaces in their names) I'm writing a web app using Twitter Bootstrap with PHP on server side. My app makes regular ajax requests via jQuery and i want to disable certain parts of the UI until the server completes processing and hands back the control to Client-Side.  I wonder what would be best practices for the same? I'm struggling with the following question;     For every graph $G$ such that $K_3 \not\subseteq G$ (i.e. $G$ does not contain a triangle), prove that $\chi(G) \leq 2\sqrt{n} +1$ (where $\chi(G)$ denotes the chromatic number).   Any hints? I really cannot see the connection between the triangle-free nature of $G$ and a chromatic number being bounded above by $O(\sqrt{n})$. 1.35 V RAM in a 1.5 V system - Will it fry or overclock? The general question is: When installing low voltage RAM in a board that outputs a higher voltage to the memory module, will this fry the RAM or will it be like overclocking it?  My specific case is: I have the Alienware m17xR3 laptop with a 2630QM Sandy Bridge board. Currently, I have the stock 1.5 V modules and when I check the overclocking options in my bios, the RAM voltage option ranges from 1.5 - 1.65 V. Is this simply because the bios recognizes that these are the values which my current RAM support and thus they will change when I install 1.35 V RAM or will I have to run the 1.35 V sticks at minimum 1.5 V?  If the case is the latter, would I fry my 1.35 V sticks? Or would they become automatically overclocked and get tighter timings with a higher voltage? Or both? Or neither? I'm a bit lost :p Do I have to buy or need a 3D-enabled phone to use Google Cardboard? Google cardboard comes with 3D glasses. Does that mean that we will be able to watch 3D videos using a smartphone like the Moto-G (1st edition) which is not 3D enabled? I'm well aware of the combinatorial variant of the proof, i.e. noting that each formula is a different representation for the number of subsets of a set of $n$ elements. I'm curious if there's a series of algebraic manipulations that can lead from $\sum\limits_{i=0}^n \binom{n}{i}$ to $2^n$. jQuery Validate Plugin - How to create a simple custom rule? What does the caret (‘^’) mean in C++/CLI? I am a precision modeler, which means I like to be exact instead of "eyeballing" things when I model. I am very happy to see the option to Edge Slide with Clamping Off in v2.75a, but I don't seem to be able to snap the edge slide destination to a vertex point elsewhere on the model. Is this possible and I am just missing something?