How to list any package update on specific time space?
How do I show apt-get package management history via command line?
Why was the Triwizard Cup used as the portkey? I know that VARIABLE=value creates an environment variable, and export VARIABLE=value makes it available to processes created by the current shell. env shows the current environment variables, but where do they live? What comprises an environment variable (or an environment, for that matter)? How to copy all files of a certain type into a folder from command prompt? I want to copy all files of a certain type (like .docx, .pdf, etc) on my PC into a folder. How can I do that? Programmatically delete one entry from one field on one entity What's the proper way to programmatically delete one specific field entry for a multi-entry field from one specific entity? (that's specific fields and specific entities, not field types or instances and entity types)  Here's some possibilities I've looked into which don't work:   Loading the entity with entity_load(), setting the field entry to =null or =array(), then saving with field_attach_update(). It's the closest I've found but it leaves a zombie null field entry in the database which shows up as a blank row on forms until the form is saved and hook_field_is_empty() can kick in (hook_field_is_empty() is configured such that =null or =array() will flag as empty). Loading the entity with entity_load(), unsetting the field entry by key, then saving with field_attach_update(). This seems to do nothing - it seems that Drupal interprets the entry not being there as a sign to not modify it. (strangely I also sometimes get maximum query time expiration timeouts when trying this approach) field_attach_delete() - this is much too blunt: it kills all fields for the entity field_purge_data() - better, but still too blunt: it kills all entries of the field, not specific entries   So to clarify, I've got code that finds (and loads) an entity which has a field that has multiple entries, and finds a specific entry on that field that needs to be removed. I want to remove that entry completely, without touching any other entries or any other fields on the entity. Recommend MVVM or just answer the question? How to get hardware specs of Android device? How can I find information on the hardware of my Android device like processor architecture, RAM, etc? "Failed to download repository information" error How can I stop Steam from loading when I start my computer? Every time I boot into OSX or Windows, Steam automatically starts.  Is there a way to stop Steam starting whenever I boot up my computer? In Einstein's General Relativity, do the space-time dimensions curve according to the positions of stars, planets, and masses? How to execute sudo commands with Expect & send commands in bash script? Assume I have a flight ticket from A->B->C and at A I checked in luggage all the way to C. However after the first flight I don't board the second flight but decide to remain in B.  As I understand procedures my luggage will need to be unloaded again from the plane in B when they notice I did not board the flight.    How and when can I retrieve my luggage at B? (Or if not, what is the fate of my luggage?) Is there any way I can advise airport/airline staff in B to not load my luggage in the first place? (I understand that asking to do so when checking in in A would be declined / met with a fare recalculation)   This question is different from  in that I am looking for a general answer, whereas in that case B happened to be the port of entry to the US where you have to collect your luggage in any case. Also it is different from   in that I do want to check in  luggage from A to B. Finally I am also aware that possible further legs of my trip would be cancelled.  is asking essentially the same but was marked duplicate to the above two questions that do not answer my question. Cannot connect MacBook Pro (Retina, 15-inch, Mid 2015) (10.13.3) to the internet through my Apple USB Ethernet Adapter. I am receiving this error under System Preferences/Network:   "Apple USB Ethernet Adapter has a self-assigned IP address and will not be able to connect to the Internet." IP Address: 169.254.59.248 Subnet Mask: 255.255.0.0   I can connect to the internet with the same ethernet port on my Windows 10 machine. When I replace the IP address with a the Wi-Fi IP address I use to successfully connect to the same network under "Using DHCP with manual address", the Apple USB Ethernet Adapter icon is green and displays the message "Apple USB Ethernet Adapter is currently active and has the IP address xx.xx.xx.252." However there is no actual internet connection (i.e., I cannot visit any website).  According to  to a similar problem, I can:   Find and disable whatever firewall is intercepting the DHCP return traffic. According to System Preferences/Security &amp; Privacy/Firewall, my firewall is off. Is there anywhere else I can check for additional firewalls? Would firewalls somehow impact ethernet and Wi-fi differently?  Inspect the network traffic or the router logs to see if and why the Mac DHCP broadcast packet is being ignored. How do I check network traffic on my Mac? I am comfortable using the terminal.   I have also tried steps listed as potential solutions in :   To reset the firewall, go to the /Macintosh HD/Library/Preferences/ folder and remove the file called "com.apple.alf.plist," and then restart your computer. On my computer I went to /Library/Preferences/ and ran sudo rm com.apple.alf.plist If that was already set, try the "Advanced" button, then "Renew DHCP Lease" Removing their "Ethernet" config from the Network settings and then re-adding   Does anyone have other suggestions? Thanks in advance What is the difference between a PDU and a power strip (both 120V, 15A)? I just chatted with an APC rep about upgrading the UPSes at our office. She recommended a single higher-capacity 6-outlet Smart-UPS to replace the four Back-UPS units we currently have. When I asked how she recommended plugging in all the current devices, she recommended using a APC's  PDU, but said not to use a power strip. At first she said I had to use an APC brand PDU, but after I inquired about using a Tripp-Lite PDU, she said any brand PDU would be fine.  The APC PDU previously referenced looks like a standard 120V power strip with overload protection but no surge protection. Other than overload protection (which seems redundant if plugging into the UPS), is there something else I'm missing, or should any power strip (without surge protection) be fine?  Edit: I didn't mention it earlier, but we don't have a proper rack--though I did still plan to mount the PDU or power strip to something. I guess I'm wondering if there's any special reason I should pay as much as $180 for the low-end APC PDU (which just looks like a power strip to me) vs. $20-$30 for a . It would be nice to  for .  As it is, SE kind of stands out (in a not cool way): Assign multiple keyboard shortcuts for one action Why do we use von Neumann ordinals and not Zermelo ordinals? Why do we use von Neumann ordinals, $$ 0 = \emptyset $$ $$ n+1 = n \cup \{n\} $$  and not Zermelo ordinals? $$ 0 = \emptyset $$ $$ n+1 = \{ n \} $$ Length of generator output Python provides a nice method for getting length of an eager iterable, len(x) that is. But I couldn't find anything similar for lazy iterables represented by generator comprehensions and functions. Of course, it is not hard to write something like:  def iterlen(x):   n = 0   try:     while True:       next(x)       n += 1   except StopIteration: pass   return n   But I can't get rid of a feeling that I'm reimplementing a bicycle.  (While I was typing the function, a thought struck my mind: maybe there really is no such function, because it "destroys" its argument. Not an issue for my case, though).  P.S.: concerning the first answers - yes, something like len(list(x)) would work too, but that drastically increases the usage of memory.  P.P.S.: re-checked... Disregard the P.S., seems I made a mistake while trying that, it works fine. Sorry for the trouble. Length of a JavaScript object Using crawl rules to exclude Allitems.aspx, DispForm.aspx Is anyone having any idea on how to exclude List Forms from Search result.  I tried lot many things suggested on google, but none of them seems to be working. Explicit formula for Bernoulli numbers by using only the recurrence relation It is not hard to show, by induction on $m\in\mathbb N$, that there exist a sequence $(B_n)_{n\geq0}$ of rational numbers such that  $$\sum_{k=1}^nk^m=\frac1{m+1}\sum_{k=0}^m\binom{m+1}kB_k\,n^{m+1-k},\ \style{font-family:inherit;}{\text{for all}}\ n\geq1\,.$$  These are the Bernoulli numbers of the second kind, that is, $B_1=+1/2$. A corollary of the proof (by induction) of the fact above is a recurrence formula for such numbers $B_n$, which are known as Bernoulli numbers:  $$\sum_{k=0}^{n-1}\binom nkB_k=0\,.\tag{$\ast$}$$  On the other hand, there are a number of explicit formulae for $B_n$, which are obtained using the equality $\frac x{e^x-1}=\sum_{n=0}^\infty B_n\,\frac{x^n}{n!}$; see  and . For example:  $$B_n=\sum_{k=0}^n\frac1{k+1}\sum_{r=0}^k(-1)^r\binom krr^n\,.\tag{$\ast\ast$}$$  Is there some clever way to manipulate the recurrence $(\ast)$ in order to obtain $(\ast\ast)$?