I've made a variant of  which replaces ‘e’ with ‘ɛ’ –  (I have my reasons, but they're not relevant here). I have two problems:   Though ‘ɛ́’ and other versions of ‘ɛ’ with diacritics exist, typing AltGrt+ɛ does not produce anything. I imagine that this is because the accented ‘ɛ’ is a composite character, whereas ‘á’ (produced via AltGrt+a) is a single character. I would like AltGrɛ to produce an accented ‘ɛ’. But with the accented ‘ɛ’ being a composite character, I have no way of putting it into an XKB layout file.   My keyboard is based on gb Colemak, which is based on us Colemak. I'm using stable Arch (kernel version 3.15.5-1) with GNOME 3.12.2 and xorg-xkbcomp 1.2.4-2. I currently switch layouts via GNOME (using SuperSpace, which cycles through input methods).


C# Sort DataTable by column of IP Addresses

I have a datatable with several columns of strings. One column is "IPAddress". I want to sort the data table by the IP Address column. I've tried    DataView dv = dt.DefaultView; dv.Sort = "IPAddress asc"; dt = dv.ToTable();   But of course this produces a result  where, for example 10.1.1.203 comes before 10.1.1.21 instead of after.   There was a really clever solution here  but this works for lists, not datatables.   Edit: This is not a duplicate question, as the linked question is almost 10 years old and a lot has changed since then, and more importantly, the question does not specifically address the problem of IP address sorting which is very specific and unique problem.


Can I save sitemap.xml file in other domain?

I have 2 domain. Domain No.1 contains a sitemap index: http://example1.com/sitemap-index.xml with content like this:  <sitemapindex> <sitemap> <loc>http://example1.com/0.xml</loc> <lastmod>2014-11-23</lastmod> </sitemap> <sitemap> <loc>http://example1.com/1.xml</loc> <lastmod>2014-11-23</lastmod> </sitemap> </sitemapindex>   And domain No.2 contains sitemaps (http://example2.com/0.xml, http://example2.com/1.xml, ...). I will submit http://example1.com/sitemap-index.xml to Google Webmaster Tools. Normally, I will save sitemap files to same domain but this time, I want to save sitemap files to the other domain? Will Google allow this?


I can't mine gold, diamonds, redstone, nothing

I'm using a wooden pickaxe, and that might be the problem, I can mine coal and flint, but nothing else. Can someone help please?  (edit) I was using nothing to mine down a staircase, when I stumbled upon a cave, keep in mind this is in single player. And I cannot mine the diamonds, the redstone, the gold, nothing. it just doesn't give it to me. can someone please help me understand why this is happening? I just can't get it to work. I want my gold...


I went to a friendly gym and battled the lowest player and won multiple times, enough to up the gym level and leave my Ratticate there.  However his CP is still 313.  I thought the purpose of friendly fighting was to increase CP for your pokemon.  What am I missing?


Setup is interrupted message during installation of Adobe acrobat pro using wine 6.0

I am running Ubuntu 20.10 and have wine 6.0. Trying to install Adobe acrobat writer pro 9 or 10. But at last it showing some error like the picture. How to fix it?[This message appears at the end of installation process Installation result of adobe acrobat writer 9


Cannot connect to WiFi available networks in 17.04

when I select the Wi-Fi network, after trying connect for sometime, I get a "Disconnected - cannot connect to the network" response.   I tried connecting to Wi-Fi on terminal could not find WLAN0. although the available networks show the name properly.  can connect to a mobile network though. any help/response is greatly appreciated.


I made a booklet in InDesign with a couple of illustrator images. When I do Print Booklet and use Press Quality I get odd borders around the images:   I think it has to do with transparency flattening but how do I get rid of it?


Show that $\sum_{n=1}^\infty {\dfrac{x^n}{n!}}$ does not converge uniformy when $0 \leq x <+\infty$

Show that $\sum_{n=1}^\infty {\dfrac{x^n}{n!}}$ does not converge uniformly when $0 \leq x < +\infty$. I failed to solve this with all my attempts and none of them gave significant results.


bash file permission error while appending to a file

I am installing Voipmonitor whose setup script has this step:   sudo echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab   I am getting this error  -bash: /etc/crontab: Permission denied   The file permissions are:  -rw-r--r-- 1 root root 51 Feb 15 04:45 /etc/crontab


Is possible to change X server without kill client?

My usecase: User opertes on Server1 station. He can use ssh or whatever to connect with Remote Station and start some application on it and display it on his station (Server1). Now user has to change his place and operate on Server2. I know that he can start new instance of application and display it on Server2. But I want to dispaly the same running instane of application on Server2. Is it possible? How to do that?


How to access Windows folders from Bash on Ubuntu on Windows

On the Bash on Ubuntu on Windows app, I only have   root@localhost:~# ls -a     .bash_history  .bashrc  .profile   How do I access all of the Windows folders like Documents, Downloads, etc.?


Standard way for novice to prevent small round plug from rolling away while soldering wires to it

This very trivial task is to solder wires to the terminals of a small round 3.5 mm audio plug.   I can do this myself, but I need to show to others and this is one of the first times they're trying any kind of soldering.  The problem is the connector rolling away during the process of soldering. Students use one hand to hold the wire and another hand to hold the soldering iron. The plug itself lies on the table and rolls away after being touched.   Is there a standard, widely accepted way to do this kind of soldering easily? Do I need to provide some kind of vise for them, or there is some simpler approach?  The problem does not require soldering with one hand, using both hands is ok and preferred.


I want to show that  $$\int_{0}^{\frac{\pi}{2}}\frac{d\theta}{a + \sin^2(\theta)} = \frac{\pi}{2\sqrt{a(a+1)}}$$  for $a > 0$.  I try several methods   Substitutions to rationalize The famous $U = \tan(\frac{\theta}{2})$ Multiplying by conjugates   and other calculus techniques and still, I can not prove the equality.   Anyone can give me a hint of how should I begin to work this integral?  I'm very ashamed that I can not solve this problem.


When I'm trying to run the cd command on my virtual pc is shows error as shown in pic above. How can I change the directory?


How to do transparent textures on Emission node in Blender Cycles

I want to apply a transparent texture to an emssion node in a way that the the emission node will emit just from the not transparent parts of the image texture.  How to achieve this effect ?  Here' s a Picture of it


I'm making progress on building a portable light for my kayak. It will use 3 of following chips: . The battery will have to be portable so I'm planning to wire them in parallel.  I calculate 11.25 Ah needed so thinking to get the battery between:  12V, 14Ah 12V, 18Ah 12V, 35Ah  It is just going to depend on weight. Each light will be in an aluminum housing and only turned on under water. I've read about the troubles with overworking one LED when in parallel.  Can I put a resistor before each of the 3 lights and if so, can someone direct me there? Also, can I add switches to each light to conserve battery without overworking? That is, only turn on the lights I need?


As the question tells everything, why does keyboard have 2 Ctrl, Alt, Shift keys.  As their function is same then why these keys are multiple on keyboard? Is there any specific reason or they are just for making typing easy?


How can I create an .ahk (or similar) hotkey to perform program-specific actions?

I'm an AHK user with no real computer programming background or education (I suppose Excel would be the closest thing I have to such knowledge/experience, excluding day-1 hello, world exposure here and there, or cmd/ VB6 waaay back in the day).  For lots of my day-to-day tasks and workflows, I've adopted the use of AHK, but the manner I'm utilizing the scripts have always been input-literal; in other words, predominantly just emulated keystroke inputs that produce specific, superficial key input sequences.  In a sense, this works out in that I can utilize AHK with little to no learning curve -- among other such conveniences -- but there are obviously cons that come hand in hand with the pros.  As such, I've become curious lately as to whether AHK is capable of directly interfacing and invoking actions specific to programs?  Conceptual Example Let's take Notepad++, for example (we'll pretend it doesn't have any native functionality to achieve this, for the example's sake).  I want to setup a hotkey to Copy, Cut and Paste Binary Content.  How -- if at all possible -- should I approach creating the script?  Conjectural Concept As part of my cursory information gathering, I did try running psr.exe to see if I might be able to capture any useful information.  Unfortunately, I'm not knowledgeable enough to make any use of the results, but I was thinking there might be some method similar to capturing what's happening on the backend in the same way that one might use the keyboard hook to possibly capture non-standard key inputs.  I've hosted the resultant data , in case that can be utilized.  EDIT: To clarify any confusion, I am not referring to the conditional specificity in regards to the triggering conditions for a script (e.g., #winactive).  It's a bit difficult to describe any further than I already have without causing more confusion and causing this to get too convoluted I think, but if I have to give an analogous example, then what I want to achieve can be loosely compared to executing a program with specific arguments example.exe -function -parameter as opposed to automating the process of running example.exe followed by pre-determined keystrokes to navigate to said example function Alt + F, F, P through the UI.  EDIT #2: Alright, apparently I'm still not properly conveying the meaning of my question.  I'll make one more attempt before I give up on this.  Sample Objective:     Create hotkey that invokes this function:        The way I would currently do it:     Assign hotkey which triggers a send input sequence Alt + E, P, P, C, Enter    The way I want to do it:   Assign hotkey which directly calls on the Copy Binary Content function.  Challenges: identifying which AHK function achieves this (e.g., DllCall?), and enumerating the function's correct and available identifier/arguments Using PSR.exe logs the following actions:      ...Step 1: User left click on "Edit (menu item)" in "*ne" Program:   NOTEPAD++.EXE UI Elements: Edit, Application, *new 1 - Notepad++   [Administrator], Notepad++      Step 2: User left click on "Copy Binary Content (menu item)" Program:   NOTEPAD++.EXE UI Elements: Copy Binary Content, Paste Special, #32768,   *new 1 - Notepad++ [Administrator], Notepad++...   Notice the "#32768"!  Is there a way to directly call on that function?


Why does electricity require a closed loop to flow?

Imagine a battery with the positive terminal connected to ground.  The positive side has a high eletrical potential, ground obviously has a lower electric potential.  Electricity wants to seek a lower potential, and there's no significant resistance between the terminal and the ground.  Shouldn't electricity flow?  I know it doesn't but I don't understand why.  I know you have to close the loop, but why is this necessary?


Chat messages should use consistent icon in iOS app

It'd be nice if the chat notifications in the feed used the default Stack Exchange icon like the ones in the inbox do*:     Since items in the feed are grouped so that multiple items from the same site , the site icon helps delimit grouped items a bit less subtlely than the grey divider lines, and chat replies' lack of one causes them to sort of blend in to the previous group.  *Ideally it'd use the icon of the site the room was associated with, but I don't think that information is readily available


The infinite tetration is defined as $$f(x)=x^{x^{\cdot^{\cdot}}}$$  This function is defined for $e^{-e} \leq x \leq e^{e-1}$.  (Wikipedia image)    Can one determine the derivative of this function?


Is there a way to prove that the order of an element in a Group divides the order of the Group, WITHOUT USING LAGRANGE'S

This is a very easy fact we use in Group Theory,  But somehow, I wondered that whether there may be another way (other than Lagrange's Theorem) to prove that the order of an element divides the order of Group.  I attempted to go on the term "exponent" of the Group (just assume that G is a Finite Group), which we may define the least common multiple of orders of elements in G. But this exponent divides $|G|$, since the order of each element divides $|G|$. So it became a little paradox.   Shall I think that; before teaching this fact in a Course, one should teach about Lagrange's first?


How to detect, find and install a missing firmware

Context Today I installed Debian 8 on my HP Pavilion Notebook PC, during the installation (specifically during the network setting up), the the system prompted: Hardware needs non-free firmware to run, missing firmwares are: - rtlwifi/rtl8188efw.bin - rtl_nic/rtl8106e-1.fw  after the installation the wifi it's not recognized and I think it's missing another FW, because the touchpad doesn't work properly, but that's another story... I'm not a huge expert on system administration, but I'm in CS so you can be specific. Question Is there a way to detect which firmwares my system is missing? Where do I have to look to download firmwares? (well I'm on Debian) How can I install it? (is there something automatic? or do I have to make them?)  Can someone explain the best practice to overcome this kind of problems? Maybe taking as example the problem with my wifi, so I can solve it too.


I just downloaded 2.76 and successfully rendered a project yesterday. But today with a different project the Render fails to work correctly. The old (yesterday) project reappears and begins to render.  Wonder if it is a bug?   Thanks!


"It is they who lied" or "it is them who lied?"

Which is the correct usage of the third person, plural pronoun?     It is they who lied.   It is them who lied.


What's reason behind the assassination of John Boone in KSR's Red Mars?

No spoilers in the question, given that it's the first thing the book narrates.  We know the reasons the guy who did the deed thought he had to do it.      Selim killed him because he was convinced by Chalmers that Boone would be unfair to Arabs during the negotiations of the renewal of the treaty, if I'm correct   But I'm not really convinced about the motives of his instigator.      Red Mars portrays Chalmers as an ambitious, manipulative man; he supposedly ceded his place in the first mission to Boone thinking that the first man would be too highly exposed to radiation to be considered for the follow-up real colonization mission, in which he himself would be the most important man. Boone got sent to colonize Mars anyway, destroying his plans because as The Mars Daddy he had more street cred. Furthermore, he later stole his girl. So, is that really it?   After all,      He didn't have much desire left for Maya (he hated that she had any remaining effect on him) and Boone didn't seem much of a threat for the upcoming renegotiation deals either (Boone's position was highly unrealistic and unworkable). Why kill him? Just out of spite? Sounds risky and pointless.   -- nachokb


The same windows are opened every time I log in. Can I fix that?

The same windows appear as I switch on the computer. Like if I had selected "Save session for future logins" though I don't. I remember launching some GUI apps with sudo, can it be the source of the problem?  How can I fix it?


Is it possible to relink all the objects in a project?

I am working on a scene with some objects linked from other projects, but suddenly everything appeared unlinked, and I can't see my objects anymore. Is there a way to relink everything?


This is something I've wondered about for a while now; What is so special about normal subgroups that makes modding out by them "act nice"?  I understand the proofs for things like the first isomorphism theorem, but all these proofs really seem to do is verify that we can mod out by any sub-group satisfying $gNg^{-1} = N$ and end up with another group. I get the verification; that's not what I'm asking about.  It's possible to mod out by any subgroup, but what's so special about the property $gNg^{-1} = N$ that makes it so that we can "move" $N$ around inside $G$ in a way that satisfies the group axioms? Is there something deeper about the normality property that makes this make sense?


Stuck in wubi completing ubuntu installation

So i really new to this kind of stuff when i tried installing ubuntu via wubi the firts half minute the instalation goes fine but until i get to this black console its just stuck it say completing the ubuntu installation for more installation boot option,  press 'ESC now but it do not work i tried pressing everything and get nothing i download the 20.04 version in github and the os from the ubuntu official website


I have had an introduction to QFT following the book of Mandl and Shaw. However, I have been asked to write a report on the CPT theorem. For this, the main reference I'm using is PCT, spin and statistics and all that, by Streater and Wightman.  I find that the introduction of dotted and undotted indices is really unclear in this book. I also found a reference on dotted indices in Local Quantum Physics by Haag, but I do not understand what he is talking about.  Can someone explain, what the indices are, how they are defined and most importantly, how, for a given spinor, do you know what their indices are supposed to be?  For example, what is the difference between $\psi$, $\psi_\alpha$, $\psi_\dot{\alpha}$, $\psi^\alpha$, $\psi^\dot{\alpha}$ and $\psi^{\alpha \beta \dot{\gamma}}_{\delta \dot{\epsilon} \dot{\zeta}}$?  The problem I think, lies with the fact I have no experience with representation theory, nor has the course I had ever mentioned such things. So if you could give or reference an explanation of these things, without the need for representation theory, that would be most helpful. Thanks!


How can I stop the Stack Exchange top bar from sticking up?

Most, if not all, Stack Exchange sites have their top bars sticking up on the page when I scroll down the contents.  This sticky bar is quite annoying because my screen is not that high/tall. I already disabled my own operating system top bar, but now the stack exchange sites are piling up another bar on top of it. How to unstick the top bar on the stack exchange UI sites? Related:


Is there a way to reset the seed of random material in Blender 2.8 Viewport?

In the 3d-view workspace, we can use a random color to give our separated object a distinct look.  What if I don't like the result and I want to randomize the color again?   Swapping the setting doesn't change the random seed in color.    (Blender 2.80.64.)


grep the exact block of lines (content of file1) from file2

I have two files, file1 and file2.  The sample content of file1 is:  A B C D E F G H   and the content of file2 is like:  A B few other lines E F few more other lines A B C D E F G H few more other lines G H   So I want to search the whole block of file1 content in file2 only. This means the output should contain only these lines:  A B C D E F G H   please note that :- only the lines which are coming together , should be the part of output.


Enable network access for a new account without logging in once

After creating the admin user on a new build server, I create the builder user via the command-line using Ansible. gitlab-runner is installed via brew and a launch daemon plist starts the service  automatically as the builder user. Unfortunately, gitlab-runner hangs when git fetching changes until I manually log-in the builder user account via Remote Desktop one time and click through the first-time setup of the user account. After the initial login, you can logout, reboot and everything just works after that.  Since I have a workaround of logging in the first-time through the GUI to complete the setup of the builder user is there a way to get the macOS Mojave to do whatever it does during the first login via the command-line?  gitlab-runner.plist  For completeness, I'm providing the /Library/LaunchDaemons/gitlab-runner.plist file  <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0">   <dict>     <key>SessionCreate</key><true/>     <key>KeepAlive</key><true/>     <key>RunAtLoad</key><true/>     <key>Disabled</key><false/>     <key>Label</key>     <string>gitlab-runner</string>     <key>UserName</key>     <string>builder</string>     <key>GroupName</key>     <string>staff</string>     <key>ProgramArguments</key>     <array>       <string>/usr/local/opt/gitlab-runner/bin/gitlab-runner</string>       <string>run</string>       <string>--working-directory</string>       <string>/Users/builder</string>       <string>--config</string>       <string>/Users/builder/.gitlab-runner/config.toml</string>       <string>--service</string>       <string>gitlab-runner</string>       <string>--syslog</string>     </array>   </dict> </plist>


What would you see dropping a sufficiently strong chain with substantial length into a black hole?

Here's a visual representation of the scenario  Here you can see we have a black hole on the left. The event horizon is the edge of the black hole. You are far away from the event horizon, and a chain is passing you by fast heading toward the black hole. Due to the size of the black hole and the makeup of the chain, the chain will not break before reaching the event horizon. After a while, the following scene happens:  As the end of the chain approaches the event horizon, the chain slows down due to the immense gravity as it approaches a frozen state. As I show in the diagram, you can observe this phenomenon as well as observe the chain moving fast by you toward the black hole. As for my question..  How can the part of the chain near you appear to be moving quickly toward the black hole, while the end near the black hole is frozen (or close to it)? Where does all that chain go? Let me ask the same question in another way..  If the distance between you and the black hole is 1000 units, and the chain appears to be almost frozen 1000 units away from you, how could you reconcile watching 10000 units of chain speed past you? How does that 10000 units appear to fit within a distance of 1000 units from your perspective?


How go get blurred background with Nikon D5600 using 18-140mm lens?

I am very new to photography and just got my new camera, read up on all tutorials on how to take great pictures but...  I was trying to get a good portrait of a person while blurring the background. I read that to do this you should use a large aperture setting.  I have tried this on all modes (AP, Manual, etc.) at the largest AP setting possible and at every zoom of the lens (18m-140m) but no matter what I do, the background never blurs.  Is it even possible with this lens or do I need to adjust ISO and/or Shutter speed to get the desired effect?


Easy way to create blocks programmatically?

Learning Drupal. I know now that I can create block through the backend, but I would rather precreate them programmatically, if it's possible. In fact I'm pretty sure that it's possible. But what's the easiest way?


I need some help customizing a walker function. I don't fully undrestand it, but it's helped me get half of what I need.   class themeslug_walker_nav_menu extends Walker_Nav_Menu {       // add classes to ul sub-menus     function start_lvl( &$output, $depth ) {         // depth dependent classes         $indent = ( $depth > 0  ? str_repeat( "\t", $depth ) : '' ); // code indent         $display_depth = ( $depth + 1); // because it counts the first submenu as 0         $classes = array(             ' dropdown',             /*?>( $display_depth % 4  ? ' ' : '' ),             ( $display_depth >=4 ? '' : '' ),             '-' . $display_depth<?php */             );         $class_names = implode( ' ', $classes );          // build html         $output .= "\n" . $indent . '<ul class="' . $class_names . '">' . "\n";     }  }   Here is what I have so far, and it works great to add a submenu to the ul at the 2nd and third levels. I need to figure out how to add a custom class to the parent ul. I can do it in query but it's not quite the solution I would like. Any help is appreciated.


Why is there such a big difference on time between first nanoTime() call and the successive calls?

So my question is more general. I've the following simple code:  for(int i=0;i<10;i++){     long starttime=System.nanoTime();     System.out.println("test");     long runtime=System.nanoTime()-starttime;     System.out.println(i + ":" +"runtime="+runtime); }   i receive the following output:  test 0:runtime=153956 test 1:runtime=15396 test 2:runtime=22860 test 3:runtime=11197 test 4:runtime=11197 test 5:runtime=12129 test 6:runtime=11663 test 7:runtime=11664 test 8:runtime=53185 test 9:runtime=12130   What is the reason for the difference between the first and the second runtime?Thanks in advance =)


Time between two observer in special relativity

Let $A$ and $B$ be two observers and suppose they meet when both their clock are  zero.  Suppose that  $B$ moves with constant  velocity $v$ in relation to $A$  then we have  $$t=\frac{1}{\sqrt{1-\frac{v^2}{c^2}}}  t'$$  where $t$ is the time for observer $A$ and $t'$ the time for observer $B$.For simplicity  suppose that $\gamma=\frac{1}{\sqrt{1-\frac{v^2}{c^2}}}=0.5$ then when the clock of $B$ is $t'=1$ the clock of $A$ is $t=2$.   From the point of view the observer is moving with velocity $-v$ and so by symmetry  $$ t'=\frac{1}{\sqrt{1-\frac{v^2}{c^2}}} t$$  So when the clock of observer $A$ is $t=2$ the clock of $B$ is $t'=4$   That is if the clock of $A$ run faster than $B$, the clock of $B$ run faster than the clock of $B$ by symmetry.  Isn't this a contradiction ?


Any recommendations for a before&after software installation scanner/uninstaller?

I'm trying to decide on an uninstaller that does before and after system scans.  So far, I've come across these three:   CleanApp (syniumsoftware.com/cleanapp/) - which I saw someone recommend in  Yank (matterform.com/mac_software/uninstaller/index.html) Uninstaller (macmagna.com/)   So I was hoping if anyone on here has any tips or recommendations on these or any others.  Thanks!


Run php File in Browser from Command Line

I have apache2 working and can run php files by navigating to localhost using chrome browser. However I'd like to be able to launch the files within the browser from the command line.  google-chrome myfile.html works but google-chrome myfile.php doesn't, even though I'm launching it from my apache root.  Any help much appreciated.


I want to add Javascript in Head Tag. I found answer as below from this link    , but it is not working used in tempalte.php.   function mytheme_preprocess_page(&$vars, $hook) {     drupal_set_html_head('<script type="text/javascript" src="http://use.typekit.com/12345.js"></script>');     $vars['head'] .= drupal_get_html_head(); }   Can we do adding Js script in head tag through page.tpl.php? or any suggestions


How can I get a pure white background in studio photography?

I am a natural light photographer that is venturing into studio/backdrop portraits at the request of some of my clients.  I have a portable studio for my needs with a white muslin backdrop.    I am using one (maybe two) Speedlite 580 EX flashes with shoot through umbrellas as lighting.  In my practice shots, I cannot seem to get a nice "blown out" white background without dulling my subjects (decreased contrast/lighter exposure on their face and clothes).    I am not a fan of seeing the muslin draped or crinkled in the background... although I know that's definitely a style... I will probably iron it but I can never get it perfectly flat and plus I need to transport it so it will get some wrinkles.  Also, what can I do to avoid any shadows against the backdrop itself (shadows created by the subject).  I do have them placed slightly away from the backdrop but kids sometimes move around.   Also if I am doing little children, I don't think having a small backlight would be practical (not that I have one... )


How to terminate a php server script while it is waiting for a reply from a php client script?

Currently I have a setInterval javascript function which calls an ajax function to call a php script. This php script is a server that is waiting for a request from a client being run by another program. The client will send a String whenever there are changes made and this string  is to be echoed back through ajax.  setInterval(function(){getTopo()}, 2000);   getTopo() is a $.ajax calling server.php  I want to terminate the server.php file if there is no reply within 2 secs before running getTopo() again.  Else can I output through ajax an echo in the php's while loop?


Does PostgreSQL keep its pl* interpreters loaded persistently?

If I wrote something in plperlu, when would that module be reloaded?  Every time the function ran?  The first time it ran?  Does the Perl DLL get unloaded if it hasn't been used in a while, and then after that it'd be another module reload?


Google Sheets issue with literal constants in functions

When attempting to use any literal strings in formulas I get a Formula parse error and #ERROR! in the column with the formula.  For example:   =IF(D43=“x”,MULTIPLY(E42,2)).     I’ve been told that there is something wrong with the quote marks around the literal string ‘x’. I am using an iPad keyboard.  Any ideas?


That's what I want to do with C#. I have two buttons and two textboxes, and first I want to write something in textbox1, and this message is redirected to the console, and at this time, when something new appears in my console, textbox2 needs to read it, and the process should continue and continue. I want to use my simple DLL library, which works in this scenario. I know how to write messages to the console, but I can not read every new one from the console and write it to textbox2.  This is my redirecting from textbox into console, now i need to read anything new appearing in the console to my textbox2.  public partial class NativeMethods {     public static Int32 STD_OUTPUT_HANDLE = -11;      [System.Runtime.InteropServices.DllImport("kernel32.dll")]      public static extern System.IntPtr GetStdHandle(Int32 nStdHandle);      [System.Runtime.InteropServices.DllImport("kernel32.dll", EntryPoint = "AllocConsole")]     [return: System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)]      public static extern bool AllocConsole(); }   And somewhere else....  public void console() {     if(NativeMethods.AllocConsole())     {         IntPtr handle = NativeMethods.GetStdHandle(NativeMethods.STD_OUTPUT_HANDLE);          Console.WriteLine("type: ");     }     else     {         Console.WriteLine("Waiting...");     } }   Using these when a button is clicked.


Why vote buttons hidden in locked questions?

I understand  that they don't hide the vote buttons, instead they display an error message if the action is not allowed (for example upvoting your own answer). But then why doesn't the vote buttons shown in locked questions? According to his design logic there should be vote buttons in locked questions too and clicking them should give a message like:     You can't vote on locked questions/answers.


I have a file that I have made a significant amount of changes to. When I try to render it now, it shows an old image from a few weeks ago that I rendered and no file is saved. Does this sound familiar at all? I'm kind of going crazy.  I'm not sure if there are any settings I need to show, but if there are, I would be glad to post them. I'm using Version 2.70.


Using a static class member as a parameter in initialise list

I want to have a simple class that represents an object with unique id. Every new object gets an ID higher than the previously created one. Important thing to notice is that id for every object is constant, so I'm obliged to use initialise list. For some reason I get an error about undefined reference: Undefined reference to Test::ID.  class Test {     const int m_id;     static int ID; public:     Test() : m_id(ID++)     {         cout << "Created object with id: " << m_id << endl;     } };    Why is this? How can I fix this? How can I make sure that ID is pre-initialised with 0, so i don't increment an uninitialised variable?


pgfplot error with mathematical equation

I'm new to this site and I'm searching for the help. I'm trying to plot an adsorption isotherm described with specific equation. I used pgfplots package with following commands:  \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[baseline] \begin{axis}[ ymin=0, ymax=100, xmin=0, xmax=105, ]% \addplot[violet,domain=0:100,samples=999]{((38.25708798*23.0303696*(x/41.77116184))/(1-(x/41.77116184)))*((1-(2.76389715+1)*((x/41.77116184)^2.76389715)+2.76389715*((x/41.77116184)^(2.76389715+1)))/(1+((23.0303696-1)*(x/41.77116184))-23.0303696*((x/41.77116184)^(2.76389715+1))))}; \end{axis} \end{tikzpicture} \end{document}   which leads to the:    The plotted isotherm has an error shape, because the plotted isotherm should be:    Am I missing something, or is it a bug of the PGFPlots package?


I have a Dell Latitude 2120 small laptop with an Intel Atom (N550) CPU that has run Ubuntu 16.04 LTS for a year or so.  Recently I installed Ubuntu 18.04 LTS.  The boot process gets to the "moving dots" stage, the mouse cursor arrow eventually appears, but it is frozen and the system hangs at the dots stage.  I have tried boot-repair to no avail.  The system boots successfully from the "live USB" drive, but not on its own.  There is some web traffic that suggests that (1) Intel Atom needs a 32-bit system for Ubuntu and (2) 32-bit ISOs are no longer available from Ubuntu.  Is there a solution to this?


I am running a correlated subquery to find out the listing of vendors (by Vendor Name) that are in different cities, states, i.e. we want to know the vendors that do not have a common city and state with other vendors. It seemed like a self-join was the thing to do.   Only hints if possible, please.  The Vendors table is:  Vendors(VendorID P, VendorCity, VendorState, VendorName,...)   This is what I have:  Select VendorName, VendorCity, VendorState from Vendors AS V1 where          VendorCity, VendorState NOT IN (Select VendorCity, VendorState FROM           Vendors AS V2 where V2.VendorID <> V1.VendorID)   This is the error message I get:     Msg 4145, Level 15, State 1, Line 2 An expression of non-boolean type   specified in a context where a condition is expected, near ','.   I don't see why there is a reference to Boolean types, since this is not an EXISTS or other related query.


Number of labeled trees which have one vertex of degree 4

How many labeled trees which have one vertex of degree 4 can we have? A tree with $10$ vertices has $9$ edges, so the sum of the degrees of the vertices is $2\cdot 9=18$. If there is one vertex of degree $4$, the sum of the degrees of the other $9$ vertices must be $14$. I don't know what to do next. Should I count all possible vertex degrees?


Establishing Triangle Inequality of a particular norm


how to get all required driver for my pc

I brought the PC SAMSUNG NP-RV515L on Feb 2012 and in 2015 I lost my all important driver and still I am not able to fix it. So how would I know that which driver pack should I download to fix it?


Prove that $\sum_{n=1}^\infty\frac{n}{n^2+1}$ is divergent

I'm trying to show that the series $\sum_{n=1}^\infty\frac{n}{n^2+1}$ is divergent.   I'm trying to use a comparison test to do so. To do so, I first can see that $\sum_{n=1}^\infty\frac{n}{n^2+1} \geq \sum_{n=1}^\infty\frac{n}{n^2+n} = \sum_{n=1}^\infty\frac{1}{n+1}$ And I can use a change of variable $k = n+1$, so show $\sum_{n=1}^\infty\frac{1}{n+1} = \sum_{k=2}^\infty\frac{1}{k} = \infty$. Then since $\sum_{n=1}^\infty\frac{n}{n^2+1} \geq \sum_{k=2}^\infty\frac{1}{k}$ it must be that $\sum_{k=2}^\infty\frac{1}{k}$ also diverges to infinity. Is this a valid way to show it?


Remove title number from specific chapter

I want to remove the number of the title. In the picture you can find the problem as visually:   Is it possible? Thank you.  My MWE is below:  \RequirePackage{filecontents} \begin{filecontents}{\jobname.bib}  @article{einstein,     author = "Albert Einstein",     title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})     [{On} the electrodynamics of moving bodies]",     journal = "Annalen der Physik",     volume = "322",     number = "10",     pages = "891--921",     year = "1905",     DOI = "http://dx.doi.org/10.1002/andp.19053221004",     keywords = "physics" }  @book{dirac,     title = {The Principles of Quantum Mechanics},     author = {Paul Adrien Maurice Dirac},     isbn = {9780198520115},     series = {International series of monographs on physics},     year = {1981},     publisher = {Clarendon Press},     keywords = {physics} }  @online{knuthwebsite,     author = "Donald Knuth",     title = "Knuth: Computers and Typesetting",     url  = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",     addendum = "(accessed: 01.09.2016)",     keywords = "latex,knuth" }  \end{filecontents}  \documentclass[12pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[main=turkish,english,shorthands=:!]{babel} \usepackage{titlesec} \usepackage[normalem]{ulem} \usepackage{etoolbox} \usepackage[nottoc,numbib]{tocbibind} \usepackage{titlesec}   % Customize headings \usepackage{titlesec} \newcommand*{\myonehalfvspace}{20.775861pt}% <-- Define a macro \myonehalfvspace   % Chapter heading \titlespacing*{command}{left}{before-sep}{after-sep}[right-sep] \titleformat{\chapter}   {\normalfont\normalsize\bfseries}{\thechapter.}{.5em}{} \titlespacing{\chapter}{1cm}{0cm plus 4pt minus 2pt}{\myonehalfvspace plus 2pt minus 2pt}  \usepackage[round]{natbib} \bibliographystyle{plainnat} % or some other suitable bib style  \usepackage[none]{hyphenat}  \usepackage[spaces,obeyspaces,hyphens]{xurl} % allow arbitrary line breaks in URL strings \urlstyle{same} \usepackage[colorlinks,allcolors=blue]{hyperref}   \begin{document} \tableofcontents  \chapter{Chapter} \setlength{\parindent}{1cm}  Chapter name and the first line of the paragraph is aligned here \cite{einstein}, \cite{dirac}, \cite{knuthwebsite}.  \chapter{Chapter} Chapter 2 content.  \setlength\bibhang{50pt} \bibliography{\jobname}  \chapter{Chapter} Chapter 4 content.  \end{document}


I'm trying to understand why rockets have multistages releasing their fuel tanks. Say a rocket $R$ has two fuel tanks $A$ and $B$, which respectively have masses $m_a$ and $m_b$, and the mass of the fuel in the respective tanks is $m_{fa}$ and $m_{fb}$. Let $M$ be the total initial mass, and suppose the rocket starts from rest. We use the equation $v-v_0=v_{ex}\ln(m_0/m)$, where $v_{ex}$ is the (constant) speed of the expent fuel.  First suppose the rocket spends its fuel all at once. Then  $$v_f=v_{ex}\ln\left(\frac{M}{M-(m_{fa}+m_{fb})}\right).$$  Now suppose the rocket first spends its fuel in tank $A$: $v_1=v_{ex}\ln(\frac{M}{M-m_{fa}}).$ Now the rocket detaches tank $A$, so the mass is now $M-(m_{fa}+m_a).$ Consequently, after spending the fuel in tank $B$, we have  \begin{align} v_f&=v_1+v_{ex}\ln\left(\frac{M-(m_{fa}+m_a)}{M-(m_{fa}+m_a+m_{fb})}\right)\\&=v_{ex}\left[\ln\left(\frac{M}{M-m_{fa}}\right)+\ln\left(\frac{M-(m_{fa}+m_a)}{M-(m_{fa}+m_a+m_{fb})}\right)\right].\end{align}  Now I'm not seeing how to show $v_f$ is greater in the second case, so I'm thinking I made some mistake in the argument. Can anyone clear things up?


My problem: I do not have my user name link on top of page- I have only my profile picture- how can I log out? any idea? I log in via gmail.  Thank you!


What should I be concerned with in buying a house for less than the market value?

I've grown up in my grandparents house my entire life. They lived two miles away my entire life. Sleep overs, dinners, barbecues, etc.  It's been the plan since I was a kid to buy the house when I got older.  The house is a 4-bed 2-bath, and it's getting to be too empty for them.  They've lived in the house for nearly thirty years. The value of the house is about $340,000. They have about $160,000 left on the mortgage.  They came to me with a proposition for me to buy the house for less than market value, and take the difference, buy a trailer and put it on another piece of property they own and live there.  The current proposition is that I get a mortgage for less than the current market value of the house, probably about $260,000. They then sell me the house for that amount. They pay off the $160,000 mortgage, and take the remaining $100,000 to get them setup on their other property (buy a trailer/fifth wheel, garage, carport, etc).  Are there any concerns with this plan? Do they have to do anything special to facilitate this? Do I?


Why does Grave operator changes output format of the command?

Hello i want to ask why when i write    ls -l   there is new line after every row but when i assign it to a variable   myVariable=`ls -l`   and than echo that variable   echo $myVariable   i get everything in concatanated in one row...Thanks


Could a potato stay alive and power a clock while growing in the ground?   I know how a potato clock works as a electrochemical cell  and involves chemistry, but I am only interested in a growing plants ability to grow and recover lost compounds, water or otherwise during this process while in the ground.    Side question: How much power could come from one potato?  Source is in the picture.


Why did Dooku/Tyranus reveal the truth about Darth Sidious to Obi-Wan on Geonosis?

Wasn't it a risk for Dooku to tell Obi-Wan the truth about Darth Sidious?  Count Dooku: What if I told you that the Republic was now under the control of a Dark Lord of the Sith? Obi-Wan: No, that's not possible. The Jedi would be aware of it. Count Dooku: The dark side has clouded their vision. Hundreds of senators are now under the influence of a Sith Lord called Darth Sidious.  Did Dooku tell Obi-Wan the truth simply because he knew the Jedi wouldn't believe him anyway? Why tell Obi-Wan? Note: this question was inspired by the question at


Why the presheaf image of an injective morphism of sheaves is automatically a sheaf? This question appears also here . But the answear is actually a counter example for other question.  I have no idea how to start.


Operator precedence - Discrete Math (Predicate logic)

Can someone please give me a hint as to how these two statements are different? Thank you!   ∀x ∈ S, ∃y ∈ T, P(x, y) ⇒ Q(x) (Statement 1)  ∀x ∈ S, (∃y ∈ T, P(x, y)) ⇒ Q(x) (Statement 2)


Is Eatable acceptable in the following statement?

I have encountered an exam question. The model answer is edible. A)The fruit is edible and its juice is made into wine. B)The fruit is eatable and its juice is made into wine. Is eatable acceptable in the above case?


BASH How to save the output of rm -vri to a var

How can I save the output of this command into a var and still remove the files?  rm -vri files | wc -l


How can I automatically timestamp rows in a Google Sheet?

I am entering data into a Google Sheet. I would like to have a column where each row will be automatically timestamped with the DateTime in which I entered (or last updated) the contents of the row. I know that I can do this manually by adding =now() to a cell, which will record the timestamp. However, this will update on any change to the doc, so I then need to copy and ctrl-shift-v to paste back just the value. Would be more ideal if there was a formula that I could paste down the column which would only set now() as the value if there is a change in any of the selected columns in the given row. Thoughts on how to do this?


Why can't I define the "+" operator for IEnumerable?

It's not a question (however see bottom of the post). Just for fun - just I trained with new C# features.  Haskell vs C# 8.0 :)  static class CS8_Tests {     public static void Deconstruct<T>(this IEnumerable<T> items, out T head, out IEnumerable<T> tail)         => (head, tail) = (items.FirstOrDefault(), items.Skip(1));      /// <summary>     /// Famous Haskell implementation:     /// quicksort :: (Ord a) => [a] –> [a]     /// quicksort[] = []     /// quicksort(x:xs) =     /// let smallerSorted = quicksort[a | a <– xs, a <= x]     ///     biggerSorted  = quicksort[a | a <– xs, a >  x]     /// in smallerSorted ++ [x] ++ biggerSorted     /// </summary>     static IEnumerable<T> quickSort<T>(IEnumerable<T> items) where T : IComparable<T>         => items switch         {             _ when items.Count() == 0 => items,             (var x, var xs) => quickSort(xs.Where(a => a.CompareTo(x) <= 0))                               .Append(x)                               .Concat(quickSort(xs.Where(a => a.CompareTo(x) > 0)))         };      static int indexOf<T>(IEnumerable<T> items, T target, int index = 0) where T : IEquatable<T>         => items switch         {             (var h, _) when h.Equals(target) => index,             (_, var tail) when tail.Count() == 0 => -1,             (_, var tail) => indexOf(tail, target, index + 1),         };      public static void RunTests()     {         var items = new List<int> { 2, 5, 7, 5, 1, 4, 3, 1 };         var sorted_items = quickSort(items).ToList();         var index = indexOf(items, 1);     }      //public static IEnumerable<T> operator +(IEnumerable<T> elms1, IEnumerable<T> elms2)     //    => elms1.Concat(elms2);    }   Unfortunately, we cannot define "+" operator for IEnumerable - then this code would be more compact (see commented lines at the bottom of the code). It is interesting - why? - this may be my question.


Rasterize the full area of a polygon, not only midpoints, using R

The default function in raster::rasterize is to see if a point is within a polygon and if yes, make a cell. This results in that some of the outer parts of the polygon is not covered by the new raster.  Is it possible to use rasterize (or fasterize or whatever) in a way, so that the entire polygon is covered?


Near/radar/ray/collision sensors refuse to work

None of the physics sensors in my game work, I'm trying to create an AI man that chases after a player, but for whatever reason, he just won't sense the player, I've tried copying and pasting the property name just to be sure, but that's not it.


(Java) My unit circle program produces a strange result

So I'm taking an online Java course and the task is as follows:  In this program we are going to practice using the Math class by computing some important values on the unit circle. Starting at 0 and going up by  PI/4 radians (or 45 degrees), print out information of the format below.      Radians: (cos, sin)     0.0: 1.0, 0.0     0.79: 0.7, 0.71     1.57: 0.0, 1.0     2.36: -0.71, 0.7     3.14: -1.0, 0.0     3.93: -0.7, -0.71     4.71: 0.0, -1.0     5.5: 0.71, -0.71   Hint: You’ll need to use the Math.sin, Math.cos methods  and the Math.PI constant!  You’ll also need to loop from 0 to 2*PI  Here is what I came up with:      public class UnitCircle extends ConsoleProgram     {         public void run()         {             System.out.println("Radians: (cos, sin)");             for(double count = 0; count <= Math.PI * 2; count += Math.PI / 4)             {                 System.out.println(count + ": " + Math.cos(count) + ", " + Math.sin(count));             }         }     }   However when I run it, this is what I get:      Radians: (cos, sin)     0.0: 1.0, 0.0     0.7853981633974483: 0.7071067811865476, 0.7071067811865475     1.5707963267948966: 6.123233995736766E-17, 1.0     2.356194490192345: -0.7071067811865475, 0.7071067811865476     3.141592653589793: -1.0, 1.2246467991473532E-16     3.9269908169872414: -0.7071067811865477, -0.7071067811865475     4.71238898038469: -1.8369701987210297E-16, -1.0     5.497787143782138: 0.7071067811865474, -0.7071067811865477     6.283185307179586: 1.0, -2.4492935982947064E-16   What's up with that? Could it be that I need to limit the calculations to round to 2 decimal places? What else am I doing wrong? Any help would be greatly appreciated.


How does quantum foam at small distance scales conflict with general relativity?

I recently read The Elegant Universe by Brian Greene to understand more about relativity, quantum mechanics, and the conflict between them. What it says is that "the notion of a smooth spatial geometry, the central principle of general relativity, is destroyed by the violent fluctuations of the quantum world on short distance scales". I still don't understand why this is. Why can't small scales be random and with quantum foam, but when you zoom out, space curves smoothly like relativity predicts?


If $Z$ is a standard normal random variable and $g(z)$ is differentiable, show that $\Bbb{E}[g'(z)]=\Bbb{E}[Zg(z)]$

I am looking for help proving this proposition:  "If $Z$ is a standard normal random variable and $g(z)$ is differentiable, then $\mathbb{E}[g'(Z)]=\mathbb{E}[Zg(Z)]$"  I have tried evaluating $\mathbb{E}[g'(Z)]$ using integration by parts as follows. $$\mathbb{E}[g'(z)]=\int_{-\infty}^\infty{g'(z)}\frac{1}{\sqrt{2\pi}}e^{-\frac{z^2}{2}}dz=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty{g'(z)}e^{-\frac{z^2}{2}}dz$$ Let $u=e^{-\frac{z^2}{2}}$ and $dv=g'(z)dz$. Now, $$\frac{1}{\sqrt{2\pi}}e^{-\frac{z^2}{2}}g(z)\Big|_{-\infty}^{\infty}+\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty}zg(z)e^{-\frac{z^2}{2}}dz$$ Interestingly the second half of this equation is equal to $\mathbb{E}[Zg(Z)]$. I am not sure how to show that the first half of the above equation equals zero and is thus equal to $\mathbb{E}[Zg(Z)]$. I am also not sure how to evaluate $\mathbb{E}[Zg(Z)]$ as to yield the same equation, so it seems I have hit a dead end. I would like some help finishing this proof. Preferably, I want to know the simplest method.


just got a new Samsung laptop running Windows 8. The laptop keyboard has no indication if capslock enabled or not. Is there some way I can get it to display in the system tray, or to flash on the screen when it changes?


what is the difference between left join and left outer join?

I have created 2 tables as  CREATE TABLE table1(customerName VARCHAR(20),custid NUMBER ,order_id NUMBER ,price NUMBER ); CREATE TABLE table2(id NUMBER ,salary NUMBER );   Now, I tried to use the queries   SELECT t1.customername,t1.custid,t2.salary FROM table1 t1 left join table2 t2 ON t1.custid = t2.id; SELECT t1.customername,t1.custid,t2.salary FROM table1 t1 left outer join table2 t2 ON t1.custid = t2.id;   But I get the same output. Is there any difference between them internally in their working ? or are both same!?


Missing icons in the launcher after upgrade to Ubuntu 14.04

After upgrading a particular system from 13.10 to 14.04 there are a few items in the launcher portrayed with a question mark:    This is not the . The icon is always rendered this way, no shadow icon is created when the application is running and it gets the visual semantics and behaviour as any other functioning launcher item.  It is neither  or a wrong icon path. Following some shell output regarding one of the applications concerned:  $ cat /usr/share/applications/eclipse.desktop  [Desktop Entry] Type=Application Name=Eclipse Icon=/usr/local/eclipse.kepler/eclipse.png Exec=env UBUNTU_MENUPROXY= /usr/local/eclipse.kepler/eclipse Terminal=false Categories=Development;IDE;Java;  $ ls -la /usr/local/eclipse.kepler/eclipse.png -rw-r--r-- 1 lads lads 53556 Jun 11 19:00 /usr/local/eclipse.kepler/eclipse.png   What could then be the cause?


Spawn a gameobject from list when grip button is clicked?

I wanted to spawn gameobjects from the list one by one when the grip button in the controller is clicked. I have attached my code  and the inspector  which contains the list of gameobject but the code is not working. Need Help


They have told me this log in is vulnerable, but i dont know how to make it safe, im looking for help if anyone whants to help me I'd really appreciate it.   When i add this: "1' OR 1=1 LIMIT 1#" to the password en the login form it enters.  Here is the code:    <?php session_start(); include 'inc/header.php'; include 'panel_funciones.php';  $usuario = $_POST["nombre"]; $pass = $_POST["pass"]; try {  $bd = new PDO("mysql:host=localhost;dbname=b9_16267033_1","b9_16267033","12346");  $bd->query("SET NAMES 'utf8'"); } catch (Exception $e){  echo "No se ha podido conectar";  exit; } try{         $sql= "SELECT usuario, pass FROM usuarios WHERE usuario='$usuario' and pass='$pass'"; }catch(Exception $e){  echo "Error en consulta";  exit; } $iniciosesion = $bd->query($sql); $result = $iniciosesion->fetchAll(); $contar = count($result);  // AQUI COMIENZA COMPROBACIÓN if ($_SESSION['Logueado'] = TRUE) {  panel(); } elseif ($contar == 1) {  $_SESSION['Logueado'] = TRUE; panel(); } else{  echo "El usuario o contraseña es incorrecto"; } include 'inc/footer.php'; ?>


What I'm trying to do is the get the user input and search through the file, If it match it will show the result, else it will echo $keyword not found.  But my scrip is always return fault.         read -p "Enter keyword: " keyword        if search="$(cat ./records | grep '$keyword')"        then        echo "$search"        else         echo "$keyword not found!"        fi ;;


On my FreeBSD server, I have setup a cron script for backups using Duplicity. This script is as follows:  #!/bin/sh  export PASSPHRASE= export FTP_PASSWORD=  keyid= remote= excludelist=  /usr/local/bin/duplicity --volsize 1000 --max-blocksize=20480 --asynchronous-upload --full-if-older-than 1M --encrypt-key "$keyid" --exclude-filelist "$excludelist" /Data "$remote"  /usr/local/bin/duplicity --force remove-all-but-n-full 1 "$remote"  unset FTP_PASSWORD unset PASSPHRASE   (sensitive data redacted, of course).  This script is located at /etc/periodic/daily/duplicity and works fine if I run it directly from the terminal. But it doesn't work when cron/periodic runs it, and that seems te be because env is not functioning correctly.  Initially, the hashbang of the script read #!/usr/bin/env sh, but that resulted in the error env: sh: No such file or directory. So I changed it to the direct path of sh.  The problem I'm currently having is that duplicity uses env internally. So currently, I get the error env: python2: No such file or directory when cron tries to run it.  Why doesn't env work inside cronjobs, and how can I fix this?


How to autostart `xrandr` in Ubuntu Mate 15.04

I am happily using Ubuntu Mate 15.04 (Mate 1.8.2) and I need to run a xrandr script in every initialization to correct the resolution of my external monitor.  But it doesn't has a /etc/mdm/Init/...  In gnome-fallback I used /etc/gdm/Init/Default but, for obvious reasons, Mate doesn't use GDM.  Where is the correct place to insert my xrandr commands in Ubuntu Mate?


Why did mv delete a file with mv id_rsa *.old?

I wanted to backup my ~/.ssh/id_rsa to id_rsa.old, and it looks like it got deleted!  How is this possible?  :)  root@localhost:~/.ssh# ls -l total 16 -rw------- 1 root  root  3326 Mar 12 11:22 id_rsa -rw-r--r-- 1 root  root   756 Mar 12 11:22 id_rsa.pub -rw------- 1 userx userx  666 Mar  8 11:09 known_hosts -rw-r--r-- 1 userx userx  666 Feb 29 10:53 known_hosts.old root@localhost:~/.ssh# mv id_rsa *.old root@localhost:~/.ssh# ls -l total 12 -rw-r--r-- 1 root  root   756 Mar 12 11:22 id_rsa.pub -rw------- 1 userx userx  666 Mar  8 11:09 known_hosts -rw------- 1 root  root  3326 Mar 12 11:22 known_hosts.old root@localhost:~/.ssh# touch p root@localhost:~/.ssh# mv p *.p root@localhost:~/.ssh# ls -l total 12 -rw-r--r-- 1 root  root   756 Mar 12 11:22 id_rsa.pub -rw------- 1 userx userx  666 Mar  8 11:09 known_hosts -rw------- 1 root  root  3326 Mar 12 11:22 known_hosts.old -rw-r--r-- 1 root  root     0 Mar 12 11:28 *.p root@localhost:~/.ssh# rm *.p root@localhost:~/.ssh# ls -l total 12 -rw-r--r-- 1 root  root   756 Mar 12 11:22 id_rsa.pub -rw------- 1 userx userx  666 Mar  8 11:09 known_hosts -rw------- 1 root  root  3326 Mar 12 11:22 known_hosts.old userx@localhost:~$ uname -r 4.2.0-30-generic userx@localhost:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.10 Release:    15.10 Codename:   wily userx@localhost:~$ bash --version GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)


I've created my own environment example, similar to theorem. Now I want to generate a list of examples, similar to list of tables or list of figures. How can I achieve this?


I'm wonder why this simple code doesn't work.  In main.py I have  def foo():     HTTPHelper.setHost("foo")     host = HTTPHelper.host()   and in HTTPHelper.py:  _host = None def setHost(host):     _host = host def host():     return _host   But when I step through foo() host becomes NoneType, even though I set it on the line before. Very confused...


Allow for non-Imgur hosted images in community ads

Once upon a time, Mi Yodeya had a community ad which looked like this:    This was a really neat ad, and was heavily upvoted and put into the rotation year after year...until however long ago it's been now that non-imgur pictures are banned.   Can this be reversed? If the community wants these kinds of ads which aren't stills, why shouldn't they be able to have it? SE has the final say on if ads can go on rotation, and the fact that they have vetoed ads in the past indicates that they do regularly monitor what community ads are on rotation, so if it's one of increased moderation, at least from my completely uninformed and superficial perspective as a user it doesn't seem like there's any loss there.


$f(x)$ is the function such that $$\lim_{x\to 0} \frac {f(x)}{x}=1$$. If $$\lim_{x\to 0} \frac {x(1+a\cos x) -b\sin x}{(f(x))^3}=1$$ then find a, b.    Using L'Hospital I have found that $f'(0)=1$ but I am not able to use that information further. Moreover I also think that $f(0)$ must be $0$ for application of L'Hospital.   Any new methods and hints would be appreciated. If anyone comes up with a solution without use of L'Hospital then it would be the best.


Just did a clean 20.04 install on my laptop.  Tried to install flatpak (cli), to install some additional software  Doesn't work:   sudo apt install flatpak  Package flatpak is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: xdg-desktop-portal   Which is nonsense, because it is installed and flatpak doesn't work:  flatpak flatpak: command not found   Why is flatpak not available in 20.04?   How do I install flatpak (cli)?  UPDATE Flatpak is available after doing:  sudo apt update && sudo apt full-upgrade -y   (kudos to mook765)  Still:   shouldn't this by done automatically after finishing an install the message that it is replaced by xdg-desktop-portal is confusing


Prove that $$1<\dfrac{1}{1001}+\dfrac{1}{1002}+\dfrac{1}{1003}+\dots+\dfrac{1}{3001}<\dfrac43 \, .$$  My work: $$\begin{eqnarray*} S&=&\bigg(\dfrac{1}{1001}+\dfrac{1}{3001}\bigg)+\bigg(\dfrac{1}{1002}+\dfrac{1}{3000}\bigg)+\ldots+\dfrac{1}{2001}\\ S&=&\dfrac{1}{4002}\bigg\{\bigg(\dfrac{1001+3001}{1001}+\dfrac{1001+3001}{3001}\bigg)+\ldots\bigg\}+\dfrac{1}{2001}\\ S&\ge& \dfrac{1}{4002}4\cdot1000+\dfrac{1}{2001}=1 \end{eqnarray*}$$ I could derive the left hand inequality with a $\ge$ sign though but could not do anything about the right hand inequality. Please help. EDIT: I do not need to use the equality sign, I can rather use only strict inequality because there exist terms which are not equal so, the AM-HM inequality is actually a strict inequality here. $$S> \dfrac{1}{4002}4\cdot1000+\dfrac{1}{2001}=1$$ Though I got the solution but I am looking for some non-calculus solutions too.


Whenever I take a definite integral in aim to calculate the area bound between two functions, what is the meaning of a negative result? Does it simly mean that the said area is under the the x - axis, in the negative domain of the axis?


Venn diagram for conditional probability property of Independent Events

In my maths schoolbook there is this property for independent events:     p(A|B) = p(A)      p(B|A) = p(B)   But I can't imagine how this is possible. How would you draw a Venn diagram that follows this property?


What can you do with the eval command? Why is it useful? Is it some kind of a built-in function in bash? There is no man page for it..


As  on "How did Voyager replace its photon torpedoes?"     What is special about a photon torpedo that would make them unmanufacturable without specialized tools that Voyager did not have? Everything except the payload should be doable with the push of a replicator button. And the warhead itself is just M/AM is it not?   Are there things a Replicator cannot replicate? What are the actual limits of a Replicator? Could a living being be replicated?


A trivial question, but for some reason my mind is foggy and I could use some verification. We know that the joint bivariate pmf $P[X=i,Y=j]$ can be expressed using CDFs as follows \begin{align} P[X=i,Y=j]&=P[X\leq i,Y\leq j]-P[X\leq i-1,Y\leq j]-P[X\leq i,Y\leq j-1]+P[X\leq i-1,Y\leq j-1]\\ &=\sum_{m=0,1}\sum_{n=0,1}(-1)^{(n+m)}P[X\leq i-m,Y\leq j-n] \end{align} I would like to verify that the above relationship holds for any dimension - e.g. \begin{align} P[X=i,Y=j,Z=k]=\sum_{m=0,1}\sum_{n=0,1}\sum_{l=0,1}(-1)^{(l+n+m)}P[X\leq i-m,Y\leq j-n,Z\leq k-l] \end{align}


apt-get install python-dev is failed to unmet dependency

I am not able to install python-dev on my server. CPU - ARM64 OS - Ubuntu16.04.03  It failed due to unmet dependencies.  I have already tried for update,upgrade, force install and followed with multiple links to resolve. Looks issue specific to ARM64 with ubuntu16.04.3 ...  # sudo apt policy python-dev python-dev:   Installed: (none)   Candidate: 2.7.11-1   Version table:      2.7.11-1 500         500 http://us.ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages   I tried manually install dependent python pkg, but could not able to resolve dependency:  root@ubuntu:/home# sudo apt-get install python-dev Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  python-dev : Depends: libpython-dev (= 2.7.11-1) but it is not going to be installed               Depends: python2.7-dev (>= 2.7.11-1~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  root@ubuntu:/home# sudo apt-get install python2.7-dev  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  python2.7-dev : Depends: libpython2.7-dev (= 2.7.12-1ubuntu0~16.04.2) but it is not going to be installed                  Depends: libpython2.7 (= 2.7.12-1ubuntu0~16.04.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  root@ubuntu:/home# sudo apt-get install libpython2.7  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.12-1ubuntu0~16.04.1) but 2.7.12-1ubuntu0~16.04.2 is to be installed E: Unable to correct problems, you have held broken packages.  root@ubuntu:/home# sudo apt-get install libpython2.7-stdlib  Reading package lists... Done Building dependency tree        Reading state information... Done libpython2.7-stdlib is already the newest version (2.7.12-1ubuntu0~16.04.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  root@ubuntu:/home# sudo apt-get install libpython2.7  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.12-1ubuntu0~16.04.1) but 2.7.12-1ubuntu0~16.04.2 is to be installed E: Unable to correct problems, you have held broken packages.   Plz let me know if need to share more info.  Thanks


How is the water meniscus at the edge of a capillary tube?

Suppose we have a capillary tube in which water can rise to a height of x cm. If we dip the tube such that the height above the surface is less than x, then how will the water meniscus be at the edge of the tube? Why?    Excuse the flat water at the surface near the base of the capillaries.  EDIT: @NewAlexandria Here's my reasoning.  A is the most likely case as once the water molecules at the inner circumference reach the edge, they cannot go any further up as there is no glass to give the needed normal reaction (cosine component). That's all I can think of.


Probability distribution for different probabilities

If I wanted to get the probability of 9 successes in 16 trials with each trial having a probability of 0.6 I could use a binomial distribution. What could I use if each of the 16 trials has a different probability of success?


Awaken monit daemon every few hours for all monitored processes

I am seeing a problem with monit config in configuring the monit daemon to awaken every few hours and start monitoring the processes which were set to "Not Monitored" state.   PROBLEM: When the monit changes to unmonitor certain process, the status changes to "not monitored" and the monit daemon will NEVER try to start the monitoring of this process again even when the PID file is updated with new correct PID and the monitoring STOPS for this process forever unless the monit daemon is awakened for this process again manually like below.   Can this awakening daemon for each process be configured at certain timeout intervals in the monit config for this process, to avoid of pitfalls of ending up with process going to "not monitored" state forever?    Like if 2 restarts within 3 cycles then timeout {X hours} monitor restart  Thank you.  I have this below config for a snmp process.   # Check for cmaeventd process check process cmaeventd with pidfile /var/run/cmaeventd.pid group snmp-agents start program = "/opt/hp/hp-snmp-agents/storage/etc/cmaeventd start" stop program = "/opt/hp/hp-snmp-agents/storage/etc/cmaeventd stop" if 2 restarts within 3 cycles then timeout   For some reason, if the PID file is NOT populated correctly (I am working on fixing it), monit keeps trying to restart the process using the empty pid file throwing the below errors in the monit log and finally "unmonitor" it after it fails to restart within 3 cycles as we configured.  log messages:   [PST Feb  3 11:43:23] error    : monit: Error reading pid from file '/var/run/cmaeventd.pid' [PST Feb  3 11:43:24] error    : monit: Error reading pid from file '/var/run/cmaeventd.pid'  [PST Feb  3 11:45:25] error    : 'cmaeventd' service restarted 2 times within 2 cycles(s) - unmonitor   Monit status for that process after unmonitor:   Process 'cmaeventd'   status                            not monitored   monitoring status                 not monitored   data collected                    Tue Feb  3 12:10:25 2015   Manually awakening the daemon for this process to start the monitoring again:   >monit monitor cmaeventd   This will awaken the monit daemon for this process and starts reading the PID file again and if successful it starts the monitoring back in.   Before awakening the monit daemon for this process: --------------------------------------------------- logbash-3.1# ls -l /var/run/cmaeventd.pid -rw-r--r-- 1 root root 1 Feb  3 00:00 /var/run/cmaeventd.pid logbash-3.1# cat /var/run/cmaeventd.pid  logbash-3.1# ps -ef|grep cmaeventd |grep -v grep root     13066     1  0 00:00 ?        00:00:00 cmaeventd -p 15 -l /var/log/hp-snmp-agents/cma.log l logbash-3.1# echo "13066" > /var/run/cmaeventd.pid logbash-3.1# cat /var/run/cmaeventd.pid 13066  logbash-3.1# monit monitor cmaeventd   From log:   [PST Feb  3 12:20:54] info     : monitor service 'cmaeventd' on user request [PST Feb  3 12:20:54] info     : monit daemon at 23515 awakened [PST Feb  3 12:20:54] info     : Awakened by User defined signal 1 [PST Feb  3 12:20:54] info     : 'cmaeventd' monitor action done   Monit status:   Process 'cmaeventd'   status                            initializing   monitoring status                 initializing   data collected                    Tue Feb  3 12:20:54 2015   Changes to below after sometime:   Process 'cmaeventd'   status                            running   monitoring status                 monitored   pid                               13066   parent pid                        1   uptime                            12h 21m   children                          0   memory kilobytes                  2160   memory kilobytes total            2160   memory percent                    0.0%   memory percent total              0.0%   cpu percent                       0.0%   cpu percent total                 0.0%   data collected                    Tue Feb  3 12:21:54 2015


How can I show that $\lim\limits_{x \to \infty} \frac{\log(x+1)}{\log{x}}=1$?

Hello I have a silly question: How can I show that $\lim\limits_{x \to \infty} \dfrac{\log(x+1)}{\log{x}}=1$. Thank you.


Why does bash treat commandlines starting with dots specially?

I tried searching online for an answer, but the answer (if exists) is overshadowed by other applications of dot in shell scripting. So here goes.  EDIT: Turns out it's related to Fedora's default configuration of command_not_found_handle, so it's not related to bash source code. /EDIT  I found that while bash usually complains about lack of command, or even that whatever I input as command-line is a directory:  [root@localhost tmp] # mkdir test [root@localhost tmp] # test [root@localhost tmp] # nonexistent bash: nonexistent: command not found... [root@localhost tmp] # test [root@localhost tmp] # cd test [root@localhost test] # empty bash: empty: command not found... [root@localhost test] # . bash: .: filename argument required .: usage: . filename [arguments] [root@localhost test] # ..   The above are clearly valid and expected. But these:  [root@localhost test] # .... [root@localhost test] # ......................... [root@localhost test] # .whatever [root@localhost test] # ..........whatever [root@localhost test] # ......œę©æąðæćþóœ [root@localhost test] # .ignored [root@localhost test] # touch .whatever [root@localhost test] # .whatever [root@localhost test] # file .whatever  .whatever: empty [root@localhost test] # file .ignored .ignored: cannot open '.ignored' (No such file or directory) [root@localhost test] # .ignored [root@localhost test] # .whatever follows is just discarded [root@localhost test] #    are just silently ignoring whatever I happen to type.  And that's not what one would expect. Is there a reason for this behavior?  EDIT: I found a use case!   [root@localhost ~] # ...|cat [root@localhost ~] # ...|nonexistent bash: nonexistent: command not found... [root@localhost ~] # ...|nonexistent && echo works bash: nonexistent: command not found... [root@localhost ~] # ...|nonexistent || echo works bash: nonexistent: command not found... works [root@localhost ~] # ...|cat && echo works works [root@localhost ~] # ...|cat || echo works [root@localhost ~] #    It apparently allows one to check whether an executable is on PATH without trying to run it - you can see cat didn't block. It was never executed.  This is kind of ridiculous. Have fun!  [root@localhost ~] # LANG=en bash --version GNU bash, version 4.3.42(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>   EDIT2:  [root@localhost ~] # declare -f command_not_found_handle command_not_found_handle ()  {  local runcnf=1; local retval=127; [[ $- =~ i ]] || runcnf=0; [[ ! -S /var/run/dbus/system_bus_socket ]] && runcnf=0; [[ ! -x '/usr/libexec/packagekitd' ]] && runcnf=0; [[ -n ${COMP_CWORD-} ]] && runcnf=0; if [ $runcnf -eq 1 ]; then     '/usr/libexec/pk-command-not-found' "$@";     retval=$?; else     if [[ -n "${BASH_VERSION-}" ]]; then         printf 'bash: %scommand not found\n' "${1:+$1: }" 1>&2;     fi; fi; return $retval }


Different results on Printing even after querying same matrix


I have \newcommand\dd[2]{\item[\texttt{#1}] #2} and later I have   \dd{bc}{text \verb#$(echo 5+4 | bc)# text \verb#$((5+4))# text}   and I get  ! You can't use `macro parameter character #' in math mode. <argument> ...nicht mit \verb ##$(echo 5+4 | bc)## rechnen, sondern die neue... l.74 ...ekten Rechnen, \verb#$((5+4))#, benutzen.} Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'.   How can I get the verbatim into my command without the command interpreting it wrongly?


Why does ping get higher if the server is in a different region?

I love playing Minecraft servers on my phone, but it usually baffles me that when I want to play my most favorite server, CubeCraft, has higher ping than the rest of the servers. Now, to put it simply, I'm from GMT+8, so I'm somewhere at Asia, and the only server that has normal ping is The Hive, the only featured server with an Asian region. The others are from either NA (Lifeboat, Mineplex, Mineville, Galaxite) or EU (CubeCraft, Galaxite), and they give around 200 ping, whereas EU servers give 300 ping. In Hive AS, the ping is usually 69. So why does servers in foreign regions give higher ping?


Creating multiple arraylist objects in for loop and add it to TreeMap

Is there any solution available to reduce the number of lines of code for the following?  TreeMap<Integer,List<SomeObject>> myMap = new TreeMap<Integer,List<SomeObject>>();  List<SomeObject> list1 = new ArrayList<SomeObject>(); list.add(someObjectInstance1); list.add(someObjectInstance2);  List<SomeObject> list2 = new ArrayList<SomeObject>(); list.add(someObjectInstance1); list.add(someObjectInstance2);  List<SomeObject> list3 = new ArrayList<SomeObject>(); list.add(someObjectInstance1); list.add(someObjectInstance2);  List<SomeObject> list4 = new ArrayList<SomeObject>(); list.add(someObjectInstance1); list.add(someObjectInstance2);  myMap.put(1, list1); myMap.put(2, list2); myMap.put(3, list3); myMap.put(4, list3);   Assume that SomeObject represents a custom Date type and List<SomeObject> currentWeek will represent a list of dates. In this list I will store only starting and ending date of a week. I have to store previous weeks (by subtracting 7 days from the current Sunday and current Saturday) in a map.  The above code will looks good if the loop size is small. What if my loop size is more than 20? Then I tried the following solution.      private Map<Integer, List<SomeObject>> getPreviousWeeks(List<SomeObject> currentWeek) {     TreeMap<Integer,List<SomeObject>> treeMap = new TreeMap<Integer,List<SomeObject>>();             for(int n=0; n<20; n++) {                 List<SomeObject> nthWeek = currentWeek;                 SomeObject nthWeekStartDate = nthWeek.get(0);                 SomeObject nthWeekEndDate = nthWeek.get(1);                 nthWeek.clear();                 nthWeek.add(nthWeekStartDate);                 nthWeek.add(nthWeekEndDate);                 treeMap.put(n,nthWeek)                 nthWeek.clear();                 nthWeekStartDate = nthWeekStartDate.subtractDays(7);                 nthWeekEndDate = nthWeekEndDate.subtractDays(7);                 nthWeek.add(nthWeekStartDate);                 nthWeek.add(nthWeekEndDate);                 currentWeek = nthWeek;              }              return treeMap;         }   The problem here is, it is returning 20 days of same day. When I was debugging it is working fine only for the first iteration.  Can any one help me in this?  Thanks.


How to make Windows 10 file explorer show full date with seconds?

Windows 10 pro, version 1903  When viewing files in folder with raw images, I can only see the hour and minutes.  Is there any way to display also the seconds in the date taken?  thanks


Use of present perfect with "until" - "...until he's eaten everything"

I came across the following sentence and I would like to ask if it is grammatically correct to say the second one also and if we can what will it mean?      1 .His parents make him stay at the table until he's eaten everything.   2. His parents make him stay at the table until he eats everything.


Restoring a backup of a database from SQL Server 2014 into SQL Server 2012

Is it possible to load a backup of SQL server 2014db into SQL server 2012?  Trying to import/restore is throwing backward compatibility issues.  Thanks


I have a table called contacts and i want to select all the distinct contact names (int) in one line separated by comma.  Currently i am using:  SELECT DISTINCT name FROM contacts   To get this result:  11111 22222 33333   But i need to have this result:  11111, 22222, 33333   I saw some examples with XML PATH but i couldn't adapt it to my code. Can anybody help me with the query please?


How does declaring variables inside a for loop?

I have this program and I declared a variable inside a for loop. Is this bad conventions? I declared it inside so that each time the variable is representing something else through each iteration, is this good? import java.util.stream.IntStream;  public class Program {           public static boolean changeEnough(int[] change, double amountDue) {         double balance = 0;         double[] value = {0.25, 0.1, 0.05, 0.01};         for (int i=0;i <change.length; i++){          double temp = change[i] * value[i];             balance += temp;         }         if (balance >= amountDue){             return true;         }         else{             return false;         }     }    }


Suppose that $a_{n+1}=\log(1+a_n),~a_1>0$. Then find $\lim_{n \rightarrow \infty} n \cdot a_n$.   I can find $\lim_{n \rightarrow \infty}a_n=0$. But I have no idea how to find $\lim_{n \rightarrow \infty} n\cdot a_n$. (In this problem, $\log$ denotes the natural logarithm.) Could you give me key idea about solving this problem?


In the two following snippets, is the first one safe or must you do the second one?  By safe I mean is each thread guaranteed to call the method on the Foo from the same loop iteration in which the thread was created?  Or must you copy the reference to a new variable "local" to each iteration of the loop?  var threads = new List<Thread>(); foreach (Foo f in ListOfFoo) {           Thread thread = new Thread(() => f.DoSomething());     threads.Add(thread);     thread.Start(); }   -  var threads = new List<Thread>(); foreach (Foo f in ListOfFoo) {           Foo f2 = f;     Thread thread = new Thread(() => f2.DoSomething());     threads.Add(thread);     thread.Start(); }   Update: As pointed out in Jon Skeet's answer, this doesn't have anything specifically to do with threading.


What are the best CMS's to use for a review-type website?

I'm looking for a CMS that I can use to build my user-generated review website.  The reviews are attached to a list of products. The products are added by the users themselves, and there needs to be a clever way of consolidating identical and duplicate products. Every review has multiple pre-determined fields which I, the admin, will configure. A couple of examples of the pre-determined fields includes a 5-star rating system, and multiple text fields each within a category type. Non-registered visitors can view the reviews on the products; registered users can write reviews for existing products but need to have had written X number of reviews before being able to add new products (that they or others can review for).  The latter criteria is probably very difficult to find in an existing CMS, and I'll probably have to develop it myself but I thought I would ask this community for a recommendation on the CMS to use that will get me closer to the review website I'm hoping to build.  Your help is appreciated.  PS: A similar question was asked over 4 years ago  but that was a very long time ago and new and better solutions may have come out since then.


Better Information On Defense Damage Clash of Clans

The way that Clash of Clans chooses to convey information about how much damage defense buildings output is bad. The current method of telling the user that a mortar does X dmg a second is pretty worthless since they fire much slower than once a second.  Where can I find a break down / what is the damage break down for how much damage these buildings do per shot rather than per second?  Sure, information on each level of the buildings would be nice but if that is too much I think simply providing the data for level one of each building would also work.


why JavaScript is meant as a prototype based language

The major advantages with Javascript is said to be that it is a prototype based language.  But what does it mean that Javascript is prototype based, and why is that an advantage?


Graphical glitches under Windows 10 with up-to-date NVIDIA drivers

The aforementioned pictures are my Windows calculator and my Wi-Fi menu from the start bar.  I'm running on an Alienware 18 laptop. I've got 16 GB RAM, Core i7-4940MX (not overclocked), and two Nvidia GeForce GTX 880Ms in SLI. DirectX is updated, graphics drivers are updated. Windows 10, fully updated. It also regularly happens in Microsoft Office, Visual Studio, and my internet browsers. I can't even describe it well enough to google it properly. Win+X menu displays properly, along with most right-click menus.  Any thoughts or general advice? I can't figure out what is causing it, and nor have any of my coworkers or superuser friends.


Math calculation gives wrong result in javascript

I tried a simple calculation it gives me wrong result.  Here is the fiddle :     var test = (1909 / 10000) * 10000 $("#abc").val(test);
   <input type="number" id="abc">

 Actual answer is suppose to be : 1909


Hint request: Proving that every nonempty perfect set in $\mathbb{R}^{k}$ is uncountable

I'm self-studying Rudin's Principles of Mathematical Analysis, and making an attempt to prove the theorems in the book myself before reading how they're done. I'm stuck on Theorem 2.43: Let $P$ be a nonempty perfect set in $\mathbb{R}^{k}$. Then $P$ is uncountable. I think I understand what perfect means (that a set is made entirely up of and contains all its limit points), and I understand that I need to show that no bijection exists between the set of elements of $P$ and the positive integers. I considered trying to find a surjection from the set of points in $P$ to the set of all integer sequences or the set of all sequences made up of 0 and 1, as well as from $P$ to some subset of the real number line, but I can't figure out how to go about actually proving the result I need. Maybe there's a connection to compact sets I'm missing? Any small hints would be appreciated (I still am hoping to have some of the fun of finding an answer).


Show that $\sqrt n$ is irrational if $n$ is not a perfect square, using the method of infinite descent. I know how to prove this by doing a contradiction proof and using The Fundamental Theorem of Arithmetic, but now I'm asked to use infinite descent to prove it. Then the very next problem says "Why does the method of the text fail to show that $\sqrt n$ is irrational if $n$ is a perfect square?" I'm confused by this. Any hints or solutions are greatly appreciated. I was thinking of the standard argument, let $\sqrt n = {a\over b}$ where $gcd(a,b)=1$ and then through some algebra arrive at a common factor for both $a$ and $b$ which contradicts the fact that $gcd(a,b)=1$ and so we can apply this over and over again, but then I don't understand how the next problem says to explain why this method fails.


Is there a clever solution to Arnold's "merchant problem"?

There is a problem that appears in . The problem is also quoted .  You take a spoon of wine from a barrel of wine, and you put it into your cup of tea. Then you return a spoon of the (nonuniform!) mixture of tea from your cup to the barrel. Now you have some foreign substance (wine) in the cup and some foreign substance (tea) in the barrel. Which is larger: the quantity of wine in the cup or the quantity of tea in the barrel at the end of your manipulations?  Here's my solution: The key is to consider the proportions of wine and tea in the second spoonful (that is, the spoonful of the nonuniform mixture that is transported from the cup to the barrel). Let $s$ be the volume of a spoonful and $c$ be the volume of a cup. The quantity of wine in this second spoonful is $\frac{s}{s+c}\cdot s$ and the quantity of tea in this spoonful is $\frac{c}{s+c}\cdot s$. Then the quantity of wine left in the cup is $$s-\frac{s^2}{s+c}=\frac{sc}{s+c}$$ and the quantity of tea in the barrel now is also $\frac{cs}{s+c}.$ So the quantities that we are asked to compare are the same. However, Arnol'd also says  Children five to six years old like them very much and are able to solve them, but they may be too difficult for university graduates, who are spoiled by formal mathematical training.  Given the simple nature of the solution, I'm going to guess that there is a trick to it. How would a six year old solve this problem? My university education is interfering with my thinking.


Document Viewer (Evince) history navigation

I am satisfied with basic functionality of Evince (3.4.0 on Ubuntu 12.04). Unfortunately in this viewer I am really missing history navigation i.e. possibility to go back to previous views and optionally go forward in the viewing history like most of the web browsers have Alt+← and Alt+→. I think this function is very important when using hyperlinks and searching during browsing.  For Evince I did not find this function on the standard keyboard shortcuts, in the menu, in the documentation.  Does Evince have this function and how can it be used?  Which other PDF viewers maintained for Ubuntu have this function?


How to generate a vector that has zero correlation with another vector (in R)?

Suppose I have a vector v1 with values in the set {-1,0,1}  > v1 0  0 -1  1  0  0  0  0  0  0  0  0  0  0 -1  1  0  0  0  0  0  0  0  0  0  0  1 -1  0  0  0  0  0  0  0  0  0  0 -1  1  0  0  0  0   How to generate a vector v2 (with values in the set {-1,0,1}) that has zero correlation (or close to zero) with v1?


I am a robotics student and I would like to master Statistics before diving into machine learning and artificial intelligence. Any book suggestions?


Randomness measure of a sequence over a finite set

If $S$ is a finite set (such as outcomes of a dice). If I have a sequence $x_0 ... x_n$ of elements over $S$, how can I measure randomness quality of such a sequence as compared to measuring quality of random bits?


prove for bell number using induction on n

hi guys I have to prove this equality $$B_n=e^{-1}\sum_{k=0}^{\infty}\frac{k^n}{k!},$$ that is called bell equality only using induction on $n$ . How can i do this? I have tried by  substituting the recursive formula  $\sum\limits_{k=0}^{n} \binom{n}{k} B_{k}$ in the first one. But I am completely lost with indexes. I have already tried to search some informations on the internet but nothing using induction


Is there a possibility to simply display the next element on a layer?

I have to check all the elements on a layer and I'm looking for an easy way to go through all of them. One option would be to open the attribute table and just always click on the next line and then "move to selection". I would prefer an option where I just click on an arrow or use a shortcut and QGIS just jumps to the next element, so that I don't have to be aware of not missing a line and just needing half the amount of clicks. Is there anything like that in QGIS?


How do I install Visual Studio 2010 Express somewhere besides C:?

I have a SSD as my primary (C:) drive, mainly used for quickly loading games.   It's pretty small (~30 GB) so I want to keep things that don't really need a speed boost off of it. I attempted installing the Visual Studio 2010 Express beta last night, and it claimed to require 2.1 GB of space so I changed the install directory to a secondary, non-SSD drive.  After this, the installer said that it would use 1.8 GB on C: and ~200 MB on the secondary drive.   While this token gesture of moving 1/10 of the app to the place I told it to is cute, I really want to install everything I can to the secondary drive.   Is there any way to install all of Visual Studio 2010 Express to a drive besides C:?


line numbers do not show on for the text of a paragraph in which an equation is defined

The line numbers for the text of a paragraph with an equation defined by \begin{align} command do not show as expected. How to fix this?    The LaTeX codes are attached here.   \documentclass[a4paper, 12pt]{article} \usepackage[utf8]{inputenc}    % Use the UTF-8 encoding \usepackage{amsmath}           % For the use of math \usepackage{amsfonts} \usepackage{amssymb}           % For the use of AMS symbols \usepackage{indentfirst}       % For indentation \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}  \usepackage{lineno} \linenumbers  \usepackage{titlesec} \titleformat*{\section}{\large\bfseries} \titleformat*{\subsection}{\normalsize\bfseries} \titleformat*{\subsubsection}{\normalsize}   \renewcommand{\baselinestretch}{1.5}    \usepackage{authblk}           % Use author package \renewcommand*{\Authfont}{\large} \renewcommand*{\Affilfont}{\normalsize\normalfont}  \makeatletter \g@addto@macro\normalsize{%   \setlength\abovedisplayskip{0pt}   \setlength\belowdisplayskip{0pt}   \setlength\abovedisplayshortskip{0pt}   \setlength\belowdisplayshortskip{0pt} } \makeatother  \title{\textbf{Globally cumstomize the spacing between the text and equation}}    \date{}  \begin{document}  \maketitle  \section{Air filter} The air filter is simulated by the Control Valve module (AFT in Fig. 2(a)). The pressure drop through the air filter ($ \Delta P_{af} $) is given by the following equation [11,16]. \begin{align} \Delta P = \Delta P_{d} \left( \frac{m}{m_{d}}\right)^{1.84}  \left( \frac{T}{T_{d}}\right)  \left( \frac{P}{P_{d}}\right)^{-1}  \end{align} where, $ \Delta P_{af} $ is the pressure drop, $ m $ is the mass flow rate, $ T $ is the temperature, and $ P $ is the pressure, and subscript $ d $ denotes the design condition.  \newpage \section{Air compressor (AC)} The AC operating characteristics can be described by its performance map, which relates the following dimensionless operational variables. The AC operating characteristics can be described by its performance map, which relates the following dimensionless operational variables. \begin{align} & \text{Relative pressure ratio:} && PR_{r} = \frac{PR-1}{PR_{d}-1}\\ & \text{Relative isentropic efficiency:} && \eta_{r} = \frac{\eta}{\eta_{d}} \\ & \text{Relative corrected mass flow:} && m_{cor,r} = \frac{\left(\frac{m_{in}}{P_{in}}\sqrt{T_{in}}\right)}{\left(\frac{m_{in,d}}{P_{in,d}}\sqrt{T_{in,d}}\right)} \\ & \text{Relative corrected speed:} && N_{cor,r} = \frac{\left(\frac{N}{\sqrt{T_{in}}}\right)}{\left(\frac{N_{d}}{\sqrt{T_{in,d}}}\right)} \end{align} where, $ \eta $ is the efficiency, $ N $ is the shaft speed, and $ PR = P_{in}/P_{out} $. Subscript $ cor $ denotes the corrected value, $ r $ denotes the relative value, $ in $ denotes the inlet, and $ out $ denotes the outlet.  \end{document}


How to calculate $1900^{13} \pmod{2537}$   I should be able to do this problem but I don't figure a fast way of calculating it.  Edit: I find reduced the problem to solve:  $X≡12^{13}$mod$59$ and $X≡2^{39}$mod$43$  and I don't know how to solve  $X≡12^{13}$mod$59$


I did a weird activity and now I am trying to figure out the physics behind it:  While sitting on a chair I kept my feet above the ground and tried to move the chair forward. I was able to. Initially, I thought that perhaps the center of mass won't be changing as I was pushed backwards. But I moved the chair for a while and saw that it had moved a considerable distance and I was still sitting on the chair. Hence the center of mass did change for sure. According to Newton's second law, there must be an external force acting on the system(me and the chair). But I am not able to figure out what force is it. I have a feeling that it is somewhere related to the fact that the system is not completely isolated but I am not sure how.     Note: I am not in contact with the ground or any other object close to me. I have lifted my feet and have my hands on my lap.


open previous exe application form in c# on new exe : WPF

i am looking for a method that i can't find anywhere, maybe i'm unable to search, i wish my single instance executable can be reopened by reopening its executable, let me explain better. I open the executable, the form hides, I re-open the exe and the form of the first executable returns to me without opening another instance, I hope I made myself understood i have this code in mainwindow.iniz... Process[] Processes = Process.GetProcesses();         int Count = 0;          foreach (Process Proc in Processes)         {             if (Process.GetCurrentProcess().ProcessName == Proc.ProcessName)             {                 Count++;             }         }         if (Count > 1)         {             Process.GetCurrentProcess().Kill();         }


If your birthday isn’t in summer, when do you buy supplies, especially if you are muggle? Would your escort come back in summer?

I know that muggle-borns get escorts and such, and that their letters are delivered in person, but what happens if they have school on their birthday? Does the escort return on the weekend, or do they wait for summer or what?


Assign random team out of 16 teams to a random person out of 8 people

I am trying to assign two teams out of 16 teams to 8 people out of 8 people,  Here is what I have:  import random     person = ['Ashton', 'Danny', 'Martin', 'Yves', 'Nick', 'Cormac', 'Thierry', 'Ciaran']     team = ['France', 'Switzerland', 'England', 'Slovakia', 'Germany', 'Ukraine', 'Spain', 'Czech Republic', 'Croatia', 'Italy', 'Republic of Ireland', 'Sweden', 'Russia', 'Wales', 'Belgium']     namesTeams = {}     for x in person:         teamName = team[random.randint(0, len(team) -1)]         namesTeams[x] = teamName         team.remove(teamName)     print(namesTeams)


I've written a simple C++ macro for use with the CERN ROOT data analysis framework. It takes in a data file (essentially a spreadsheet) with day, hour, minute, second, and sub-second columns. My goal here is to convert that data into a file of timestamps, in seconds. Everything works fine up to adding the sub seconds. For some reason, it seems to be rounding the result. For example, one timestamp is: 804267 + 0.5606663227081298828125 = 804267.5625 Another is: 155034 + 0.0958281949540391919293 = 155034 ROOT::RDataFrame d("N", "mydata1.root"); TFile *rfout = new TFile("./mydata2.root", "recreate"); TNtuple *N = new TNtuple("N","N","TIMESTAMP");  vector<float> timestamp; int i;  d.Foreach([&](float day){timestamp.push_back(day*86400.00);},{"day"}); d.Foreach([&](float hr){timestamp.at(i) = timestamp.at(i)+(hr*3600);i++;},{"hr"}); i=0; d.Foreach([&](float min){timestamp.at(i) = timestamp.at(i)+(min*60);i++;},{"min"}); i=0; d.Foreach([&](float sec){timestamp.at(i) = timestamp.at(i)+sec;i++;},{"sec"});  i=0; float j; d.Foreach([&](float sub){     while(sub > 1){         sub = sub/10;     }     j = sub + timestamp.at(i);     N->Fill(j);     std::cout << std::setprecision(100) << j << " " << sub <<std::endl;     i++; },{"subsecond"});  rfout->Write(); rfout->Close(); abort();  }`


I had 87/100 progress on  several days ago. After that I had at least 3 days with new question with positive score. But the progress is still 87/100.  Is it broken?  UPD: on the "Recently Deleted Questions" page I have only 1 question, which was deleted  10 days ago.


I get normal long division but this doesn't make sense. How can doing it by only dividing by the leading term work? The problem is $$\dfrac{3x^3 - 2x^2 + 4x - 3 } {x^2 + 3x + 3},$$ not $$\dfrac{3x^3 - 2x^2 + 4x - 3} {x^2}.$$


I'm upgrading linux from 18.04.4 to 20.  I have backed up all of my data. How do I backup my Thunderbird (68.10)  data????  I saw an article stating that copying the file Home/rich-500-164/.thunderbird would do the trick.  And to restore it just to copy it back once the upgrade was completed. In using this method, would this include all of my emails (as with anyone, very valuable), folder structure, filters, etc.? Also, found "ImportExportTools NG".  Does anyone know anything about this and does it work????


How to abbreviate "\begin{frame}", "\end{frame}", and "\frametitle"?

Aware abbreviating those commands need not always be helpful, I would like to know how to abbreviate them? The following is what I tried, which does not work:  \documentclass[11pt,handout]{beamer} \newcommand{\bframe}{\begin{frame}} \newcommand{\eframe}{\end{frame}} \newcommand{\ftitle}{\frametitle}   \author{Author} \title{Title}   \begin{document} \maketitle  \begin{frame} \frametitle{Outline}  \end{frame}   \bframe \ftitle{Introduction}  \eframe    \end{document}   At first I thought it might be the case that commands such as \bframe was already defined. But using \def instead still gives no desired result.