So I like salsa, but don’t eat enough of it to use it all in a few days. In general, does store bought salsa—that is stored in the supermarket on open shelves without temperature control—go bad even if refrigerated after opening?  I’ve personally used store bought salsa a few weeks after opening and it smelled fine and there was no sign of mold. Was this an error on my part because I’ve never gotten sick from that stuff; just want a more informed answer if possible.
How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.
Scanner issue when using nextLine after nextXXX Why shouldn't I mix tabs and spaces? Changing colors of lightning-button How can I change the colors of lightning-button?  I tried doing this in my css:  .my-button {     background-color: #14a6bc;     color: #ffffff; }   and applying that class to my &lt;lightning-button&gt; and removing the variant but I still get the base colors? I am trying to use these examples: how can i forward requests to my own IP address to a local IP address in my network (possibly using named)? My setup  I have a linux server running in my basement. I currently have my router looking to that server for DNS lookup, so I can use named to spoof a bunch of domain names to point to my local server's local address, 192.168.0.111. This works great.  I also am running Apache and PHP on this server, and have forwarded port 80 on my router to this machine, so my public IP xx.xxx.x.xx is sent to the basement server.  This is a great development set up for me, because I can develop websites in my local network and pull them up on numerous devices with a *.mylocal.net address. I can also quickly share a website on my public IP with others that are outside of my network.  I have a static IP, so that makes this even easier.  The problem  Some applications need to have an absolute URL. My spoofed DNS doesn't work outside my network, and neither does my internal IP address.  I need to be able to access the sites at the same IP that they are accessed publicly, which is my public IP: xx.xxx.x.xx    For some reason, I can't access my own public IP address from within my own network.  My router's public IP is xx.xxx.x.xx, and when I hit xx.xxx.x.xx from outside my network I see exactly what I want -- my development website. But, when I hit xx.xxx.x.xx from inside my network, the connection times out.    I assume my ISP has a firewall that blocks requests from xx.xxx.x.xx to xx.xxx.x.xx where the origin and the destination are the same IP (or maybe this is impossible on any network?)  So how can I set up my network to forward the internal request to my public IP to the local IP of my basement server?   I would like to do this within the local DNS server I set up, or in my router, so the change can be applied to all devices in my network, and not just the basement server or the windows tablet/laptop, etc individually. Given three variables, y and x, which are positive continuous, and z, which is categorical, I have two candidate models given by:  fit.me &lt;- lmer( y ~ 1 + x + ( 1 + x | factor(z) ) )   and  fit.fe &lt;- lm( y ~ 1 + x )   I hope to compare these models to determine which model is more appropriate. It seems to me that in some sense fit.fe is nested within fit.me. Typically, when this general scenario holds, a chi-squared test can be performed. In R, we can perform this test with the following command,  anova(fit.fe,fit.me)   When both models contain random-effects (generated by lmer from the lme4 package), the anova() command works fine. Owing to boundary parameters, it is normally advisable to test the resulting Chi-Square statistic via simulation, nonetheless, we can still use the statistic in the simulation procedure.  When both models contain only fixed-effects, this approach---and, the associated anova() command---work fine.  However, when one model contains random effects and the reduced model contains only fixed-effects, as in the above scenario, the anova() command doesn't work.  More specifically, I get the following error:   &gt; anova(fit.fe, fit.me)  Error: $ operator not defined for this S4 class   Is there anything wrong with using the Chi-Square approach from above (with simulation)? Or is this simply a problem of anova() not knowing how to deal with linear models generated by different functions?  In other words, would it be appropriate to manually generate the Chi-Square statistic derived from the models? If so, what are the appropriate degrees of freedom for comparing these models? By my reckoning:  $$ F = \frac{\left((SSE_{reduced}-SSE_{full})/(p-k)\right)}{\left((SSE_{full})/(n-p-1)\right)} \sim F_{p-k,n-p-1} $$  We are estimating two parameters in the fixed effects model (slope and intercept) and two more parameters (variance parameters for the random slope and random intercept) in the mixed-effects model. Typically, the intercept parameter isn't counted in the degrees of freedom computation, so that implies that $k=1$ and $p=k+2=3$; having said that I'm not sure if the variance parameters for the random-effects parameters should be included in the degrees of freedom computation; the variance estimates for fixed-effect parameters are not considered, but I believe that to be because the parameter estimates for fixed effects are assumed to be unknown constants whilst they are considered to be unknowable random variables for mixed effects. I would appreciate some assistance on this issue.  Finally, does anybody have a more appropriate (R-based) solution to comparing these models? NSDictionary with ordered keys I have an NSDictionary (stored in a plist) that I'm basically using as an associative array (strings as keys and values).  I want to use the array of keys as part of my application, but I'd like them to be in a specific order (not really an order that I can write an algorithm to sort them into).  I could always store a separate array of the keys, but that seems kind of kludgey because I'd always have to update the keys of the dictionary as well as the values of the array, and make sure they always correspond.  Currently I just use [myDictionary allKeys], but obviously this returns them in an arbitrary, non-guaranteed order.  Is there a data structure in Objective-C that I'm missing?  Does anyone have any suggestions on how to more elegantly do this? How to make a ISO file out of a folder containing Windows setup files I copied the Windows 8 CD to my HDD. I want to convert that folder to an ISO and use that to create a bootable USB.  Please tell me how I can make an ISO image out of that folder containing files.  This is my folder which I want to convert to a ISO file: In the middle of touching up a new texture, I pressed save and suddenly my textures all turned black on the model and UV texture - just vanished.  I tried reopening the file in another instance of Blender, I tried to CtrlZ too and it just did this weird patchy thing on my texture.   How do I recover it and what did I do wrong? Why CAN we see the new moon at night? I understand that the Moon's phases are determined by its position in orbit relative to the Sun. (See: ). The "shadow" is not cast by the Earth (a common misconception - this is actually a lunar eclipse), but by the moon's body itself.  It would appear that, in order for the moon to be a new moon, it would have to be somewhere between the Earth and the Sun. However, it would seem that, if we were looking at a new moon, we'd necessarily be looking at the Sun as well.  Why, then, can we sometimes see a new moon at night? Why doesn't it vanish at night for a half-month every month, between its last/first quarters? You can also contact me to customize your template, or create a new unique one.   Do I need to put a comma between the new and unique adjectives in this sentence?  In my native language (if I am not mistaken) we don't put a comma if the adjectives are of a different type. Not sure about English though, and if it's the case here anyway. Any help would be appreciated! Qualcomm Atheros AR9462 with Ubuntu 18.10 I can't enable the Wifi (nothing happens when press enable button) and in Wifi settings it says:     "No Wi-Fi Adapter Found"   I have tried several things from other questions/answers here but nothing worked. Here some information if this is helpful for the answer:     Device: Lenovo Miix 2 11   sudo lspci:  Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)   sudo lshw -C network:  *-network DISABLED            description: Wireless interface    product: AR9462 Wireless Network Adapter    vendor: Qualcomm Atheros    physical id: 0    bus info: pci@0000:02:00.0    logical name: wlp2s0    version: 01    serial: 48:d2:24:8a:ea:e6    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless    configuration: broadcast=yes driver=ath9k driverversion=4.18.0-16-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11    resources: irq:18 memory:f0400000-f047ffff memory:f0480000-f048ffff   sudo lsmod | grep ath:  ath3k                  20480  0 bluetooth             548864  12 btrtl,btintel,btbcm,bnep,ath3k,btusb ath9k                 151552  0 ath9k_common           36864  1 ath9k ath9k_hw              475136  2 ath9k_common,ath9k ath                    36864  3 ath9k_common,ath9k,ath9k_hw mac80211              794624  1 ath9k cfg80211              663552  5 wl,ath9k_common,ath9k,ath,mac80211   In system settings it shows the Wifi-Adapter Name:  Qualcomm Atheros AR9462   Edit:  lspci -knn | grep Net -A3; rfkill list:  02:00.0 Network controller [0280]: Qualcomm Atheros AR9462 Wireless Network Adapter [168c:0034] (rev 01) Subsystem: Lenovo AR9462 Wireless Network Adapter [17aa:3214] Kernel driver in use: ath9k Kernel modules: ath9k, wl 0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 2: ideapad_bluetooth: Bluetooth     Soft blocked: yes     Hard blocked: yes PHP: how do I copy a temp file upload to multiple places? I want to write batch or something, that will write output of top into a file on login.  I did top &gt;&gt; output-file, but it contains some strange character!  Can somebody give a simple tutorial about how to write batch file in Linux? Opening Careers notification crashes app Difference between regex [A-z] and [a-zA-Z] var functionName = function() {} vs function functionName() {} Accessing bpy.context gives a '_RestrictContext' warning, how to fix this? I'm looking for an ASCII art generator (text is preferred, but images will do too) in the  style, but with text instead of trains. Any suggestion? Why is the potential energy equal to the negative integral of a force? Why is the potential energy equals to the negative integral of a force? I am really confused with this negative sign. For example, why there is a negative sign in the gravitational potential energy and what does it mean?   I read that the negative sign means you do the same force but in the opposite direction.  Doesn't that mean the object shouldn't move? How would you go about finding out how much memory is being used by an object? I know it is possible to find out how much is used by a block of code, but not by an instantiated object (anytime during its life), which is what I want.