Just looking for some advice really. I have a small form on my website which i'm building:   Name Email Number CV (attachment)   I have done forms before, however with the added attachment i'm not sure how to go about it.   Im used to using jQuery's serialize function. Is there something similar i can use to post within my Ajax call? I cant seem to find much info on the web..


How do I use a small font size in questions and answers?

Is there any way to use a small font size in questions or answers? That is, for the purpose of minor and possibly irrelevant information?  I've checked the Markdown syntax but couldn't find anything. However I feel I've seen it on the site somewhere...


I can't get rid of linux (can't boot usb)

On my laptop Ubuntu 18 is installed. But I want windows 10 back. So I created win10 bootable usb stick on another computer using rufus. But I couldn't boot it when computer starts. I select usb on boot selection, but still purple screen appears. And then ubuntu starts like normally. I dont know what to do now. Please help me, how can i get to windows 10 installing screen? Thanks.


Significance of $c$ squared in Einstein energy mass formula

It is general experience that quantities related with phenomenon come in its mathematical formulation.  Then how is $c$ squared involved in mathematical relationship between mass and energy as given by Einstein  $E = m c^2$?


How can I always boot a particular kernel version?

After rebooting my Ubuntu 16.04 machine, I noticed that the kernel version had changed. From what I understand, I think that out of the available kernels inside /boot, any of the modules can be loaded on reboot.   I want a particular kernel version to be loaded on every reboot, not the latest one.  Here is the list of files present in /boot.  -rw------- 1 root root 6.9M Feb 13  2018 vmlinuz-4.4.0-116-generic -rw------- 1 root root 3.8M Feb 13  2018 System.map-4.4.0-116-generic -rw-r--r-- 1 root root 2.7K Feb 13  2018 retpoline-4.4.0-116-generic -rw-r--r-- 1 root root 187K Feb 13  2018 config-4.4.0-116-generic -rw-r--r-- 1 root root 1.2M Feb 13  2018 abi-4.4.0-116-generic -rw-r--r-- 1 root root  11M Mar 20  2018 initrd.img-4.4.0-116-generic -rw------- 1 root root 6.9M Aug 15 17:48 vmlinuz-4.4.0-134-generic -rw------- 1 root root 3.8M Aug 15 17:48 System.map-4.4.0-134-generic -rw-r--r-- 1 root root  255 Aug 15 17:48 retpoline-4.4.0-134-generic -rw-r--r-- 1 root root 187K Aug 15 17:48 config-4.4.0-134-generic -rw-r--r-- 1 root root 1.2M Aug 15 17:48 abi-4.4.0-134-generic drwxr-xr-x 5 root root 4.0K Aug 31 07:39 grub -rw-r--r-- 1 root root  16M Aug 31 07:42 initrd.img-4.4.0-134-generic   How can I achieve this?


Problems with special characters and MySQL

I have problems adding values to a text column as soon as "special characters" are used, like inside Ligat ha'Al. I am using php to send variables into my database. Are there any ways to "clean" this variable or convert the characters to avoid errors when submitting the data? The column in my database is utf8_unicode_ci.  I have added $conn = new PDO("mysql:host=$servername;dbname=$dbname;charset=utf8", $username, $password);, but the error still exists.  Please help! Thanks for that!


I have been cleaning up tags on SU today and accidentally created a new tag by hitting return when the tag suggestion drop-down highlighted the tag I wanted. I probably should have pressed tab instead....  Anyway, I would like a confirmation when a new tag is created, both as a way to avoid stupid mistakes and as a place to add a few pointers on tag creation.  For example:     Tag FOO does not exist, are you sure you want to create it.      Please make sure that         there isn't an existing tag or sets of tags that can be used instead.   there isn't an alternative spelling already in use   it's not a meta-tag   isn't comprised of numbers only   it's spelled correctly         before you proceed


How compatible are different flash brands for remote control over the flash?

I currently have a Yongnuo YN560-TX trigger and a Yongnuo YN-560 Mark III. I would like to get a iTTL flash that also works with remote triggering.  How compatible are are different flash brands (Neewer, Yongnuo, etc.) when it comes to things like setting zoom, etc. ?


Understanding minecraft custom generation settings

When you create a new world, you can choose the option of Custom terrain (i think that's the name). This options allows to the player generate a custom map with custom values.  There are a tons of settings, and there are some settings I don't understand.  These settings are the settings that controls the terrain perlin noise.  Last day, I was trying to do a custom terrain, but I don't know how to mmodify these parameters.   How do they work amd affect to the map? What does every single (or a group of these) does?   Note: I've searched at the minecraft wiki, but the definitions aren't explained clearly for me.


Are intermediate rings of finitely generated ring extensions also finitely generated?

It's well known that if $K$ is a finitely generated extension of some field $E$, then any intermediate field $F$, $E\subseteq F\subseteq K$, is also finitely generated over $E$.  I'm curious, does the same hold for rings?      Say $S$ is a ring, and $R\supset S$ is a finitely generated extension of $S$. If $T$ is any intermediate ring, is it necessarily true that $T$ is finitely generated over $S$ as a ring?   Is it as simple as saying that for any $t\in T$, $T$ can be generated by the generators of $R$ over $S$? I feel unsure about this statement, since it's not clear to me that the generators of $R$ over $S$ need be in $T$.  If not, what is an example what shows otherwise? Thanks.


Let $u$ solve the initial-value problem or the wave equation in one dimension: $$\begin{cases}u_{tt}-u_{xx}=0 & \text{in } \mathbb{R} \times (0,\infty) \\ u = g, u_t = h & \text{on } \mathbb{R} \times \{t=0\}. \end{cases}$$ Suppose $g,h$ have compact support. The kinetic energy is $k(t) := \frac 12 \int_{-\infty}^\infty u_t^2(x,t) \, dx$ and the potential energy is $p(t) := \frac 12 \int_{-\infty}^\infty u_x^2(x,t) \, dx$. Prove (a) $k(t)+p(t)$ is constant in $t$, (b) $k(t)=p(t)$ for all large enough times $t$.  This is Chapter 2, Exercise 24 of PDE Evans, 2nd edition. I am only doing part (a) right now; my work is shown below: Define $$e(t):=k(t)+p(t)=\int_{-\infty}^\infty u_t^2+u_x^2 \, dx.$$ Then $$e'(t)=\frac 12 \int_{-\infty}^\infty 2u_tu_{tt}+2u_{x}u_{xt} \, dx= \int_{-\infty}^\infty u_tu_{tt}+u_{x}u_{xt} \, dx.$$ Now, I want to get $e'(t)=0$ so that $e(t)$ is constant. How can I go about doing this? I do know that I can use $u_{tt}-u_{xx}=0$, if $t > 0$. With $t>0$ into mind, do I have to consider the $t=0$ case separately? Or can I treat both cases together as $t \ge 0$, since $g$ and $h$ have compact support?


Problem with chain skipping without trying to shift (even with new chain and gears)

I have a mountain bike where the chain intermittently skips when put under load on the middle (and very rarely on the smallest) chain ring. It is not related to shifting.  I've taken several steps to correct it including:   calibrated front and back gear shifters replaced the chain replaced the rear gears replaced the middle gear at the pedals (which was the most affected)   To my great frustration the problem is still there! Could this be because of the derailer? The chain seems tight enough. Help from any gurus out there would be greatly appreciated.  Update: I've tried fiddling with the back screw on the back-derrailer (not the L/H-screws) in the hope that it was a chain tension issue but it did not help. I've also checked the chain for stiff links but could not find any. I am not able to reproduce it when not riding the bike so I am not certain where and how the chain skips. I am at my wits end and planning to bring it to a different repair shop with a sensai mechanic so hopefully he will be able to sort it out.  Update 2: Solved. See below.


Different PATH formats for .bash_profile

There are few different formats I have seen so far:   With quotes and brackets:  PATH="/usr/local/bin:${PATH}"  With quotes only:  PATH="/usr/local/bin:$PATH"  None:  PATH=/usr/local/bin:$PATH    Export all the same:  export PATH   Which is the correct/preferred way?


I've got a fresh install of Windows, but I just noticed that my ethernet card will not work. Checking the device manager, it appears as "Ethernet Controller" and is missing a driver. Is there any way to detect what device it is and what driver I need?


Convert char* strings to int without using atoi

I am kind of beginner in C++ and I want a simple way to convert a char string (char * str1) to an integer. I am able to do that with atoi, but I have read that this function is "devil" and should not be used.  I don't want to use C++ std:string for many reasons, so my string must be in char* format. Do you have any suggestions?  Thanks in advance


FireZilla Ftp server Cant Connect externally

I have an FTP server issue and I think that the main problem is my router. The facts: A) Main desktop Windows 10 with IIS server which has a website and a Microsoft SQL server Static Ip 192.168.1.100 with port (a specific port 7510 ) forward in router and in norton. In the same desktop I want to run a FTP SERVER. I tried with IIS but failed. Now I am trying with FileZilla. So I installed the server and I was able to access locally with ftp://192.168.1.100:7510 from all my pcs and my phone in the same network. I failed with my public IP or hostname (from https://my.noip.com/) outside from my network. I read several blocks and I saw that the DMZ option in my router could help. When I activated the DMZ (DMZ on 192.168.1.100) I succeed to log on externally. BUT with DMZ open I can't log on from any other PC in my network to 192.168.1.100 which has the site and the SQL server. In that case I can't work in my home with my servers but can log on externally. So is there any way to avoid DMZ activation and have externally access. In FileZilla when DMZ is closed i get the usual stuck in connection progress (external IP)> USER user_name (000031)2/2/2021 12:37:37 μμ - (not logged in) (external IP)> 331 Password required for user_name (000031)2/2/2021 12:37:37 μμ - (not logged in) (external IP)> PASS *********** (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> 230 Logged on (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> SYST (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> 215 UNIX emulated by FileZilla (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> PWD (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> 257 "/" is current directory. (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> TYPE I (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> 200 Type set to I (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> SIZE / (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> 550 File not found (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> CWD / (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> 250 CWD successful. "/" is current directory. (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> PASV (000031)2/2/2021 12:37:37 μμ - user_name(external IP)> 227 Entering Passive Mode (192,168,1,100,212,129) (000031)2/2/2021 12:37:58 μμ - user_name(external IP)> QUIT (000031)2/2/2021 12:37:58 μμ - user_name(external IP)> 221 Goodbye (000031)2/2/2021 12:37:58 μμ - user_name(7external IP)> disconnected.


Prove that : $a_n>0$, Then, $\sum_{n=1}^\infty a_n$ converges iff $\sum_{n=1}^\infty \sin(a_n)$ converges.

I am given the problem: Let $a_n>0$, prove $\sum_{n=1}^\infty a_n$ converges if and only if $\sum_{n=1}^\infty \sin(a_n)$ converges.  We have this problem in a homework, and I don't believe it can be true. The statement being biconditional implies that when $\sum_{n=1}^{\infty} \sin(a_n)$ converges, so too does $\sum_{n=1}^\infty a_n$, but if we take $a_n=\pi n$ or even $a_n=\pi$, then $\sum_{n=1}^\infty \sin(a_n)$ converges while $\sum_{n=1}^\infty a_n$ diverges. Is my thinking incorrect?


show that language $L'$ is regular (given $L$ regular)

Let $L$ be a regular language. Show that $L'=\{x \mid\exists_{y,z} xyz\in L \text{ and }|x|=|y|=|z|\}$ is also regular.  Firstly I show my idea. When you accept it I will try to formalize it. Every automat can have exactly one accept state. So let automat for language $L$ has exactly one accept state.    And now we start in two place - in $q_0$  and $a_{accept}$.  From $a_{accept}$ we guess symbol. For one symbol we do two steps. From $q_0$ we go according to symbol - one step. State accepting is when two "starts" meet in one state.  What about idea ?


So I'm trying my hand at creating some packages (on , because my Surface can't run TeX1), and have run into a rather fascinating problem. My packages just won't load; they complain about \ifnum instead. Here's a minimal test case:  test.sty  \NeedsTeXFormat{LaTeX2e}[1994-06-01] \ProvidesPackage{test}[2014-08-04 Hello, World!] \endinput   main.tex  \documentclass{article} \title{LaTeX Testing} \usepackage{test}  \begin{document} Hello, World! \end{document}   Compile error  Missing = inserted for \ifnum. <to be read again>                     - l.4    And I'm thinking, when did \ifnum come into this?! (The error occurs on the 'token' after \usepackage, whether that's a newline or a \show or whatever else.) There's plenty on the internet about \ifnum errors, but nothing on just after \usepackage. I have no idea where to even start debugging this, and my options are rather limited due to being stuck with an online service... Some help?    1 Surface RT is a pain sometimes. I do have a proper machine, with LaTeX on it; however, it's not quite as portable, and therefore isn't on hand at the moment.


Confused with two keywords: __name__ and __main__

I have gone through various post and explanations for the above keywords [__name__ and __main__].  Please confirm if my understanding is Correct  1.__name__ saves the name of the file automatically when a file is edited & saved.  2.__main__ is updated through command prompt.  What is the value stored in __main__ when its not initialized ?  Can I program the __main__ to access the conditional code in the file?  For example, I have two files a.py and b.py  a.py  import b # Can I program here '__main__' to access the functionality in b? # So that I can print the condition is true if __name__ == '__main__':   b.py  if __name__ == '__main__':     print 'This program is being run by itself'     else:     print 'I am being imported from another module'   Please comment your views on understanding and Possibility of access/modifying __main__


I've started to ask myself for the past months if I am a good programmer, I graduated Computer science 3 months ago but I've been working as a programmer since first year in University. Since 1 year I am working on a very big company. The problem that bothers me it's that I need to handle my design on my apps alone. It's not bothering me doing design on my own apps, I would enjoy this very much if I wouldn't get frustrated because I don't know how to combine 2 or more colours or to design a window. What should I do to improve myself on designing skills ? I am doing excellent on coding part.


I am making a house in Blender Cycles. In rendered mode, all shaders are somehow visible, even though I don't use any lamps. I do have an environment texture, however it shouldn't light up the inside of the house. Especially when there are no windows. Even if I set the background strength to 0, it still lights up the inside and outside of the house.  So now, if I add any lamps, I has nearly no impact on shadows, shaders, reflections etc. What could be wrong with my scene?  Let me know if you have any questions on my settings that might help you find the problem.  File:   These are the world settings:   For the Ambient occlusion I always use this node:   It usually works fine.


Glowing metal: different visual spectrum?

recently I was working with a thermographic camera and it physical backgrounds.  As far as I understood the thermal radiation is not visible for a human eye (e.g. you can't tell if a coffee is warm or cold from looking at it [ignoring steam that is may present])  But if something gets really high temperature it starts glowing (e.g. some kind of metal).   Why can a human see this glowing? So why is a decent heat not visible while a lot heat is visible?


Why do the Starter Set characters have unexpected attack bonuses?

I am somewhat new to D&D 5e and had a question about attack bonuses of the pre-gen characters in the Starter Set. I was under the impression that attack bonus for a sword is strength bonus plus proficiency bonus (if the character is proficient with that weapon) and for something like a crossbow it would be dexterity bonus plus proficiency bonus.  What I am struggling with are the attack bonuses listed for the pre-gen characters. They don't seem to make sense all of the time.  For instance, the wizard has a +4 attack bonus for the shortsword even though their strength bonus is +0. Should it not be only +2 for proficiency (they are proficient in short sword)?  Or take one of the fighter's longbow bonus. They have +3 dexterity and +2 proficiency bonus, yet their attack bonus is listed as +7.  I feel like there is a simple explanation. What is it?


Anyone here how do I display today's date in jquery datepicker? Tried these but it doesn't display today's date in datepicker. $('#from').datepicker({      defaultDate: new Date(),      dateFormat: 'yy-mm-dd',      onSelect: function () {         table.draw();      },      changeMonth: true,      changeYear: true  });  $('#to').datepicker({      defaultDate: new Date(),      dateFormat: 'yy-mm-dd',      onSelect: function () {         table.draw();      },      changeMonth: true,      changeYear: true  });


Orphan in a dystopia, food is served in edible containers

After much thinking, I think this may be cyberpunk. (I may be wrong) In the beginning of the novel, the protagonist, an orphan, I think. He is in an institution, sleeps in tiny cell. Food is served on cardboard-like trays? that are also edible. At some point, he eats something with mold on it, on purpose, against infection or something. He is rescued? pretty soon, and then there is rooftop running, I think. Will edit if I manage to think of more details.


How can I refer to a man using his first name while showing some respect? Can I say  "Good morning, Sir William or Mr William" like Monsieur in French?


What does the at sign `@` and `+` sign mean when doing `ls -l`

This is on macOS Mojave.  I tried to get the size of directories by using  du -csh */   in my home directory.  But the directory Library was giving Operation not permitted.  So I used sudo to do it, and it was the same thing.  Then I did   ls -l Library   and saw  drwx------+  35 peter  staff   1120 Mar 11 10:12 Logs/ drwx------@   3 peter  staff     96 Mar 18  2014 Mail/   What does the @ and + mean?  The Logs actually allowed access but not Mail.


Split a large file into smaller files and then integrate them to get the original file

How do I split a 7GB (movie) file into smaller files of (say) 1GB, and then (in another Ubuntu computer) integrate them to get the original file (using just bash commands)?


Getting java.net.SocketException: Connection reset

I am trying to execute a simple Client/Server program.But whenever i am trying to execute , i am getting "java.net.SocketException: Connection reset" . why this exception occurs ? Any suggestion for me ?  Here is the code  SocServer.java  public static void main(String[] args) throws Exception {     System.out.println("Server is started");      ServerSocket ss = new ServerSocket(8886);      System.out.println("Server is waiting for client request");      Socket s = ss.accept();      System.out.println("Client Connected");      BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));      String str = br.readLine();      System.out.println("Client Data" + str);   }  SocketClient.java  public static void main(String[] args) throws Exception  {     String ip = "localhost";     int port = 8886;     Socket s = new Socket(ip,port);      String str = "Noman";      OutputStreamWriter os = new OutputStreamWriter(s.getOutputStream());     PrintWriter out = new PrintWriter(os);      os.write(str);     os.flush(); }


I am looking for a proof of one of the exponent combination laws, namely the sum of powers. Here $x, a, b \in \mathbb R$ and $x > 0$. I thought about induction but since a,b are not only positive integers ($a, b \in \mathbb R$) that would not work out. Any suggestions?


How erase the rest line from WGS84 projection?

I am working in world map (the Natural Earth data) which I would like to readjust for a political map of the world.   So, I have already changed the central meridian in Mercator projection, but I discover a new problem. It is a line which is the rest from orginal WGS84 projection that divide continental Russia and its island into two parts. The functions dissolve and split dont work. The line is still in the map :-(


How does the warlock's Devil's Sight eldritch invocation work?

The Warlock Invocation  Devil's Sight (PHB p108) is described like this:     You can see normally in darkness, both magical and nonmagical, to a distance of 120 feet.   How should this be interpreted, given the undefined use of the word "normally" and the description of a real devil's Devil's Sight ability?  Barbed Devil (MM p.70):     Magical darkness doesn't impede the devil's darkvision


Show that there is no epimorphism from ($\mathbb{Q}$, +) to ($\mathbb{Z}$, +)

I can't figure out why such an epimorphism cannot exist.  I think the fact that a bijection exists between the $\mathbb{Q}$ and $\mathbb{Z}$ throws me off a little. What is it about having a homomorphic surjection that causes problems?


ArcGIS 10.1 Custom Toolbar issue with addin wizard

I am having some issues. In ArcGIS, I created a custom toolbar (with the python addin wizard) to do the following: 1. Button to connect to feature class, 2-5. A series of comboboxes to view, edit data in a field in the feature class. I want each of the combo box classes to directly connect to the field. And be able to write new data from the boxes into the fields.  Example: Combobox 1 to connect to field 1. So that when I deploy this a user can edit data without doing this the traditional way. Its a way to have inexperienced users edit data. I am new to python and willing to pay for the time required to help me as I am out of ideas. And ESRI doesn't have a solution either.   import arcpy import pythonaddins from arcpy import env   class ButtonClass1(object):     """Implementation for QuickTableEdit_addin.button (Button)"""     def __init__(self):         self.enabled = True         self.checked = False     def onClick(self):         print("Button1 Clicked")         env.workspace = "C:/data"         arcpy.CreateTable_management("C:/data", "test_table.dbf","template.dbf")         mxd = arcpy.mapping.MapDocument("CURRENT")         df = arcpy.mapping.ListDataFrames(mxd)[0]         dbf_Table = arcpy.mapping.TableView(r"C:\data\test_table.dbf")         arcpy.mapping.AddTableView(df, dbf_Table)         arcpy.RefreshTOC()         pass  class ComboBoxClass2(object):     """Implementation for QuickTableEdit_addin.combobox_1 (ComboBox)"""     def __init__(self):         self.items = [1,2]         self.editable = True         self.enabled = True         self.dropdownWidth = 'WWWWWW'         self.width = 'WWWWWW'     def onSelChange(self, selection):         global cb1         cb1 = self.value         pass     def onEditChange(self, text):         pass     def onFocus(self, focused):         pass     def onEnter(self):         pass     def refresh(self):         pass


Finding a conformal map from this region into the unit disk

Problem: Find a conformal map from $\left\{ z \in \mathbb{C} \mid -1 < \text{Re} (z) < 1 \right\}$ to the unit disk.   Attempt: What I did, was to first shift everything to the right with one unit. So I used the map $F_1(z) = z + 1$. Then I rotated this vertical strip into a horizontal strip by 90 degrees, using the map $F_2(z) = i z$.   Now I have the infinite horizontal strip which goes from $0i$ to $2i$ in vertical direction. I wanted to map this into the unit disk.   I would use $F_3(z) = \frac{z - i}{z + i}$. But I'm not sure if this will give me a bijection, because I know already that this function maps the whole upper plane into the unit disk. And now I only have a part of the upper half plane.   Is there any way I can 'extend' my infinite horizontal strip to the whole upper half plane?


I can't check Python version on Ubuntu 20.04

I was trying to check the Python version on my device. In the terminal I used the command python --version. But it outputs a message saying Command 'python' not found, did you mean:   command 'python3' from deb  command 'python' from deb python-is-python3  I tried reinstalling Python 3. But it still shows the same thing. What should I do now?


For a graph $G$, let $W$ be the (random) vertex occupied at the ﬁrst time the random walk has visited every vertex. That is, $W$ is the last new vertex to be visited by the random walk. Prove the following remarkable fact:      For the   random walk on an $n$-cycle, $W$ is uniformly distributed over all vertices different   from the starting vertex.


I want to make "Ubuntu 11.10" act as a router.  I have two LAN interfaces.   Let's say interface A' IP is 172.16.1.10 ;  interface B's IP is 192.168.1.10.   How can I configure Ubuntu so that 172.16.1.1 can connect to 192.168.1.1?


How do I answer this probability question?

A fair die is rolled until the first time 6 appears. What is the probability that an even number of rolls is needed? With this knowledge, how many times would you expect to roll the die before all six sides appeared at least once?


Is there a way to dump MySQL table rows live? (similar to 'tail -f')

Is there a way to (from the command line) continuously dump new rows added to a table?  As a comparison, in Bash we have tail -f to 'live-dump' a file as it gains data.  How could this be done for a MySQL table without a continuous loop to check for new rows?


SMESERVER: Mail not receiving, 550 v=spf1 a -all (suddenly appeared 5/21)

My situation is exactly the same - SMEserver 7.51 (yes I know I need to upgrade) been running for years and I get the same spf error message back just starting Wednesday afternoon(5/21). I also tried to clear some space, but that also did not fix the issue. The only other change I know of is that my server is on a static ip on Verizon fios and they had replaced/added some bandwidth to my area that results in an even faster connection for me. All of my server functions work.   My email works as long as it is the smtp sending out, and it can receive from the same "@myemail.org" addresses that use my smtp. But any incoming email from another smtp gets this hard bounce.  Like another question posted, I would appreciate any other pointers.


Chat Transcript claims I pinned a message I cannot have pinned when I star it

Whenever I star a message in chat via the transcript, the chat transcript gets very confused. These are snippets of the Transcript and Live Feed for the same message:        Transcript        Live Feed  Note that I'm not a moderator/owner in the room in question, so there's no way I could have pinned it in the first place. It happens even when the message was never pinned in the past.


How can I add default command line parameters to an executable in a way that will also work on GUI apps?

I want to pass a command line program by default when I run it.  myprog --foo=bar   The solution I could think of was to add a custom "myprog" wrapper to my "bin" folder  #! /bin/sh /usr/bin/myprog --foo=bar $@   The good thing is that since I set up my system so the bin folder is in the PATH both for interactive shells and for GUI apps, calling myprog from anywhere will pass the --foo flag by default, including if I run myprog from the applications menu.  However, I didn't like that I had to use the absolute path to /usr/bin/myprog in my wrapper script (if I don't it enters an infinite loop). Is there a better way to go at this?


I have a friend with the same modpack as me, and I have the feed the beast server.  How does my freind join?  Do I need to port forward differently than in vanilla?


I can't see my home address on Google Maps as it is a new neighbourhood.   How can I get my home address added into Google Maps?


What direction is a sequence in databases written?

In many databases, the DNA sequences for proteins are given as a string of a,t,g,c without specifying whether the starting is from 5' or from 3'.  Also it is not specified if it is the coding or non coding strand.   Is it because all the sequences are written from 5' to 3' of coding strand only?


General idea (with strings): When a wave in a string in transmitted through 2 different media, a part of it is inverted and a part transmitted.    'Rules:' If a wave enters a region where the wave velocity is smaller, the reflected wave is inverted. If it enters a region where the wave velocity is larger, the reflected wave is not inverted. The transmitted wave is never inverted.  Question: What are the reasons for the ‘rules’? Why must it be that the reflected wave is inverted with respect to the original if the incident wave is from a lighter medium i.e.a region where the wave velocity is smaller or vice versa? And why is the transmitted wave never inverted?  My attempts to understand it would be on the basis of light. The wave inversion analogy is also used to explain the behaviour of the phase change of light through 2 different medium. This would imply the refracted wave is never inverted/undergoes a phase change whereas the reflected wave may undergo a phase change depending on the incident wave (it is generally understood as a phenomenon hence w/o a reason). I figure it could be in line with the reason for how light refracts from Huygens principle to electromagnetic wave propagation in the electrons of said medium etc.  However, it doesn’t help me understand the same for mechanical waves.


Determine the value of $\displaystyle \sum_{k=n}^{2n} \binom{k} {n} 2^{-k}$ for $n \geq 1$  My attempt: I have asked this question before in another math forum but it leads no solution. My friend suggested me to search for something like series-k. I also looked at my textbook in combinatoric section (which apparently leads to Binomial Theorem), but really I don't have any idea for this one.  Could you help me?


I am preparing a simple presentation and would like to select some of the references in my bibtex file. I tried to do it as I do in a .tex file but it gave me '?'.  I am using the package bib at the beginning as   \usepackage{natbib}   I am doing the citations at the body of my slides such as \citep{xxx}   Then at the end, I add the commands  \begin{frame}{References} \bibliography{mybib} \bibliographystyle{agsm} \end{frame}   Do you have any idea why it does not work?


For a  when you pay and place a +1/+1 on it making it monstrous.  Is the counter targeting Fleecemane Lion.  If someone casts an effect or activates an ability to change the target does this mean Fleecemane Lion is not monstrous?


How can I see the total memory used by, for example, google and firefox processes?

top and ps show multiple processes for these applications. Is there a simple command to show only one entry for each application showing the total?   I don't believe this is a duplicate of .   Any suggestion using the pid of the process is not suitable because we have many processes associated with the application. For example:  ps aux | grep -i chrome | awk '{print $2}' 11288 27410 28415 28477 30396 30592 30602 30614 30617 30657 30842 30870 30875 30876   I am looking for something that will sum the usage by these processes while compensating for any memory that is shared between them -- if that is the case.


Trouble finding remainder for this problem expression?

$$\left[\frac{2222^{5555}}{7} + \frac{5555^{2222}}{7}\right]$$  Please guide me through steps. Thanx..


Why does my front derailleur not work when it is cold?

When it is warm outside my front derailleur works just fine. But when it gets colder (40F) the lever on the handle bar does not catch and I can move it without any resistance the whole way without the derailleur shifting.  Update: The wire is not moving and the shifter is a Shimano Deore.  Any idea what can cause that and how to fix it?


Does character length of domain affect seo rankings?

My domain : CreditCardPaymentGateways dot in  even after 6 months is not ranking well. Could it be due to length of it?  Also I've blocked backlinks to some directories( without nofollow) using robots.txt.  I suspect either is playing spoilsport in good rankings of my site, which I've optimized well and has least competition.


Install Ubuntu alongside Win 8.1 on separate physical drives and dual-boot?

I have a PC with an OEM install of Win 8 updated to 8.1.  It has 3 physical hard drives in it.  The drive where Windows is installed has a LOT of partitions on it already.    Can I install Ubuntu on a different physical hard drive than Windows, and be able to dual-boot?  I am able to boot to a live USB of Ubuntu 14.04, so I think I'm about ready to proceed.  But if I can make my installation easier by using a different physical drive, I'd like to do that.


Who will take strike for this particular situation, when striker is out Caught in the boundary?

Today while we were playing, we had a following situation,   Striker hits the ball and gets caught in the boundary Non-Striker crossed the center of the pitch  and the Striker too. Striker is out of his crease but has not crossed the center of the pitch.   We had these arguments about who will take strike:   Two strikers must cross the center of the pitch for the non-striker to take  strike. Both batsmen must cross each other for the non-striker to take strike. Just non-striker need to cross the center for being striker before the catch.   Even after reading , I am not clear on this situation. So, someone please clarify this issue.


Exclude bounties from affecting privileges

Okay, I may as well mention straight off that the main reason I am asking this question is due to the upcoming reputation recalc.  It has always seemed silly to me how bounties affect privileges. After all, if rep is, as oft repeated, primarily a way of how much the system trusts you, bounties really shouldn't affect that. In terms of effects, this would lessen the pain from the rep recalc. One downside - this increase the number of bounties given out as users wouldn't be saving up their rep to gain privileges, so maybe it would be sensible to enforce a minimum reputation (500?) before you can post bounties.  PS. If people are worried about others gaming the system, the better way would probably be to make the extra reputation gained from bounties not count towards privileges, rather than removing privileges for posting bounties.


Resize font on boot message screen and console

I have a high resolution screen on my laptop (3200x1800px) and I disabled the boot-image (  )  I also managed to enlarge the font in grub by uncommenting the line   GRUB_GFXMODE=640x480   in /etc/default/grub  But the boot messages during startup are still really tiny and hardly readeable. The same as if I change to a console screen by pressing Ctrl+Alt+F1.  How can I enlarge the font on the console too?


Split/explode comma delimited string with Sybase SQL Anywhere

UPDATE:        Someone marked this question as duplicate of        .       But it's different, my question is about Sybase SQL Anywhere, the other is about MS SQL Server. These are two different SQL engines, even if they have the same origin, they have different syntax. So it's not duplicate. I wrote in the first place in description and tags that it's all about Sybase SQL Anywhere.   I have field id_list='1234,23,56,576,1231,567,122,87876,57553,1216'  and I want to use it to search IN this field:  SELECT *  FROM table1 WHERE id IN (id_list)    id is integer id_list is varchar/text   But in this way this doesn't work, so I need in some way to split id_list into select query.  What solution should I use here? I'm using the T-SQL Sybase ASA 9 database (SQL Anywhere).  Way I see this, is to create own function with while loop through, and each element extract based on split by delimiter position search, then insert elements into temp table which function will return as result.


Knowledgeable and likeable and other other such words place an e before the a in able. However other words like writable and receivable don't.  Why is that? Is there a rule behind this?  Also the word writable just seems plain wrong because I keep reading it as rit-able not right-able; the e would definitely help in this situation. On the other hand, I am able read receivable as intended...


update custom taxonomy with Ajax in edit.php file

I created Custom Psot Type and Custom Taxonomy. I recover, for each CPT element its custom taxonomy. here is a screenshot:    now , i want update the coustom taxonomy for the CPT element with ajax without opening the post.php . is there a solution? help please  thank you


Any counterexample for inverse limit functor not to be right exact

We know that inverse limit is a "left" exact functor on the category of modules in the sense that whenever $r:(A_i,α_j^i )→(B_i,β_j^i )$ and $s:(B_i,β_j^i )→(C_i,γ_j^i )$ are transformations of inverse systems over an index set $I$ between modules, and $0→A_i→B_i →C_i→0$ is exact for each $i∈I$, where the first function is $r_i$ and the second is $s_i$, then there is an induced (left) exact sequence $0→\varprojlim A_i→\varprojlim B_i→\varprojlim C_i$ . I search for a counterexample to the latter to be not "right" exact. Thanks very much in advance!


When resolving ns1.jiasule.net., here is the response from e.gtld-servers.net. (192.12.94.30) - dig @192.12.94.30 ns1.jiasule.net to reproduce: ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;ns1.jiasule.net.       IN  A  ;; AUTHORITY SECTION: jiasule.net.        172800  IN  NS  ns1.jiasule.net. jiasule.net.        172800  IN  NS  ns2.jiasule.net.  ;; ADDITIONAL SECTION: ns1.jiasule.net.    172800  IN  A   113.207.76.78 ns1.jiasule.net.    172800  IN  A   117.21.219.80 ns2.jiasule.net.    172800  IN  A   113.207.76.78  I'm asking A record for ns1.jiasule.net., and it tells me the name server for ns1.jiasule.net. is ns1.jiasule.net. with the A record on the ADDITIONAL SECTION. I do not understand why it does not return directly the A record in the ANSWER? I understand the role of the TLD servers is to provide the authority for the domain requested, but in this case, it would mean "Go and ask to the IP of ns1.jiasule.net. to ns1.jiasule.net.?


Hint for finding the $\sum_{n\geq1} \frac{n^p}{n!},p \in \mathbb{N}$

Hint for finding the $\sum_{n\geq1} \frac{n^p}{n!},p\in \mathbb{N} $ I would appreciate a hint or several hints if I can solve this problem in different ways.


From Windows Vista to 7, can I get rid of folder Windows.old?

I've just changed my laptop OS from Windows Vista to Windows 7.  I didn't choose to have both OS together, I just want to have Windows 7.   I was specting Windows 7 instalation program to format/clean my HD and leave me most of its capacity for a fresh start. But I've found, once the OS has been isntalled, that all files and programs from the Vista era are still in my HD, in a folder called Windows.old   I don't need these programs and files, I want to have as much HD space as possible and Windows 7 as clean as possible, what should I do?  Can I just delete Windows.old folder? Would that affect the how Windows 7 works?  Maybe is because I ended up angry with Vista, but I don't like the fact that there wasn't any cleaning/formatting ..   Thanks a lot


Can anyone help me remove VirtualBox?  I am running 12.04.


I accidently deleted my /etc/ directory. Here is my disk with installation -   Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 5401B3C5-4DA4-4F2D-BB2B-F1845E8E8E4F  Device       Start        End    Sectors   Size Type /dev/sda1     2048    1050623    1048576   512M EFI System /dev/sda2  1050624    2050047     999424   488M Linux filesystem /dev/sda3  2050048 1953523711 1951473664 930.5G Linux filesystem  ubuntu@ubuntu:~$ ls -al /dev/disk/by-uuid/ total 0 drwxr-xr-x 2 root root 160 Jun  9 03:18 . drwxr-xr-x 8 root root 160 Jun  9 03:07 .. lrwxrwxrwx 1 root root  10 Jun  9 03:08 64490475-1baf-4a81-a7be- 87f617f51228 -> ../../sda2                         lrwxrwxrwx 1 root root  10 Jun  9 03:08 D378-4726 -> ../../sda1 lrwxrwxrwx 1 root root  10 Jun  9 03:18 db611ff4-b7e6-41ad-935b-d70ee56a30ac -> ../../sda3  lrwxrwxrwx 1 root root  10 Jun  9 03:18 dc7811ca-4 c11-4547-9971-49ef2409989f -> ../../dm-1 lrwxrwxrwx 1 root root  10 Jun  9 03:08 6895-5744 -> ../../sdb1 lrwxrwxrwx 1 root root  10 Jun  9 03:18 a4774c86-924b-425f-a6ef-3cba2d2cb24a -> ../../dm-2   i dont want to reinstall. I have a live USB. I want to manually write the /etc/fstab file to get my system to boot atleast. What should be the entries?


Voting arrow descriptors indicate agreement/disagreement for meta feature requests?

This , but the suggested feature request wording was not specified. I am suggesting a three word addition to the voting icon descriptor:  Something as simple as appending "feature request agreement/disagreement"     "This question shows research effort; it is useful and clear; feature request agreement" and "This question does not show any research effort; it is unclear or not useful; feature request disagreement"?   It would be great to see the voting arrow descriptors indicate that on meta the votes indicate "agreement/disagreement". :     On posts tagged feature-request, voting indicates agreement or disagreement with the proposed change rather than just the quality or usefulness of the post itself.   ...but it would be useful to have it right at the point of action:


Theorem 1.20 (a) If $x\in\mathbb{R}$, $y\in\mathbb{R}$ and $x > 0$, then there is a positive integer $n$ such that  $nx > y$. In the proof, set $A$ is assumed to have a least upper bound in $\mathbb{R}$ that implies set $A$ is bounded above. But I don't known how set $A$ is bounded above, given the constraint, $x$ is a positive real number and $n$ is a natural number. More clarification: $$A = \{nx\in\mathbb{R}_{>0} \mid (n\in\mathbb{N})\wedge(x\in\mathbb{R}_{>0})\}$$ My question is: how this set $A$ have a upper bound? And the whole theorem and proof didn't really make sense to me. I mean, if this theorem were reversed, i.e. $nx < y$, I wouldn't be able to make difference between these two scenario. Potential duplicate post: is referring to possibility of set A being empty. In this post, I’m asking(implicitly) about contradiction statement of theorem and bdd property of set. Non empty set is just one of the condition must satisfy to talk about bddness of sets.


Why is appending the key to a mesage and then hashing that insecure if the hash isn't weakly collision resistant?

Suppose I have H(M|K) and that H is not weakly collision resistant. If I have a message mac pair (M,MAC), how is it possible to find another message mac pair (M2,MAC2)? My thinking for this problem is that if the hash isn't weakly collision resistant, then I can find another message M2 such that H(M|K)=H(M2|K) and thus, I have a new pair (M2,MAC2). Is this a sufficient explanation for explaining why H(M|K) is insecure if the underlying hash function is weak?


When you have that you basically have: \begin{align*} \sqrt{x^2} & < \sqrt{1} \iff\\ |x| & < \pm 1 \end{align*} Doesn't that give you 2 options? $|x| < 1, |x| <-1$? The latter is false because $|x|$ is always positive right?  So to solve this $-1 < x < 1$. Correct?


Dealing with a single-qoute issue. Possibly related to Apple users?

I have a text area in my form that users generally copy-and-paste text into from their word document, as they prepare it beforehand. I am having issues with a single-quotes, but not all of them. If I am not mistaking, I do believe that its some sort of a different characters possibly from Mac side of things.   When saving to database, characters are escaped so I don't get &rsquo; or something like that, but the quote itself is not "regular" one, it comes up as don’t instead on don't (see the different in quote?) It does not cause issues anywhere else in the code, but I do have fpdf export where that quote shows us as donâ€™t and I don't know how to address this issue.  I would much rather "convert" the characters to regular format before they are saved, then to deal with them retroactively during fpdf export. What am I doing wrong? Thanks!


I am a beginner in Java and I'm currently facing a problem that I'm not sure how to qualify. I'm trying to do a login in my app. Here's part of my code:           PreparedStatement statement = connect.prepareStatement("SELECT `userName`,`password` FROM `member` ");          //creating a variable to execute query         ResultSet result = statement.executeQuery();          //while (result.next()) {          if (result.next()) {              if  (result.getString("userName") != getUserNameTextField()) {                 System.out.print("DB " + result.getString("userName") + " TF " + getUserNameTextField() + "\n");                 System.out.print("Incorrect username");                 //break;             } else if ...... }   There are no compiler errors, the project is built and run successfully in Eclipse. I was initially only testing if both username and password match, then successful login; else unsuccessful login. Since I was receiving the unsuccessful login output, I then tried to determine if it was the username or password that was incorrect. The output pointed out that it was the username, and since I couldn't figure out what I was doing wrong, I decided to print both the username retrieved from my DB and the one I entered in the textfield. The result of the print statement in the console in Eclipse is as follows:  DB Smith TF Smith  Incorrect username  The username retrieved from my DB is Smith and the one entered in the textfield is also Smith, and there are no errors in Eclipse, so now I'm even more confused.   I was using  while (result.next()){...login validation code..} first; after some research, I also tried if (result.next()) { do {..login validation code..} while (result.next()} - but everything I tried results in the same output in Eclipse.   I have a vague impression that I should be using the while (result.next()) itself and that this problem may have to do with the Java memory model (heap and stack), but I'm not sure. Can anyone point me in the right direction? Thanks.


The permutation of the signs of sum and integration

Is it possible to swap sum and integration signs in this integral $$\int\limits_{0}^{+\infty}\sum\limits_{n=1}^{+\infty}a^nx^{1/2}e^{-nx}dx=\sum\limits_{n=1}^{+\infty}a^n\int\limits_{0}^{+\infty}x^{1/2}e^{-nx}dx$$ provided that $a∈(0;1]$? If it is possible, how to prove the uniform convergence of the series?


Is it possible to overwrite ubuntu from windows?

I had Win10 on my SSD and installed Ubuntu afterwards. All I did was  insert an Ubuntu USB and partitioned the disk and installed.   In the meantime, I've read some articles about this and and a few stipulated that I need to partition my disk in Windows first.  Everything is running as expected, but I'm not sure if there is an issue that can occur (e.g. windows does not know that there is Ubuntu and it could use this space)?   Is there a way to fix this?


How to stop iTerm2 closing tabs on error?

iTerm2 always closes the tab/window on error. By contrast, Terminal keeps it open so you can view the error.  How can I prevent iTerm2 from automatically closing the tab/window on error?


Is anybody able to shed some light onto why youngs modulus of metallic materials has little dependance on alloy composition and processing whilst the yield strength can vary greatly?


Looking for German Ancestors earlier than 1700s?

I am a beginner and have been using Ancestry.com but German records seem to come to a halt at the WWI.   What can be used to search further back?


Why is my object look so weird in rendered mode?

I have a table with a simple UV added as a material.  Here is my table in material view:      Below is my table in Rendered:   Any idea what I can do to fix?


Method to return contractID from a ListOfContracts or ListOfContractId's

Can anyone please help me in writing a method to get the contractId from ListofContractIds or ListOfContracts. I want to use this method when a list of contractId's are passed as an arguments in other method and use this to get list of orders.  public static Set<Id> getContractIdsFromSelectedContractList(List<ID> lstOfSelectedContracts) {     Set<Id> sContractIds = new Set<Id>();      for( List<ID> cli: lstOfSelectedContracts)     {         sContractIds.add(cli);     }     return sContractIds; }


Is this sentence grammatically correct?  "The application site comprises an existing care home which has 59 bedrooms and 85 registered bed spaces"  I was under the impression that 'comprise' would indicate plural, eg  "the playground comprises a slide, a climbing frame, and a swing"  and that using it singularly is incorrect, eg  "the playground comprises a slide"


Enforcement of translational requirements for UK short term visitor visa from Italy

I am an Indian living in Italy and I am going to the UK for a leisurely family vacation for about 10 days. Please note, this application is not very straight forward. There are four applicants, one applicant is applying from India another two are applying from Singapore and I am applying from Italy. The checklist at the top has the statement  all documents must be in English translated documents must be certified  I got the proof of accommodation from my commune, but it is in Italian. Getting it translated, isn't such a big deal as the commune itself provides multi-lingual certificates. For the rest of the documents, this is an issue. Such as for "Evidence of being in education", my university provides an online certificate for this purpose which is in Italian. Multiple acquaintances said that they provided their Italian house contract (in Italian) as proof of residency and no requirement came up for translation. Can anyone comment on how strict are they while enforcing the translational requirements of documents in respect to a short term visitor visa?


Is there any difference between creating a Task constructor with a var vs just a function?  function Task(name, priority, timeout){ this.name = name; this.priority = priority; this.timeout = timeout; this.completed = false; } var task1 = new Task("firsttask",10,70s);   Versus  var Task = function(name, priority, timeout){ this.name = name; this.priority = priority; this.timeout = timeout; this.completed = false; } var task1 = new Task("secondtask",20,30s);


I was reading  because of another question on here, and I have read:     Her body had aged five centuries in its return to the present and, irreparably damaged   Which means that wizards can live over five centuries? Is there any more information on this?


Possible Duplicate:          Somehow I ended up with a file named "-r".  How do I remove it?  rm -r doesn't work.  I tried 'rm -i `ls -a`' to step through the file names, but it didn't prompt me to delete this one.  Edit A very hacky approach was to use python's os.unlink function.  That worked, but I'm curious to hear other ways.


Is it true that $\limsup \phi\le\limsup a_n$, where $\phi=\frac{a_1+...+a_n}n$?

Define $\phi={a_1+...+a_n\over n}$ and $(a_n)$ be a sequence of real number. Is it true that $\limsup \phi\le\limsup a_n?$  Intuitively i am wondering why the inequality holds as the sup of a sequence could appear all at the begining and form a decreasing sequence so the average seems larger than the tails of the sequence but this is a question I found in some books, so that's not likely to be false.


Is there an elementary proof that $\sum \limits_{k=1}^n \frac1k$ is never an integer?

If $n>1$ is an integer, then $\sum \limits_{k=1}^n \frac1k$ is not an integer.  If you know , then you know there must be a prime $p$ between $n/2$ and $n$, so $\frac 1p$ appears in the sum, but $\frac{1}{2p}$ does not. Aside from $\frac 1p$, every other term $\frac 1k$ has $k$ divisible only by primes smaller than $p$. We can combine all those terms to get $\sum_{k=1}^n\frac 1k = \frac 1p + \frac ab$, where $b$ is not divisible by $p$. If this were an integer, then (multiplying by $b$) $\frac bp +a$ would also be an integer, which it isn't since $b$ isn't divisible by $p$.  Does anybody know an elementary proof of this which doesn't rely on Bertrand's Postulate? For a while, I was convinced I'd seen one, but now I'm starting to suspect whatever argument I saw was wrong.


JAVA UUID use only numeric characters to generate random UUID

I want to generate a serial number for one of my classes like xxxxxxxxxx and I want its length to be exactly 10 characters. how can I generate random UUID by only using "1234567890". is there something I have to pass to constructor or UUID.randomUUID()? and how can I give it a fixed length?


Within a species there may be subspecies that are named using trinomial nomenclautre. For example the Grizzly Bear, Ursus arctos horribilis is a subspecies of the Brown Bear Ursus arctos.   The dictionary definitions of subspecies seldom expand beyond this:     A taxonomic category that ranks below species, usually a fairly permanent geographically isolated race.   I'm assuming redefining species into subspecies is not a completely arbitrary process as the definitions would imply, but is based on biology. What are the biological criteria for a group within a species to be "upgraded" to a subspecies?


I'm definitely a newbie with blender still, as I've dipped my toe in a bit being a video editor.  My issue is importing .svg saved from illustrator.  Just simple vectors with not too many paths.  Just a thick text company logo.  I want to bring in and extrude, light, etc.  I've done it before in older versions of blender with no problem.  Am I not doing something right? Can someone tell me how to get an eps saved as an svg from illustrator to size correctly?


$x_{n+2} = x_{n+1} + 20x_n + n^2 + 5^n \text{ with } x_0 = 0 \text{ and } x_1 = 0$  How would you solve this recursive relation? I have the homogenous solution, but am having issues with the in-homogenous one.


Visual Flow: How to set Date field to Null / Blank?

I can't figure out how to do this.  There seems to be no global constant for blank/null associated with Date fields.  If I attempt to add {!$GlobalConstant.EmptyString}, or {!$GlobalConstant.Null} to the assignment I get a validation error.  If I leave the assignment field empty, then it doesn't do anything to the date. Below is a picture of my options.    Is this even possible?


VOIP on LAN call accept retunrs an error in C#?

I'm developing C# VOIP LAN application. The application makes a call and shows the client is calling.  The problem is: After accepting the Call the following error message dialog box is shown.   The code which process the Accepted call is:  //Act according to the received message.             switch (msgReceived.cmdCommand)             {                 //We have an incoming call.                 case Command.Invite:                     {                                                     if (bIsCallActive == false)                         {                             //We have no active call.                              //Ask the user to accept the call or not.                             if (MessageBox.Show("Call coming from " + msgReceived.strName + ".\r\n\r\nAccept it?",                                 "VoiceChat", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)                             {                                 SendMessage(Command.OK, receivedFromEP);                                 vocoder = msgReceived.vocoder;                                 otherPartyEP = receivedFromEP;                                 otherPartyIP = (IPEndPoint)receivedFromEP;                                 InitializeCall();                             }                             else                             {                                 //The call is declined. Send a busy response.                                 SendMessage(Command.Busy, receivedFromEP);                             }                         }                         else                         {                             //We already have an existing call. Send a busy response.                             SendMessage(Command.Busy, receivedFromEP);                         }                         break;                     }                  //OK is received in response to an Invite.                 case Command.OK:                     {                                                     //Start a call.                         InitializeCall();                                                         break;                     }


Is it possible to use external hard drives with USB OTG?

On some sources I have read that it is impossible to use external hard drives over USB OTG. Is it really impossible? Isn't there some kind of workaround? Update: Apparently ES file explorer can see the disk but can't open it. I heard there are such issues with NTFS hard drives on Android.


Disable "undo" notification in GNOME Files (Nautilus)

When deleting files there is always a small popup with undo in GNOME Files (Nautilus), which overlays other files and is pretty disturbing. How can I disable the notification within the application?


How can I find the number of integral Pythagorean triples with a given hypotenuse?

How can I find the number of integral pythagorean triples if the hypotenuse is $2^{4035}$? I want to do this without finding them all and counting them.


How to identify an old compression stem in order to find a replacement

I have an old (circa 1920s) bathroom faucet with a compression stem that started to leak unless tightened extremely tightly. When I took out the compression stem to replace it, I found that the screw attaching the seal at the bottom was seized and corroded. Replacing the faucet would be difficult because of limited access - I would need to remove the toilet cistern in order to get in there. So I am looking for a replacement compression stem for this faucet.   I am having a very hard time identifying it and finding a replacement. I have tried several local plumbing supply stores. I sent images to American Brass and American Standard - both told me they could not identify the part as theirs. I also contacted  who is supposed to specialize in things of the sort. They told me they would need to know the product line in order to identify the part. I have no idea how to determine the product line though. How can I better identify this part?


Several months ago I started an experiment in test automation. Each test, before it starts, picks up random test data. For instance, when my test requires a user with administration privileges, I draw a random account and then I from a group of admin users for this account I draw a random admin user.  The reason for using random test data was two-fold:    First, when we were using static, i.e., hard-coded test data, sometimes tests started to fail, because test data no longer existed in DB, e.g., a user has been removed from the database (we're having production dump in our test DB, so I guess the user has been deleted in production). When we started to find such users at runtime, the problem disappeared.  Second problem was that it was not really clear why certain test data were used for a certain test. We have inherited tests from the other team and couldn't understand their intentions behind, for instance, using user "xyz@awesome.com". By writing queries to find data, we started to explicitly state what type of test data we want, e.g., that we want a user with administration privileges.   While my approach solved both problems, it introduced also some new issues:   Tests occasionally fail, because they pick up wrong test data. This is because queries are sometimes incorrect. For instance, once a test drawn a random account that had no administrators at all. Good thing about that is that this way I keep learning new things about the system under tests, e.g., that there must be business reasons to have accounts without administrators. Test setup becomes more and more complex, as queries start to grow and thus tests seems now a bit more complex to understand.   I was also hoping to increase coverage and find more bugs by using random test data just like it is done in fuzz testing. Instead, I mostly found bugs in my test and learned how little I know about the system under test. Finally, ROI doesn't seem big. Before the change there was a cost of maintaining static test data (updating test data if they were outdates). Now I have to maintain complex queries when the test takes "wrong" test data and this tends to occur more often than outdating of static test data previously.  I wonder whether using random test data really makes sense and how to do it right?


Using Overpass Turbo to return all cemeteries (nodes, ways and relations) with their municipality

I am trying to use the Overpass Turbo to retrieve from OSM all cemeteries in a given area (say, Carinthia), as well as the municipality (or other administrative unit) each is in.  Getting all cemeteries is easy enough − I made this  (adapted from taginfo) which works fine.  What I am struggling with is to add geocoding details − I want for each cemetery to know the city (or the county, or other adminstrative unit) it is in.  I have been trying to draw from examples on the wiki (particularly ) for this, but could not figure it out.  (Also, if I understood correctly, the is_in operator can only be applied on nodes, and cemeteries can be mapped as nodes, ways or relations)  EDIT:  Building uponh @mmd answer in , I made this  area[wikidata="Q37985"]->.boundaryarea; (   node["landuse"="cemetery"](area.boundaryarea);   way["landuse"="cemetery"](area.boundaryarea); );   foreach(     node(w)->.n;     .n is_in->.a;     area.a[name][boundary=administrative][admin_level~"^[2-9]$"] -> .a;     out center;     convert way ::=::,               ::id = id(),               is_in=a.set("{" + t[admin_level] + ":" + t[name] + "}");     out body;   );   This does not process relations correctly yet though.


What is the rule for wide ball during reverse hit or switch hit?

It is permitted for a batsman to reverse or switch his bat from right to left or vice versa for getting runs.  If they missed the ball means, what is the rule there regarding wide?  To be more clear, for ex,  If a batsman faces the ball with RHB and switch his bat to LHB and missed the ball, now the ball went outside the leg stump according to LHB, is this a wide ball?


Where can or who can help me change my old dollar bill?

Hey everyone? I've been having some difficulties exchange my old dollar bill. Can anyone please help me? They said it was old. But it is still im a good shape though.


I am currently investigating how a hacksaw blade's time period of oscillation changes when I add mass to the end of it or when I change the length it is clamped at.  I found the following equation from an IB worksheet:  $$ T^2=\frac{16M\pi^2x^3}{bEd^3} $$  Where:   $T$ is the time period for one oscillation; $M$ is the mass of the cantilever; $x$ is the length of the cantilever; $b$ is the breadth of the cantilever and $d$ is the thickness of the cantilever; and $E$ is the stiffness of the cantilever.   I've looked around the internet and asked my teachers, but I haven't been able to derive this equation from first principles or the equations given in my syllabus.  If anyone knows where this comes from or would like to try and work it out, I would be very greatful.


I notice that the space between each column of a table in LaTeX is not quite wide (at least for me). Is there any way to set this? I found the \hspace, but I don't get how to use this in the table.


Is it possible to detect 32 bit vs 64 bit in a bash script?

I am writing a bash script to deal with some installations in an automated way... I have the possibility of getting one such program in 32 or 64 bit binary... is it possible to detect the machine architecture from bash so I can select the correct binary?  This will be for Ubuntu machines.


What is degree of a polynomial f(n) = n/20

If an algorithm executes a statement,  it is n/2 times, then how come O is equal to O(n). Because the video explains that it is because of the degree of a polynomial. Please explain.  for(int i =0;i<n;i=i+2){ sout(n) ---- This statemet can be print n/2 times }  f(n) = n/2  then O(n)


I'm reading a textbook on different forms of convergence, and I've seen several examples in the text where they have an arrow with a letter above it to indicate different types of convergence.  Does anyone know how to make that symbol?  I tried what I thought was the most obvious guess ("\to^P") but that didn't work...


Am I experiencing a gimbal lock problem when rotating my cube?

So I'm trying to build a simple mechanic where the player see's 3 sides of a cube at a time: top, left and front(I called the front-side "Right" in my code, due to the orthographic view). The player can click on the front side or left side of the cube to rotate the cube so that the side that was pressed moves and becomes the top face. I want to smooth/animate the rotation.  The red faces are the faces that the user can click on.  My Logic seems to work quite well when I click on the left face (Rotating along the x axis), but doesn't seem to work well for the front/right face(It usually works once and then does weird stuff on the next click, this is on the z-axis)  public class CubeRotator : MonoBehaviour {     private const float STOP_THRESHHOLD = 0.1f;     private const float ROTATE_AMOUNT = 90f;      [SerializeField, Header("Touch Quads Colliders")]     private Collider touchQuadLeft;     [SerializeField]     private Collider touchQuadRight;      [SerializeField, Space(10)]     private float timeToRotate;      private bool mustRotateLeft = false;     private bool mustRotateRight = false;      private float targetX = 0.0f;     private float targetZ = 0.0f;      private float xVelocity = 0.0F;     private float zVelocity = 0.0F;      int layerMask;      private void Start()     {         layerMask = LayerMask.GetMask("Touch Quad");     }      void Update()     {         ListenForTouch();         RotateCube();     }      private void ListenForTouch()     {         if (Input.GetMouseButtonDown(0))         {             Vector2 touchPoint = Input.mousePosition;             RaycastHit rayCastHit;             Ray ray = Camera.main.ScreenPointToRay(touchPoint);              if (Physics.Raycast(ray, out rayCastHit, 150f, layerMask))             {                 if (rayCastHit.collider == touchQuadLeft)                 {                     mustRotateLeft = true;                     targetZ = targetZ - ROTATE_AMOUNT;                     zVelocity = 0f;                 }                  else if (rayCastHit.collider == touchQuadRight)                 {                     mustRotateRight = true;                     targetX = targetX + 90f;                     xVelocity = 0f;                 }             }         }     }      private void RotateCube()     {         float zAngle = transform.rotation.eulerAngles.z;         float xAngle = transform.rotation.eulerAngles.x;          if (mustRotateLeft)         {             zAngle = Mathf.SmoothDampAngle(zAngle, targetZ, ref zVelocity, timeToRotate);              if (Mathf.Abs(zVelocity) <= STOP_THRESHHOLD)             {                 mustRotateLeft = false;             }         }          if (mustRotateRight)         {             xAngle = Mathf.SmoothDampAngle(xAngle, targetX, ref xVelocity, timeToRotate);              if (Mathf.Abs(xVelocity) <= STOP_THRESHHOLD)             {                 mustRotateRight = false;             }         }          transform.rotation = Quaternion.Euler(xAngle, 0f, zAngle);     } }   Inspector Values:    I've tried several things, the only problem I can think of is, gimbal lock. Thanks in advance.


I often saw a formula, used mostly to integrate on the parameter space like:  $$ p(x|y) = \int p(x|\theta) p(\theta|y) d\theta $$ where $\theta$ is the parameter.   I am confused and I hope to explain me how is that.  I know that $p(x) = \int p(x,\theta)d\theta = \int p(x|\theta)p(\theta)d\theta $.  If I use a similar idea which in my mind means "a marginal distribution is obtain by integrating a join distribution over one variable", but with a conditional, I would expect to have:  $$ p(x|y) = \int p(x,\theta|y)d\theta = \int p(x|\theta,y)p(\theta|y)d\theta$$ which obviously not not look the same.   Any help with that?  Later edit: The first formula was not correct, the integration is over $\theta$. Thanks


I recently dual booted kali linux alongside Ubuntu 18.04.....However I'm not getting any option to select the os......How can i fix it?

I'm not getting any option to select the OS. The laptop directly boots into Ubuntu (my main OS) even though kali linux is properly installed in about 300 gb. A technical support will be appreciated.  Regards


Where are template functions instantiated?

I believe that there are 4 situations where my question may have different answers. These situations are sorted by member vs. non-member functions and within vs. without a library. Non-member function within a library Suppose that I have defined a template function func in header func.h. // func.h  template <typename T> int func(T t){     //definition }  I #include "func.h" in two cpp files of the same project/library/executable and call //a.cpp #include "func.h"  //stuff  int m = func<int>(3);  //stuff  and //b.cpp #include "func.h"  //stuff  int n = func<int>(27);  //stuff  My understanding is that these two cpp files should compile into their own object files. In what object file is func<int> instantiated? Why will the One Definition Rule not be violated? For this basic application of templates, is there any benefit to explicitly instantiating func<int> separate from its use? Member function within a library Suppose that func is instead a member function of some class Func. // func.h  class Func {     template <typename T>     int func(T t){         //definition     } };  Where will func be instantiated? Will func<int> be linked to or placed inline? Member and Non-Member functions across libraries Suppose that a.cpp and b.cpp are in different libraries that are compiled separately and later linked into an executable. Will the different libraries their own definitions of func<int>? At link time, why will the One Definition Rule not be violated? Note: There is a related question of the same title , but in a specific situation with one cpp file.


Decide $y$ For a certain complex number $z = x+ iy$ so that $$\sin(z) = 2?$$  What I think to have realised is that I need to write it in the form $$e^{x+iy}$$ but can't seem to find a way how.


I currently have two text boxes which accept any number. I have a text block that takes the two numbers entered and calculates the average.   I was wondering if there was a way I could bind this text block to both text boxes and utilize a custom converter to calculate the average? I currently am catching the text changed events on both text boxes and calculating the average that way, but I am under the assumption data binding would be more efficient and easier.


Team Collaboration using Jupyter Notebooks?

Is there an alternative to JupyterHub that allows sharing of notebooks across team members. We need the following requirements:  Be able to run the server on a HPC.  Multiple user login. Version control with Git or similar service. Sharing of notebooks between team members.


Command substitution inside a function does not stop the script on a failure even if -e is set

I have a following script sandbox.sh,  #!/bin/bash set -eu -o pipefail -E  function func1() {   echo "FUNC1"   exit 1 }  function func2() {   local ret   ret=$(func1)   echo $ret   echo "(func2)This line shouldn't be reached:'${?}'" >&2 }  var=$(func1) # The Line echo "main:This line shouldn't be reached:'${var}':'${?}'" >&2   (GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu))  This stops executing expectedly,  $ bash -eu sandbox.sh  $    However, if I modify "The Line" to var=$(func2) to call func1 through func2, it will give me following output  $ bash sandbox.sh  (func2)This line shouldn't be reached:'0' main:This line shouldn't be reached:'FUNC1':'0' $    To me, it seems command substitution behaves differently when it is placed inside a function, but I don't see why bash is designed so. Also it is a quite possible situation where a function's output is used by another and such a difference is confusing.  NOTE: If I rewrite func2 like following,  function func2() {   func1 }   The script stops at The Line. However, programmers quite often want to manipulate output from func1, I believe.


Solving $$x^{x^{x^{x^...}}}=a$$ My attempt is $$x^{x^{x^{x^...}}}\log(x)=\log (a)$$ $$a\log(x)=\log(a)$$ $$x=a^{1/a}$$ that means I can select any value of $a$ to get the root,but when I selected some values, I found them not satisfy the original equation, for example $a=3$,$a=5$, and so on,  Is there a mistake in my procedures,  thanks for any help


Extract lines between two match strings while excluding the matched lines

Below is my file $ cat README login user1 run .profile cd /u/opt unzip -l zip file copy files in zip file to .orig unzip -o the zip file cd /u/opt/install ./reqe21.sh sqlplus admin/<password> @req.sql logout  I need lines between the matched string last unzip and logout i.e desired output is below cd /u/opt/install ./reqe21.sh sqlplus admin/<password> @req.sql  I need a couple of answers.  When I tried sed -n '/unzip -o /,/logout/p' README it does not exclude the matching lines.  Thus, I get the below output: unzip -o the zip file cd /u/opt/install ./reqe21.sh sqlplus admin/<password> @req.sql logout  I tried another solution given here:  But, I do not get the desired output. See below: $ sed '1,/unzip/d;/logout/,$d' README copy files in zip file to .orig unzip -o the zip file cd /u/opt/install ./reqe21.sh sqlplus vrcadmin/<password> @req.sql   How do I use sed so that I get the lines between last unzip and the last logout i.e the desired output as was shared before.


Input file.txt:  Start of test case:test1 a b c Date is feb 12 Start of test case:test2 m n o Date is feb 13 Start of test case:test3 x y z Date is feb 14   Desired output files  test1.txt:  Start of test case:test1 a b c Date is feb 12   test2.txt :  Start of test case:test2 m n o Date is feb 13   test3.txt:  Start of test case:test3 x y z Date is feb 14


There's a trophy/achievement for dying to a green slime. However, I can't run into them for damage, even when I've dropped my weapon. How do I get them to kill me?


What is the multivariate analog of the median?

There is a univariate mean: sum the points and divide by the count.  There is a multivariate mean analog - the centroid, a point in a multidimensional space.  ().  For the median one sorts the list and picks the middle element.  If the middle element doesn't exist, the nearest values to it are averaged.  ()  It is an ordered statistic.  If I were to make a cloud of points in 2d space, then median might depend on what I defined as an axis.  If my cloud was more like a needle, then median might vary greatly with very slight changes in semi-minor axis, because it could flip from one tip to another of the cloud.  Is there a generalized geometric analog of the mean - something that uses an analog of an ordered statistic in a non-univariate space?  If I had well behaved cloud, even if it was more needle-like, I would expect such a median to have a reasonable correlation with and proximity to a centroid.  It was suggested that this () contains the answer.  When I try to find the point that gives the least typical distance, the results are consistent with a geometric mean.  #CODE n <- 1000 xmin <- 0 xmax <- 10 ymin <- 0 ymax <- 10  #make some points x <- runif(n,min=xmin,max=xmax) y <- runif(n,min=ymin,max=ymax)  #plot plot(x,y,type="p")  #find "geometric median" mu <- 0  for (i in 1:n){    xp <- x[i]   yp <- y[i]   d <- sqrt( (x-xp)^2 + (y-yp)^2 )   mu[i] <- mean(d)  }  idx <- which(mu==min(mu),arr.ind=true)  points(x[idx],y[idx],col="Red",pch=16) points(mean(x),mean(y),col="Blue",pch=17)   I get plots that look like the following.  The red point is the "idx" of the least typical distance to all other points.  The blue triangle is the centroid.  The red circle is the "geometric median".    To me the image seems to confirm that the approach to the median is consistent with the mean.  I have not accounted for an odd number of points, but I think that using uniform random and an $$ L_2 $$ norm is unlikely to give me two candidate medians with the same distance to all other points.  So I tried to determine the error in the estimate of the median from the true center as a function of sample size.  I wanted to make sure that I have acceptable sample sizes for my intended end-use of this approach.  I repeated the test ~3000 times per sample size setting and chose the median distance as representative.  In general the results for repeated tests to find the median on ~3000 runs had variation only in the 3d decimal place.  Here is the table of values of distance from the true center as a function of sample size.  samples err 10  2.008 15  1.676 20  1.456 25  1.317 30  1.198 35  1.124 50  0.930 90  0.698 100 0.659 300 0.386   I used  to try and determine the analytic form that is best described by the fit.  It looks like the following is the appropriate model.  AIC gives it as a decent candidate.    $$ Err(n) = \frac {6.5}{\sqrt{n}}$$  The domain is between 0 and 10 in x and y.  The value $ n $ is the number of samples.  Err is the distance between the median median and the true center.  Questions:   Can you confirm/reject that the general approach is correct based on the consistency between the median and the mean as a result from the code? Is the general form as spoken ground-up from the numbers as opposed to top-down by theory consistent with the textbook results from what the theory says it should be?  What is the appropriate expression there and how should it be derived? The denominator is expected, but where does the 6.5 in the numerator come from?  If my domain were a cube or a hypercube what should I expect of the numerator?   References and suggestions are always welcome.


Whats the Blender 2.8 command for adding an object to a collection using python?

I currently have a method that does:  self.myCol = bpy.data.collections.new(self.collection_name) bpy.context.scene.collection.children.link(myCol)   This method creates and adds a new collection to the outliner. Next, I want to create a bunch of cubes and add those cubes to the collection. How can I tell blender to create objects only within that particular collection?   Something like:  bpy.ops.mesh.primitive_cube_add(collection='name', size=2, location=(0, 0, 0))   Obvious cube_add doesn't have the param for it, so what's the proper way to do this?


My husband had a heart attack. Quite a few of his medications have a prohibition on both onions (all types including chives, shallots, leeks, spring onions, powders, etc) and garlic. We both enjoy the flavors but I'm not taking any chances with his health.  Is there anything I can substitute for onions and/or garlic that TASTES like either or both of those? I even make his hummus from scratch and it just doesn't taste right without garlic.


Customizing terminal not affecting after restart through ~/.profile

Any welcome text, modifying PS1, aliases not working after restart.  I have to put "source ~/.profile" every new terminal i open.  Wishing for complete fix for these all to effect everytime on launching terminal.  USING Ubuntu 14.04


I am a 16 year old student who will be learning Physics next year. Before I actually start Physics in school, however, I want to have a basic or intermediate understanding of the subject beforehand. This is because I'm really interested in this type of science and I want to to impress my science teacher. I'm hoping to be borrowing some books relating to Physics in the oncoming weeks to help me learn.   Are there any resources online, Physics books, or exercises you guys can recommend to me? Also, are there certain terms or parts of Physics that I should start off with? (eg: the study of relativity)


I just started to play with leflet/geojson a little. But my coordinates are not rendered properly and I have no clue what is going on.  My coordinates are: 52.23943, 4.97599. They work correct with the setView function.  var map = L.map('leaflet_map').setView([52.23943, 4.97599], 15);   But using a geojasonFeature they are, hmmm, 'projected', somewhere east of Somalia.  var geojsonFeature = {             "type": "Feature",             "properties": {             "name": "Coors Field",             "amenity": "Baseball Stadium",             "popupContent": "This is where the Rockies play!"             },             "geometry": {                 "type": "Point",                 "coordinates": [52.23943, 4.97599]             }         };         var myLayer = L.geoJson().addTo(map);         myLayer.addData(geojsonFeature).bindPopup("I am a gjson point.");   Anyone who knows what is happening here?  EDIT  Out of pure curiosity I changed the coordinates around [4.976143930893815,52.23925499011473] and the point appears at its correct location. A known bug!?


After some research for a laptop that may works with dual boot I found VivoBook S S510UA. I must use Windows for work and want Ubuntu for me. I have some small idea how Ubuntu functions however I could not find clear instructions about the installing process. My biggest concern is buying the wrong computer (not able to handle a partition) and the installing process.   These are my specs:   Processor Intel® Core™ i7-8550U processor 1.8 GHz 8M Cache, up to 4.0 GHz Ram 8GB DDR4 Graphics Controller Intel UHD Graphics 620 Hard Drive 1TB 5400 RPM HDD   128GB SATA3 M.2 SSD   Is this the right laptop? And where can I find the instructions to do the partitioning?   Thank you for your help!


How to take screenshot of remote website by url?

I am just wondering if I could take screenshot of a remote website by just giving url to javascript code.  This is done in many bookmarking sites. I wonder if that is done through some virtual browser which render the html code, executes the onload javascript and once loaded the screenshot is taken.


Is it wrong to pronounce the second "T" in word "potential"?

Why shouldn't we pronounce the second "T" in word "potential"? Any english rule about "t" in words?


why I can't do this method without the keyword "static"?

Why the method "div" doesn't work without static.? when just remove the static keyword it gives me the Error i.e .."\Playground:13: error: non-static method div(int, int) cannot be referenced from a static context         System.out.println(div(42, 0));"  public class Program {      static int div(int a, int b) throws ArithmeticException {         if(b == 0) {             throw new ArithmeticException("Division by Zero");         } else {             return a / b;         }     }      public static void main(String[] args) {         System.out.println(div(42, 2));     }  }


I'm wanting to do a minimal install of Ubuntu 20.04 LTS on a VM I'm making.  My original thought was to use either the network installer or the minimal CD, but both of those seem to be gone right now.  How would I be able to get that kind of install on 20.04 LTS?


MacTeX Error: XeLaTeX: command not found

Now here is the thing. I upgraded my Mac to the OS X EI Capitan a few days ago. And now MacTeX is not working. When I try to typeset it, the console shows the following error:   xelatex: command not found.  How can I fix it?


Why can struct in C++ do more things than in C?

It seems to me that C++-style struct can do more things than a C-style struct (for example, you can have member functions and access specifiers). What's the design reason for this, considering we already have class in c++?  A real design example would be appreciated.


After 13.04, 13.10, 12.10 EOL, is it possible to upgrade to 14.04 from 12.10?

I guess, the title can describe the real problem.  I know that upgrading from 12.10 to 14.04 require step by step upgrades from 12.10 to 13.04 to 13.10 to 14.04 LTS.But after the EOL of 12.10, 13.04, 13.10,  I still can't update neither upgrade. I guess that one of the manual solutions are:  1- Downgrade to 12.04 LTS and then jump to 14.04LTS, is it really possible ? 2- Upgrade to 14.04LTS via DVD, is it possible??  The last question, is there any solution to upgrade from 12.10 to 14.04 LTS directly that can be expected in the near future??  Thanks for helping


install ubuntu 17.04 usind wubi with already downloaded ubuntu image file

I have already install ubuntu by downloading the wubi tool and the image of ubuntu which i want to install in later ubuntu versions like 12.04 and 14.04, by manually downloading the image and the tool side by side in the same folder and disconnect the internet and the installation goes in its right way.  From two days ago i trying to do this way with ubuntu 17.04 but it insist to download the ubuntu image from the internet, i have downloaded these files :-   Wubi for Ubuntu 17.04 (rev 321) Wubi for Ubuntu 17.04 (rev 322) ubuntu-17.04-desktop-i386   and as usual i put them in the same folder and disconnected the internet but it needs to download the file live.  if anyone can help me doing what i used to do, or at least make the wubi tool download the ubuntu-17.04-desktop-i386 not the 64-bit version.


What expression > mean in sentence (python)?

What is the type of output here?:   H2 = np.random.rand(*H1.shape) < p   ## p= 0.60    60%


Canon 1D mark III vs modern cameras. Should I get a new one?

I have a friend that's starting to study photography at university and needs a camera. Because she doesn't have a lot of money to buy a new camera and all the equipment, I offered to let her use my Canon 1D Mark III at the beginning until she has the money to buy something better.  Besides the camera I still have some additional equipment.   Canon 17-40mm f/4.0 Canon 85mm f/1.8 Canon 50mm f/1.2 Sigma 100-300 f/4.0 Canon 580 EX II Speedlite   The question is:  How outdated is the Mark III compared to other Canon or Nikon cameras in the low/mid price range? What newer canon model can be compared to the Mark III? The high-end cameras will obviously beat the 1D Mark III.  Would you even replace the Mark III having all this equipment?  If yes, what would be a low/mid range alternative?  I know I could do some research, but my technical knowledge is completely outdated and I don't know the difference between all the technologies released in the past 10 Years. So I can't compare anything without spending tons of hours in research.


In the PostHistory table what is that number in the comment column?

In  the  holds for PostHistoryTypeId's 33 and 34 the Notice added and Notice removed events. When inspecting those rows with  the comment field holds a number. creationdate        |Post Link           |posthistorytypeid   |comment --------------------------------------------------------------------- 2015-03-29 3:24     |28687143            |34                  |82288 2015-03-29 2:49     |27269748            |34                  |81888 2015-03-29 2:49     |29116980            |34                  |81892 2015-03-29 2:49     |29134963            |34                  |81889 2015-03-29 2:49     |29135107            |34                  |81891 2015-03-29 2:49     |27269748            |34                  |81888 2015-03-29 2:49     |29116980            |34                  |81892 2015-03-29 2:49     |29134963            |34                  |81889 2015-03-29 2:49     |29135107            |34                  |81891  Does that number represents a foreign-key to a table that is missing from SEDE? If yes, and not a great secret, can that table be added to SEDE? If no, what does that number represent? A similar request to add the notice texts in the UI is  yes, this question was inspired by


NullPointerException - check null on class

How to know the Employees.class is null or not using Java Relection?  Example Class: Employees.class  Problem:   employees.getName(); value getName is Mikel employees is null if employess != null is TRUE. this class already 'new Employees()'   Employees.Class  public class Employees{  private Long id;
 private String kodStuff;
 private String Name;
  //Getter and Setter
 }   Example Process Method:  public void check(){     Employees employees = new Empoyees;     employees.setName("Mikel");     employees.setKodStuff("KL370");     //employees not save yet and process redirect check value of Name wuth return boolean     Boolean empty = checkName(employees);  }  public boolean checkName(Employees employees){     boolean notNull = false;     if(employees !=null && StringUtils.isNotBlank(employees.getName())){ // this is line 11         notNull = true;     }     return notNull; }   Throws exception at line no '11':  java.lang.NullPointerException   How can i check null exception during process on line no.11?


I am trying to make a regular expression capture any words in the specific line after the word Attachment: This question is for work, so it is not a homework or test question. I took the paragraph below as an example from . I did not major in computers but Psychology so this is completely foreign to me. I've read the manuals for the last two days, and because this is going over my head, I don't know how to begin. I have a task which involves me linking the attachments to a specific file with the same name saved in a folder (at least 500 attachments) on Adobe PDF. What I did before was to manually select the words and link it to a specific file in a folder, but it is tedious to do when they can go up to 500 attachments. I was aware of an application plug-in called EVERMAP that you can download for Adobe to automatically link specific words to a specific file in a folder. However, it requires me to use regular expressions which again, I don't know how to use. I will bold the words I want to capture in the paragraph below.  The repetition operator manual expand the match as far as they, and only come back if they must to satisfy the remainder. Attachment: The repetition operator manual The asterisk or star tells the engine to attempt to match the preceding token zero or more times. The plus tells the engine to attempt to match the preceding token once or more. Attachment: Asterisk and stars engine


If P(a,b|c) is known, how do I find P(a|c) and P(b|c)

I have the posterior distribution P(a,b|c). I would like to find the marginal posteriors P(a|c) and P(b|c). I am not sure if a,b are conditionally independent given c.   I know how to calculate the marginal probability when there is no conditioning. I am confused as to how to go about it when there is conditioning.   Any help is appreciated. Thanks in advance.


Alternative CSS tags to "display:none;" for SEO

I have always made my pages "by hand". just coding them, a bit of javascript here and there. And because I like to experiment with designs, i use a lot of popup divs, which means i use "display:none" tags for those divs. I've been told that this could be hurting my searchability. The pages have been online for a long time. does anyone have some advice on this? Someone has been mentioned that I will have difficulty with SEO and that I need to use a CMS like wordpress. what do you think my next move should be? Is there something in my CSS I can change, or do I go the CMS route? thanks!


I am plotting a 3d diagram using cubes to represent the data. Works fine so far.  Basically, this is what I started with:   Now what I want to do, is not to use cubes, but bars instead. So I kinda want to stretch the cube along the z axis from 0 to its z-coordinate to create the bar look and I have no clue how to do this.  Didnt find anything useful online.   This is what I want to achive:    On page 81 of the pgfplots manual is says, that for each cube, the coordinates can be set using:   /pgfplots/cube/size x={dimension} /pgfplots/cube/size y={dimension} /pgfplots/cube/size z={dimension}   but I dont know how to use that information.


Concatenating several .mp3 files into one .mp3

As it was suggested  I am using cat command to concatenate several .mp3 files into one .mp3 file. Imagine, I have following .mp3 files in the current folder: 001001.mp3 001002.mp3 001003.mp3 001004.mp3 001005.mp3  or, like this: 096001.mp3 096002.mp3 096003.mp3 096004.mp3  I need to concatenate these .mp3 files in there ascending sequence, i.e.  001001.mp3+001002.mp3+001003.mp3+etc. In order to join these .mp3 files into one I am executing following command in the current folder: cat *.mp3 > final.mp3  I tested the final .mp3 file and it is what I am expected, but I need to be sure that above command picks files in there ascending sequence. Can I be sure that above command always concatenates files in the ascending sequence? Thank you Sir!


Include subsections depending on variables/ifthen

I am making a template for several books. I have a mainfile which includes the .tex files for my chapters. For each book, some chapters are always almost the same except for a few subsections.  How can I define a macro or something to only include this subsection under a specific condition?  It should be like this pseudo code:    type=(A,C) <-- defined at the beginning of each book    \chapter{blabla}    if type=B, include: \section{first}    \section{second} <-- this is included always   if type=B,C, include: \section{third}   if type=A, include: \section{fourth}   so only sections second, third and fourth would appear in this particular case. Any idea how to realize that?


How to delete the particular Linux from Linux dual boot system?

I am using Lubuntu and was trying to install Porteus to pendrive. But I accidentally installed it to hard disk where I was using bodhi linux.  Now I use Lubuntu from second partition and it is good to use. I want to remove bodhi linux from first partition without loosing data.  I tried to copy data from that partition but in last it says can't copy data permission denied read only file system   I think I need to boot in bodhi linux for that data but I am unable to boot in.  Someone please help me to remove bodhi linux from the first partition without loosing data.


I have two tabular environments containing functions.  The height of the boxes containing some of these functions is taller than the inter-line spacing in text mode.  So, the appearance is cramped.  I want to have \\ [1.2\baselineskip] separating the rows.  This command is ignored.  I tried using \\ [12\baselineskip] in one row.  That is ignored, too.  In the following code, only \\ [1cm] was not ignored.  How do I get TeX to compile the code?  (I want to keep the tabular environments.)  \documentclass[10pt]{amsart}  \begin{document}   \noindent {\textbf{Example}} \vskip1.25mm The following functions are increasing on the interval $[0, \, \infty)$. \vskip1.25mm \begin{tabular}{r @{\ }l} {\textbf{i.)}}   &       $x^{2} + x$ \\[1.2\baselineskip] {\textbf{ii.)}}  &       $x^{3} + 2x^{2} + 3x - 7$ \\[1.2\baselineskip] {\textbf{iii.)}} &       $x^{2} + \sqrt{x}$ \end{tabular} \vskip0.25in  \noindent {\textbf{Example}} \vskip1.25mm The following functions are also increasing on the interval $[0, \, \infty)$. \vskip1.25mm \begin{tabular}{r @{\ }l} {\textbf{i.)}}   &       $\sqrt{x^{2} + x}$ \\[12\baselineskip] {\textbf{ii.)}}  &       $\sqrt[\uproot{1} \leftroot{-1} 3]{x^{3} + 2x^{2} + 3x - 7}$ \\[1cm] {\textbf{iii.)}} &       $\bigl(x^{2} + \sqrt{x}\bigr)^{3}$ \end{tabular}  \end{document}


How can I find the PID for software where the name of the software is different from the executable?

I run "Videos" software from the Dash in Ubuntu. After some minutes the software freezes.  I've tried searching for the PID of the software to kill it, but I can't find any result with these commands:  pgrep Videos  ps -eo cmd,pid,stime   I don't know the stime of the process.  I have to restart my computer and after login, I see the software is executed by totem command.  How can I find the PID for software where the name of the software is different from that of the executable file?


Can I use a 20V or 24V to power up a piano that needs 21V?

The power adapter of the piano should be AC/DC 21V, 1.5A.  But I can't find in a short time to buy something exactly like that, but I found this options:   20V, 3A or  24V, 3A   Can I use one of this to power the piano or it's not ok?


2 dice are rolled, and it is revealed that one of the numbers rolled was a 4. P(other number rolled was a 4)=?

The above question was present on brilliant with slight change as written below. I was able to correctly solve it and get the probability=2/11. Question on brilliant: Two fair dice are rolled, and it is revealed that (at least) one of the numbers rolled was a 4. What is the probability that the other number rolled was a 6? Note: You are not told which of the numbers rolled is a 4. I am getting the answer to the question I have asked as 1/11 (both 4's). Is that correct? Just wanted to confirm.


What default Windows Software Alternatives does Ubuntu have!

This former Windows user is all set with a new Ubuntu installed to his box. And now I'd like to know what default applications I have in my system? And esp. for these categories:   Audio Video Graphics & Design Internet & Network Torrent client Office Packages (Word Processors, Spreadsheet, etc.) System and Administrative tools command line emulator


In the latest 2.79 daily build, is it possible to convert the Bevel node's RGB normal maps to BW edge highlighters?

On the left is the normal map generated by the Bevel node. On the right is an unbeveled cube with the Bevel node in action. I wish to convert this to a BW map where The edges/gradients are highlighted and the rest isn't. Does anyone know if this can be achieved with more nodes?