I have the following HashMap:  Map&lt;String,List&lt;Objects&gt;&gt; abc = new HashMap&lt;String,List&lt;Objects&gt;&gt;()    How can I iterate through the objects, to access the properties of the object?
If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it,  what is the most efficient way of going through the map?  Will the ordering of elements depend on the specific map implementation that I have for the interface?
Default currency symbol How to add a PPA on a server? The server version of Ubuntu does not have the  command. How can I add a  (PPA) to the server without this command? Installing python module within code How to check if running on UI thread in Android? conjunction of disjunctions and disjunction of conjunctions $(p∨q) ∧ (p∨r) ∧ (q∨r) \iff (p∧q) ∨ (p∧r) ∨ (q∧r)$  Without using set theory, how can I prove this using logical equivalences? I've tried to approach this problem with De Morgan and I've also tried the property of distributivity but I keep reaching a dead end.   How should I approach this problem?  Thank  you. I have found the command to delete files older than 5 days in a folder  find /path/to/files* -mtime +5 -exec rm {} \;   But how do I also do this for subdirectories in that folder? I am using a 36 V battey pack (10s 2.5 A each cell 3.6V.) Its maximum voltage is 42 V. I am using a STM32 microcontroller whose input is 3.3 V.  I am designing a PCB in which the power supply is drawn from the battery pack (42 V.) I would like to power the STM32 microcontroller from the battery pack power supply.  I would like to regulate 42 to 3.3 V so that I can power my STM32 microcontroller.   Which method is best to convert it either using regulator or buck converter based on the pcb designing?  Battery Specification: 10s1p   Battery pack nominal voltage: 36 V Battery pack maximum voltage: 42 V Battery pack current: 2500 mAh   Microcontroller specfication: STM32F401RCT6   Supply voltage: 3.3 to 3.6 V Supply current: 100 to 160 mA     Which method or component is best to regulate 42 V so that I can power my microcontroller with 3.3 V? How to prove that any idempotent matrix is diagonalizable? Does the closedness of a subgroup $H$ of $G$ imply that for $h\in H, g\in G \setminus H : hg \not \in H$? Does the closedness of a subgroup $H$ of $G$ imply that for $h\in H, g\in G \setminus H: hg \not \in H$?  I'm new to abstract algebra and this would appear to be a useful result. However, by definition, a subgroup is nearly closed, and I don't think this directly implies that for any element $g$ from $G$ not in $H$, the composition $gh \not \in H$.  Is this in fact a true statement? How many RSA keys before a collision? Why separate Stack Exchange accounts? I understand the reason why Stack Exchange has different sites to separate  from  or . I understand too why the reputation is associated on each site.   Why do I have to create a new  for each web site? I know that when I create a new account, it is automatically associated to my other accounts. But, is there a reason why, when I originally create a user on the first site, I can't go on another site with this user? How to execute .sh file on Windows? When I am trying to execute a file(name.sh) in the command line by the command  ./name.sh  , I am getting the error that:     "." is not recognized as an internal   or external command, operable or batch   file   please help me execute the .sh file Get tax deduction for expensive car expense Not all files are visible over MTP I have LG L5 (e610 model) device with Cyanogenmod 10. When I connect the phone to a computer with Linux (I have mtpfs installed), I can see both internal storage and the SD card.  However when I navigate inside them, I can't see some of the files.  For example, if I open file manager app on the phone, I can see several files in the Internal storage/Notifications directory, however the directory on the computer only shows one of those files.  If I switch USB connection type to PTP (camera) - as OS X doesn't support MTP natively - Image Capture sees the phone as a camera, however it can only see about a third of all the images present on the phone.  I don't have a Windows machine to try, but I suspect the results would be similar.  I tried upgrading Cyanogenmod to the latest nightly, clearing and reinstalling it - same results.  Any idea as to what is going on?  How can I make all files appear on the host computer? How to create a .deb file with dependency? I have a game made with the LÖVE framework and I want to package it into a .deb file so it can be easily installed by others and be easily findable through the Unity dash for example.   I also have the LÖVE framework love_0.7.2.deb which I want to be in the deb file also somehow.  Files that I have:  game_icon.png game .desktop the_game.love love_0.7.2.deb   Could someone explain to me how to do this? Multinomial logistic regression analysis or binary logistic regression A worker carries two bags. Each of the bags initially contains N nails. Whenever the worker needs a nail, he takes it from a bag picked at random. At some point the worker picks an empty bag. Find the probability that the other bag contains exactly m nails.  My reasoning:  The desired probability: $C_2^1 \cdot P(|A| = 0\ and\ |B| = m)$, where A, B - sets of nails in each bag. Then we can "divide" this probability (I suppose that I deal with independent events):  $P(|A| = 0\ and\ |B| = m) = P(|A| = 0) \cdot P(|B| = m);$  $P(|A| = 0) = (\frac{1}{2})^N$, where $|A| = |B| = N$ (initial condition).  $P(|B| = m) = (\frac{1}{2})^{N - m}$  Result: $C_2^1 \cdot P(|A| = 0\ and\ |B| = m)$ = $C_2^1 \cdot (\frac{1}{2})^{2N - m}$  Am I wrong or it is correct? I would like a way to mark a question in the Unanswered "my tags" page as something I'm not interested in or able to answer The /unanswered/tagged?tab=mytags page gives a list of questions from my favorite tags that are currently considered "unanswered" - they have no up voted or accepted answers. I think it's good to put them in front of me easily, but even though they have one or more tags that I'm interested in, I may not have the knowledge, ability, or interest to write an answer to them. However, they will remain on this page until someone writes an answer.  I would like to be able to dismiss questions from views, like this one, that show me interesting questions. I may choose to share them on my social media to get them views and answers, but I don't want to continually see them. Instead, I want to be able to use views like unanswered/tagged?tab=mytags as a queue of things that could use my attention. New to both Ruby and Rails but I'm book educated by now (which apparently means nothing, haha).  I've got two models, Event and User joined through a table EventUser  class User &lt; ActiveRecord::Base   has_many :event_users   has_many :events, :through =&gt; :event_users end  class EventUser &lt; ActiveRecord::Base   belongs_to :event   belongs_to :user    #For clarity's sake, EventUser also has a boolean column "active", among others end  class Event &lt; ActiveRecord::Base   has_many :event_users   has_many :users, :through =&gt; :event_users end   This project is a calendar, in which I have to keep track of people signing up and scratching their name out for a given event. I figure the many to many is a good approach, but I can't do something like this:  u = User.find :first active_events = u.events.find_by_active(true)   Because events don't actually HAVE that extra data, the EventUser model does.  And while I could do:  u = User.find :first active_events = [] u.event_users.find_by_active(true).do |eu|   active_events &lt;&lt; eu.event end   This seems to be contrary to "the rails way".  Can anyone enlighten me, this has been bugging me for a long time tonight (this morning)? newenvironment: error with \begin{align} and \end{align}