Why is my Java GUI stuck and does not respond when trying to execute an Oracle DB Query Statement?

Basically, i have two tables named Users and Doctors. These tables both have "username" field and Doctors are pre-defined by system. In GUI, when a user tries to register to system, he has to enter some information like ID, fullname, username, password... etc. Usernames must be unique so if the username entered by the user is already a doctor's username, it should throw an exception but when i enter the info and press the button, it just stucks and does not respond at all. register.addActionListener( new ActionListener(){                  public void actionPerformed(ActionEvent e) {                          try {                 Class.forName("oracle.jdbc.OracleDriver");                 conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "SYSTEM", "1234");                 System.out.println("Database Connected");                                  try {                                          String sql = "insert into users values(" + idnum.getText() + ", '" + fullname.getText() + "', '" + username1.getText() + "', '" + password1.getText()  + "', '" + gender.getText()  + "', '" + birthday.getText()  + "', " +                     ageTF.getText() + ", '" + allergy.getText()  + "', '" + chronic.getText()  + "')";                                            System.out.println(sql);                                      String selSQL = "select * from doctors";                     Statement selstm = conn.createStatement();                     ResultSet rs = selstm.executeQuery(selSQL);                      while(rs.next()) {                         if(rs.getString("username") == username1.getText()) {                             selstm.close();                             throw new SQLIntegrityConstraintViolationException();                                            }                     }                                          Statement stm = conn.createStatement();                     stm.executeUpdate(sql);                     stm.close();                 }                 catch(SQLIntegrityConstraintViolationException SQLICVE) {                                          JOptionPane.showMessageDialog(null,"ERROR: A user with same ID or Username is already in system!!");                 }                 catch(Exception exp) {                                          System.out.println(exp);                 }                 finally {                     conn.close();                 }             }             catch(Exception exp) {                                  JOptionPane.showMessageDialog(null,"ERROR: Can Not Connect to System Right Now!!");                 System.exit(0);             }         }     });


Is there a name for synonyms that appear to have opposite meanings?

The words flammable and inflammable mean the same thing, but (to someone unfamiliar with their meaning) appear to be opposites (because of the "in" prefix). Is there a name for such word pairs that appear to be opposites but actually mean the same thing? A few other examples are ravel/unravel, regardless/irregardless, radiation/irradiation, incite/excite, culpatory/inculpatory, press/depress, to/unto, part/depart, fat chance/slim chance, thaw/dethaw/unthaw, candescent/ incandescent, canny/uncanny, dead/undead, write up/write down, valuable/invaluable, habitable/inhabitable


In the end of Star Wars Episode V: The Empire Strikes Back, Luke gets a bionic hand that looks perfectly like a normal human hand:   But, as seen on The Force Awakens cinematic trailers, Luke's hand looks very robotic:   Are there any clues as to what happens with his hand between Return of the Jedi and The Force Awakens?


Having issues with rotating/moving objects, as it's selection/pivot point is different from actual object

Currently following a tutorial for Blender, as I'm still relatively new to it. Ran into an issue where I realized that the actual selection/pivot point of the object, in particular, was moved away from the object. Don't know how to fix this, currently on Blender 2.9x.  This is what happens when I tell the two parented objects to snap to cursor, which is at World Origin. Object is rotated around this point too. I'd appreciate any help I could get.


Music video that involves two kids and monster like creatures

So the video starts off with two kids a boy and a girl and are around maybe 10 years old maybe or 8 years old (who are both speaking Spanish by the way). They wake up and find that their parents are gone and not only their parents but everyone in their town is gone. And so they pack up and try to find people and I know there's a scene where I'm pretty sure they destroy a car but I mean who wouldn't if no one existed. So they're traveling and they come across a big furry to totoro like monster in like a cave and the monster is cool. Then it shows us that there's a bunch of kids and they're all running around having a blast and there's also a bunch of other alien looking monsters but I mean they must be good cause they're not attacking anyone. And that's all I really remember I've looked everywhere for it and if you can help it would be awesome.So I watched the video maybe 5 or 6 years ago at least. I don't remember any females singing I'm pretty sure it was a band of guys. Hmm it wasn't heavy metal or anything it was more like pop maybe I don't remember much about the actual sound of it to be honest.


App image uploader replaces previously-uploaded image Markdown with most recently-uploaded image URL

When using the Stack Exchange App for Android, I encountered a problem when uploading multiple images to the same post.  After uploading a single image, the image Markdown is inserted normally, e.g.:  ![enter image description here][1]     [1]: http://i.stack.imgur.com/Cbh1m.jpg   As I upload more images, the list of URLs at the bottom of the post should be appended to. After uploading the above in a new post, I tap to place the cursor at the end of the first line, enter a newline and the toolbar reappears. I then upload a second image with this result:  ![enter image description here][1] ![enter image description here][2]     [1]: http://i.stack.imgur.com/Cbh1m.jpg   [2]: http://i.stack.imgur.com/V5nXV.jpg   Now I edit the image descriptions, to make sure I can keep track of all my images, place the cursor at the end of the second line and enter a newline. The edit box contains:  ![a black circle of utter blackness][1] ![the best planet earth clip art ever][2]      [1]: http://i.stack.imgur.com/Cbh1m.jpg   [2]: http://i.stack.imgur.com/V5nXV.jpg   I then upload a third image. What's interesting is that as the screen reloads, for an instant I see the best planet earth clip art ever replaced by more image markup, so the second line is this:  ![![enter image description here][2]][2]   But only for a moment. Then the screen updates, and the edit window is left in this state:  ![the best planet earth clip art ever][2] ![the best planet earth clip art ever][2] ![enter image description here][3]     [1]: http://i.stack.imgur.com/Cbh1m.jpg   [2]: http://i.stack.imgur.com/V5nXV.jpg   [3]: http://i.stack.imgur.com/6Ra5w.jpg   I correct the first line and insert a line break after the third line in preparation to upload the first image again (I really love blackness). Before uploading, the edit window looks like this:  ![a black circle of utter blackness][1] ![the best planet earth clip art ever][2] ![a fast computer][3]      [1]: http://i.stack.imgur.com/Cbh1m.jpg   [2]: http://i.stack.imgur.com/V5nXV.jpg   [3]: http://i.stack.imgur.com/6Ra5w.jpg   After uploading:  ![a fast computer][3] ![the best planet earth clip art ever][2] ![a fast computer][3] ![enter image description here][4]      [1]: http://i.stack.imgur.com/Cbh1m.jpg   [2]: http://i.stack.imgur.com/V5nXV.jpg   [3]: http://i.stack.imgur.com/6Ra5w.jpg   [4]: http://i.stack.imgur.com/ILUCC.jpg   Now, instead of adding a newline, I position my cursor at the end of the third line. The toolbar isn't visible so I insert a space and then delete it. I upload another copy of the third image from this position adjacent to other image markdown, and now the result is:  ![a fast computer][3] ![the best planet earth clip art ever][2] ![a fast computer][3]![enter image description here][4] ![enter image description here][4]      [1]: http://i.stack.imgur.com/6Ra5w.jpg   [2]: http://i.stack.imgur.com/V5nXV.jpg   [3]: http://i.stack.imgur.com/6Ra5w.jpg   [4]: http://i.stack.imgur.com/jG0fk.jpg   [5]: http://i.stack.imgur.com/ILUCC.jpg   Notice:   The new image, the fifth I have uploaded, goes in as image [4]. Not a problem, so far, but: The previous image description is still linked to image [4], now a different URL; and The first URL in the list has been overwritten by the URL of the third image, which happens to be immediately adjacent on the line where I inserted the most recently-uploaded image.   Reproduced at the time of this question revision, with the following specs:   Device: Moto G 2013 OS version: 4.4.4 App version: 1.0.57


Find the first vowel of a String that I call by his Getter method?

I have a 3 class program, and I need to know the first vowel in a String.   This String has his getter and setter methods. I tried to use by example:  obj.getnameString().charAt(i);   where (i) is a value previously obtained. But this throws a null value. why?


How much can I draw from the output of a flip flop?

I have a simple question.  I'm looking at using  for my project and I need to be able to draw ~500ma from the 'Q' or '!Q' pin on the flipflop.  How much current can I draw?  I looked at the datasheet and couldn't find that information.


How to invoke a python static method inside class via string method name

I have a the following strings defined which are specifying a python module name, a python class name and a static method name.  module_name = "com.processors" class_name = "FileProcessor" method_name = "process"   I would like to invoke the static method specified by method_name variable.  How do i achieve this in python 2.7+


New to Linux.  I put Ubuntu on my USB stick; installed Ubuntu while removing Windows 10. Currently on single-boot Ubuntu, but it's crashing very often not long after startup, requiring full reboot each time. I'm not sure what's causing the constant crashing. I think it may be that I configured the bootable USB wrong. So I wiped by USB and configured it again with UNetbootin. So I want to reinstall Ubuntu, but I'm stuck as to how. When I configure my BIOS to boot my from USB, it just skips the USB and goes to the next in queue (e.g. my current Ubuntu OS).  How do I start a fresh installation of Ubuntu on my computer? (No need to worry about backing up files, the few that I need are on an external harddrive.)


Is there any way to change the font SYSTEM WIDE on MacBook Pro running OSX Yosemite?

How can one change the system font system wide in OSX Yosemite? I am using Tinkertool at present but it only changes font in applications and not the Finder, status bar or any other fonts!


Does iOS now delete text messages on iPhone without warning?

It appears that my iPhone 4s have silently and completely by itself deleted a number of messages from the beginning of this 2012. In the place of a longer messaging thread, there's now a load more messages button in the affected text conversations, but it doesn't actually load the previous message history.   I am nowhere near any sort of limits storagewise, so I don't see why the iPhone would perform any housekeeping on its own. Digging into this, it appears that only the conversations using iMessage have been cleared out but not the ones that only transfer via SMS.  Is this a known behavior that is either documented officially by Apple or currently an undocumented feature?


are very useful. They have advantages over functions that return lists. However, you could len(list_returning_function()). Is there a way to len(generator_function())?  UPDATE: Of course len(list(generator_function())) would work..... I'm trying to use a generator I've created inside a new generator I'm creating. As part of the calculation in the new generator it needs to know the length of the old one. However I would like to keep both of them together with the same properties as a generator, specifically - not maintain the entire list in memory as it may be very long.  UPDATE 2: Assume the generator knows it's target length even from the first step. Also, there's no reason to maintain the len() syntax. Example - if functions in Python are objects, couldn't I assign the length to a variable of this object that would be accessible to the new generator?


Unable to install ECW support on lubuntu 14.04

I try unsuccessfully to install the ECW support (mainly to use ECW file in QGIS 2.2). We attempt to follow and adapt the howto provided by .  My first supprise was the repository ubuntugis-unstable is unavailable for trusty and the repository  doesn't have libgdal-ecw-src package. Finally in desperation we add ubuntugis-unstable for the raring distribution in source.list.  And apply the following commands   chmod +x ERDAS-ECW_JPEG_2000_SDK-5.1.1.bin ./ERDAS-ECW_JPEG_2000_SDK-5.1.1.bin # Select option desktop read only sudo cp -r ERDAS-ECW_JPEG_2000_SDK-5.1.1 /usr/local/ sudo ln -s /usr/local/ERDAS-ECW_JPEG_2000_SDK-5.1.1/Desktop_Read-Only/lib/x86/release/libNCSEcw.so /usr/local/lib/libNCSEcw.so sudo ldconfig sudo apt-get install libgdal-ecw-src sudo gdal-ecw-build /usr/local/ERDAS-ECW_JPEG_2000_SDK-5.1.1/Desktop_Read-Only   The ECW format seems to be installed  gdalinfo --formats | grep -i ecw   ECW (rw+): ERDAS Compressed Wavelets (SDK 5.1)   JP2ECW (rw+v): ERDAS JPEG2000 (SDK 5.1)   But .... Gis crash when a ECW raster file is open with the following message :   QGIS died on signal 4Abandon (core dumped)   If anyone have an idea


Use remote computer desktop win7 - win xp

I need to use via my laptop (windows 7 installed on it)  my office pc computer with windows xp on board.   You can say try to use teamvieawer, radmin etc.... But main trouble is that i must to use it so, that user, who works on pc is didn't disturbed by my "manipulations", so i can use same computer with own tasks on it, but user can do him work and i didn't interrupt user work: nobody can see each other actions. But with teamvieawer is so, that user stop work, and i use pc, and user see what i do. But didn't need this. How to do this in mode, in which i didn't interrupt user work? )  Windows remote desktop is good, but there are troubles with logins, and loged in users...  Also this pc is in subnetwork, so my modem-router has static ip, for example ...87 and my pc has ip 192.168.1.2 in this network, but i must connect to him, for example via **..**.87:port  Have you any ideas?


How can I uncompress a *.7z file in Ubuntu and keep the directory structure?


Is Spirit Airlines's $9 Fare Club worth it?

Has anyone tried  membership ($60/year)? What do you get with your membership, and what makes it worth it?


I suspect that listings and beamer are incompatible and I am looking for a fix. My minimal example is as follows: \documentclass{beamer} \usepackage{listings} \begin{document} \section{Sectionheadertext}  \begin{frame}[fragile] \begin{lstlisting}[name=bla,caption={Testcaption},label=lst:op]  var x = "Test"; \end{lstlisting} \end{frame}  \begin{frame} \lstlistoflistings \end{frame} \end{document}   The problem is: The second frame does not provide a list of listings (I would expect an entry with "Testcaption") but rather provides a list of section headers, i.e. "Sectionheadertext". I am searching for a patch to fix this, since I need a list of listings in beamer.


Other Idea to show an inequality $\dfrac{1}{\sqrt 1}+\dfrac{1}{\sqrt 2}+\dfrac{1}{\sqrt 3}+\cdots+\dfrac{1}{\sqrt n}\geq \sqrt n$

$$\dfrac{1}{\sqrt 1}+\dfrac{1}{\sqrt 2}+\dfrac{1}{\sqrt 3}+\cdots+\dfrac{1}{\sqrt n}\geq \sqrt n$$ I want to prove this by Induction  $$n=1 \checkmark\\ n=k \to \dfrac{1}{\sqrt 1}+\dfrac{1}{\sqrt 2}+\dfrac{1}{\sqrt 3}+\cdots+\dfrac{1}{\sqrt k}\geq \sqrt k\\ n=k+1 \to \dfrac{1}{\sqrt 1}+\dfrac{1}{\sqrt 2}+\dfrac{1}{\sqrt 3}+\cdots+\dfrac{1}{\sqrt {k+1}}\geq \sqrt {k+1}$$ so $$\dfrac{1}{\sqrt 1}+\dfrac{1}{\sqrt 2}+\dfrac{1}{\sqrt 3}+\cdots+\dfrac{1}{\sqrt k}+\dfrac{1}{\sqrt {k+1}}\geq \sqrt k+\dfrac{1}{\sqrt {k+1}}$$now we prove that $$\sqrt k+\dfrac{1}{\sqrt {k+1}} >\sqrt{k+1} \\\sqrt{k(k+1)}+1 \geq k+1 \\ k(k+1) \geq k^2 \\k+1 \geq k \checkmark$$ and the second method like below ,   and I want to know is there more Idia to show this proof  ? forexample  combinatorics proofs  , or using integrals ,or fourier series ,....    Is there a close form for this summation ?  any help will be appreciated .


Compare using Thread.Sleep and Timer for delayed execution

I have a method which should be delayed running for a specified amount of time.  Should I use  Thread thread = new Thread(() => {     Thread.Sleep(millisecond);     action(); }); thread.IsBackground = true; thread.Start();   Or  Timer timer = new Timer(o => action(), null, millisecond, -1);   I had read some  about using Thread.Sleep is bad design. But I don't really understand why.  But for using Timer, Timer has dispose method. Since the execution is delayed, I don't know how to dispose Timer. Do you have any suggestions?  Or if you have alternative codes for delayed execution are also appreciate.


How do you pluralize the acronym "POC" ("proof of concept")?

Possible Duplicate:          What's the plural form of the acronym , short for proof of concept?     ...for his contributions to many POCs   or      ...for his contributions to many POC      is not a duplicate as it is focused on cases like "ATMs" where the expanded form "automated teller machines" ends in a noun with a regular plural form ending in "s." In "proof of concept," the noun is in the middle of the abbreviated phrase. If we pluralize the uncontracted phrase, we get "proofs of concept," which has an "s" in the middle rather than at the end. It's unclear from the linked answers how abbreviations with this structure should be pluralized. (POC, POCs, PsOC?)


This is a feature request: in case I voted for reopening a question which was a good question (TMO) which was unnecessarily closed, then the OP changed it. Now, the current version of the question is something I wouldn't want to reopen - but there isn't any way I could find to cancel my original reopen request.


Exercise: Give an example of a subring of a finite commutative ring $R$, that is not an ideal of $R$.   I recently learned the following: Let $2^\Omega$ be the power set of an arbitrary set $\Omega$. For $A, B \in 2^\Omega$ we define $A \oplus B := (A\setminus B) \cup (B\setminus A)$ and $A\odot B := A \cap B$. Then $(2^\Omega, \oplus, \odot)$ is a commutative ring.  This ring has the following properties: Zero corresponds to $\emptyset$. One corresponds to $\Omega$. The additive inverse of $A \in 2^\Omega$ is $A$.   Now let's take $\Omega = \{a, b, c\}$. Define $M := \bigl\{\emptyset, \{a, b\}, \{c\}, \Omega\bigr\}$. Then $(M, \oplus, \odot)$ is a subring of $(2^\Omega, \oplus, \odot)$, but not an ideal: $$\{a\} \odot \{a, b\} = \{a\} \not\in M \, .$$  Is that correct?  Are there easier examples?


I met an English sentence like below.     After testing on multiple machines root configurations, I was able to notice that it happens only using homestead without nfs folder sync.   This sentence includes without nfs folder sync and I thought without requires noun after it.  But nfs folder is a noun and sync is a verb, this sentence seems to be wrong.  Is there a case we use a sentence after the word without?


I can't modify my password, but i have nothing set.  I have gDebi (no pass asking). who can help me?? Please... I have Ubuntu 12.04 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh


Pidgin unmet dependencies when I want to install anything in Software Center or with apt-get

My problem is exactly the same as   I tried the solution:  sudo apt-get update sudo apt-get autoclean sudo apt-get clean sudo apt-get autoremove sudo dpkg --remove -force --force-remove-reinstreq pidgin   But on doing the final command I get this response:  dpkg: error: conflicting actions -f (--field) and -r (--remove)  Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files;   For reference: After following the above process, I get the following output whatever I try to install:  $ sudo apt-get install python  Reading package lists... Done Building dependency tree        Reading state information... Done python is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  pidgin : Depends: pidgin-data (< 1:2.7.11-z) but 1:2.10.3-0ubuntu1.5 is to be installed       Depends: perlapi-5.10.1 but it is not installable  pidgin-libnotify : Depends: libindicate-gtk2 (>= 0.2.2) but it is not installable                 Depends: libnotify1 (>= 0.5.0) but it is not installable                 Depends: libnotify1-gtk2.10 but it is not installable E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   As suggested I tried   $ sudo dpkg --remove --force-remove-reinstreq pidgin dpkg: warning: ignoring request to remove pidgin, only the config files of which are on the system. Use --purge to remove them too.   Then I also tried-  sudo dpkg --purge --force-remove-reinstreq pidgin   I also tried:  $ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   pidgin pidgin-libnotify Suggested packages:   gnome-panel kdebase-workspace-bin docker The following NEW packages will be installed:   pidgin The following packages will be upgraded:   pidgin-libnotify 1 upgraded, 1 newly installed, 0 to remove and 78 not upgraded. 1 not fully installed or removed. Need to get 0 B/710 kB of archives. After this operation, 2,205 kB of additional disk space will be used. Do you want to continue [Y/n]?  Selecting previously unselected package pidgin. (Reading database ... 359576 files and directories currently installed.) Unpacking pidgin (from .../pidgin_1%3a2.10.3-0ubuntu1.5_i386.deb) ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Processing triggers for gconf2 ... Processing triggers for man-db ... Setting up pidgin (1:2.10.3-0ubuntu1.5) ... dpkg: dependency problems prevent configuration of pidgin-libnotify:  pidgin-libnotify depends on libindicate-gtk2 (>= 0.2.2); however: Package libindicate-gtk2 is not installed.  pidgin-libnotify depends on libnotify1 (>= 0.5.0); however:   Package libnotify1 is not installed.  pidgin-libnotify depends on libnotify1-gtk2.10; however:   Package libnotify1-gtk2.10 is not installed. dpkg: error processing pidgin-libnotify (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                       Errors were encountered while processing:  pidgin-libnotify E: Sub-process /usr/bin/dpkg returned an error code (1)


My old laptop doesn't want to start. Is it possible to pick some important files

Well, it was a really big accident.  Some days ago, I bought a new laptop and today evening, I was transfering some files from my old laptop to my new laptop. Unfortunately, I dropped my old laptop, and after that the laptop doesn't want to start. It shows startup repair. and of course, it doesn't solve any problem.   Be cuz I bought a new, broken or not broken it is not matter. However, I havent't finished yet moving my files from old to new laptop. Some my pictures and codes(programming) are left there and I don't want to lose them.   So the question is, when laptop doesn't want to start normally(I haven't tested safe mode yet.), is it possible to get datas or files and send that to another laptop??


Why finding an undecidable proposition doesn't imply consistency, if anything is provable in an inconsistent axiomatic system?

I'm reading  independent notes on the , by Dr. Frederic P. Schuller. The first chapter is a brief summary of axiomatic systems and set theory. In page 6 the following definition is presented:  An axiomatic system $a_1, a_2, . . . , a_n$ is said to be consistent if there exists a proposition $q$ which cannot be proven from the axioms.  The motivation for such definition is that since within an axiomatic system which contains a contradiction every proposition is provable, a sufficient condition for a consistent system is that there exist propositions which cannot be deduced from the axioms. Then the following theorem is announced:  Any axiomatic system powerful enough to encode elementary arithmetic is either inconsistent or contains an undecidable proposition, i.e. a proposition that can be neither proven nor disproven within the system.  The Continuum hypothesis is then given as an example of an undecidable proposition within ZF. Why isn't the undecidability of CH proof that ZF is consistent, if, after all, it should be provable if ZF was inconsistent?


Eagle: supply pin vcc overwritten with more than one signal

in some words, my circuit is feeded from battery (VBATT). The VBATT is taken with a voltage divider for read voltage by Atmega, and is routed into a voltage regulator (from 0.8/3.2 to 3.3) VREG.  All net for voltage and GND have their names and labels (I need "only" to do the signal routes and voltage divider) as you can see.  Checking for errors, DRC errors complains with  supply pin vcc overwritten with more than one signal  This is the image (if needed I can also give sch and brd)  On board all airwires seems ok, instead.    Thank you for your effort and support.


What causes a SNES game to lose its save game?

I have a very old SNES and a Donkey Kong Country 3 game. The last few times I played it, it seemed to randomly lose save games. People told me it was battery. Fine, I study electronics, I can fix that.  So I put in a battery holder and a new battery; all secured nice and tight.  I played it for a few nights with no problems.  This morning, I took my SNES downstairs with the game in it. I plugged it in, and woop, the save game was gone.  Does anyone have any clue why this game keeps losing its save game?   I am not able to replicate this on purpose by doing the following:   Wiggle the console while the game is in it. (like I would walk with it.)  Shake the cartridge heavily in all directions (to make sure it is not the battery being faulty or disconnecting.) Plug in the power after no power for at least a few minutes.   Any advice is appreciated.


Installing Windows 10 on a Ubuntu running laptop

I've got a Dell Inspiron 3558 and it's running Ubuntu 14.04. I want to install Windows 10 on it. I have never installed any OS, so that would be a first for me. I couldn't really find any videos or I don't know how to search for it. I have another PC which Windows, so I could make a bootable USB from it. I don't want to have dual-boot.


Why does one use shall+be+ing instead of will? What are the functions of be and V+ing?  I shall be focusing on the mechanisms that govern individual`s choices at and beyond school-leaving age and trying to explain why some pupils leave while others stay on,..


how to prove that (P⊃Q)≡(¬Q⊃¬P) ( P ⊃ Q ) ≡ ( ¬ Q ⊃ ¬ P ) is disallowed in intuitionistic logic?

this is what I've tried;  define kripke model K=({0,1},≤,⊩) where ≤ is the (total) order relation over {0,1} defined by 0≤0 0≤ 11≤1,and ⊩ is a binary relation from {0,1} to the set of propositional variables such that 0⊮A and 1⊩A and 1⊮B and 0⊩B. then  1⊮(A⊃B)≡(¬B⊃¬A) ( B ⊃ A ) ≡ ( ¬ B ⊃ ¬ A )  can somebody tell me if this is correct or if there are errors, what are they and how can they be corrected?


Can I ask different questions with the same title twice on Stack Overflow?

I want to ask two different questions with the same title on Stack Overflow. Is this possible? If it is not then why can I not? I have two different purposes for the same title. We cannot explain our whole problem in the title. That's why we should go for the body part for giving more clarification. I want my title to be the same for the two posts, but the body parts to be different.


I got a shell script and inside I got the command as below #!/bin/sh sh ../jboss/bin/standalone.sh --server-config=standalone-full.xml -Djboss.node.name=node1 -b 0.0.0.0 -bmanagement 0.0.0.0  How can I break the line to multiple lines for better understanding and management #!/bin/sh sh ../jboss/bin/standalone.sh    --server-config=standalone-full.xml   -Djboss.node.name=node1   -b 0.0.0.0   -bmanagement 0.0.0.0  Tried with backslash at the end of each line and it doesnt work.


At one point many years ago, Facebook login made sense to me. There have been enough changes that it doesn't anymore, at least to me.  How do I switch to having a username/password while keeping the rest of my account intact?  I don't think this is a duplicate, though it probably seems so from the title. I'd like to be able to add enough to my account to use the simple username/password prompt. There doesn't seem to be a way to activate that in the current website, unless I'm missing something.


How do I find my questions on the Android app?

In the Android app I can find activity on my questions but I cannot find the questions I have asked either per site, or anywhere but "recent activity". Even if I go to a specific site and look at my profile, it only shows achievements (as far as I can see) not a list of Q&As.  Where do I access this?


Shortcode in widget is printing before the title

{This question is marked as duplicate but i think my question and answer to it is much simpler then the original one}  Hi i have this following code that is showing before the widget title. For what i understand from my research is that i have to use return, but its not working. Please help.              <?php              function get_review_code(){               echo '
';                       echo '
';                     global $post;                     $args = array( 'numberposts' => 10, 'category_name' => 'review' );                     $posts = get_posts( $args );                        foreach( $posts as $post ): setup_postdata($post);                         echo '
';                                echo '
';                                          echo the_excerpt();                                                                                $author_id=$post->post_author;                                                                                echo '
';                                     echo '- ';                                     echo the_author_meta('first_name'); echo     '&nbsp;';                                     echo the_author_meta('last_name');                                 echo '
';                             echo '
';                                     echo get_avatar( $post->post_author, 230 );                         echo '
';                     endforeach;                     echo '
';             echo '
';             }                   add_shortcode('review_review', 'get_review_code');


Request of a domain with no virtualhost in apache ends to default virtualhost

If I ask Apache for domain.com that has no Virtual Host setup in Apache configuration, Apache will show the default Virtual Host. How can I prevent this from happening or simply drop the connection?


Factoring/Reducing a polynomial $x^4 -2x^3 + 2x^2 + x + 4$

The problem asks to determine whether or not $x^4 -2x^3 + 2x^2 + x + 4$ is reducible in $\mathbb{Q}[x]$. I tried using the fact that if it is reducible (solution manual said it is) then it is reducible in $\mathbb{Z}[x]$. That didn't work for me. Eisenstein's criteria isn't applicable.


Problem in solving a question related to field isomorphism.

How many fields are there (upto isomorphism) of order 6.   I dont know how to proceed. I don't know how to proceed. Please help me. Thank you in advance.


If $2^n+1$ is prime then $n=2^k$ for some positive integer $k$.

This problem came up as an extra problem to do for homework in my discrete mathematics class. I'm really just looking at some sort of a hint on how to proceed because I'm really not sure what to do. I figure I probably want to assume that n is not equal to $2^k$ but I don't know how to express this in a way that I can use it in the proof.


I'm now using mtpro2. However, I prefer the brackets from newtxmath. I think  it is more coherent with Chinese. How can I extract the brackets { and } from newtxmath? It seems to be a tremendous amount of work..    \documentclass[12pt,a4paper,openany,fleqn]{book} \usepackage[margin=2cm, top=2cm]{geometry} \usepackage[subscriptcorrection,nofontinfo,zswash,mtphrb]{mtpro2} \usepackage{amsmath} \begin{document} $\{x\mid 3x+2y<6\},~\left\{\frac{y}{x}\mid x\in\mathbb{Q},~y\in\mathbb{Q}\right\}$ \end{document}


Can't open update manger,package manager or software center.   The following code appears when I attempt to launch the above:     Could not initialize the package information  An unresolvable problem occurred while initializing the package information.  Please report this bug against the 'update-manager' package and include the following error message:  'E:Type '“deb' is not known on line 58 in source list /etc/apt/sources.list, E:The list of sources could not be read.'    Tried to 'gedit' it, apparently it doesn't handle 'E' Files?  Thank you in advance for your help.


Will the boy outwit the teacher in this way?

In the book, Solving Mathematical Problems: A personal perspective (written by Terry Tao), he discusses a problem named (on Analytic Geometry Chapter, page 79):     Problem 5.4 (Taylor 1989, p. 34, Q2). In the centre of a square swimming   pool is a boy, while his teacher (who cannot swim) is at one corner   of the pool. The teacher can run three times faster than the boy can swim,   but the boy can run faster than the teacher can. Can the boy escape from   the teacher? (Assume both persons are infinitely manoeuvrable.)   A picture can be drawn as below, with the boy at O and the teacher at an arbitrary corner, say A.   His solution as is (extremely paraphrased) starting from O, let the boy swim towards BD. Let the boy stop (at say X) when the teacher is at Y (A < Y < B) and AY = 3OX. Now tricking the teacher, make a straight dash towards CD.  I am having a much different solution (restricting the boys movement to a straight line).      Putting the square in Cartesian plane with O as the origin and and the teacher at D (Not A). Assuming the square is of lenght $2k$, the teachers coordinate is $( k, -k)$. Now, lets suppose the boy makes a dash to a point on AB (say P $(x, k)$ ) and reaches faster than the teacher. So to go to P, the teacher has to move in D->B->P, with a total distance of $3k-x$. The boy should go $\sqrt{x^2 + k^2}$. Now from the ratio of the speed of the two, it reduces to solving the inequality $\sqrt{x^2 + k^2} < \frac{3k -x}{3} = k - \frac{x}{3}$, which solves to $\frac{-3k}{4} < x < 0$.    So a straight dash to a bit left of the midpoint of AB is also probably a correct answer, isn't it ? [My main point of asking is not to check the answer numerically, which can be done by a sleeping baby with its left hand, but the method's correctenss]


Staying in Japan in a Zen temple for a few months for a foreigner

Are there Zen temples in Japan that allow staying there for a few months for meditation for foreigners? How much does that cost? Are there free ones? How about visa?


What type of hubs attach on only one side?

I wish to build a tricycle and one of the limiting factors is getting the front hubs. I search for tricycle hubs on eBay and get nothing useful. I need both the hub and axle or the axle dimension has to be a very common easily obtained bolt size. What would I search for?


Subfigure label position and visibility in memoir

I am writing my master thesis using Memoir. I want all subfigures to have their labels in the top left corner. I have so far done this with tikz, but I would like to find a more elegant solution as my current solution has flaws.  I would like to be able to automatically reference figures in the text, without having to manually specify the subfigure. This means each figure needs to have a label. Yet if I label the subfigure, said label invariably appears underneath the figure, and I am not sure how to move it, change its color and so on.  Anyway, an mwe and images of current and desired solution:  \documentclass{memoir}  \usepackage{tikz,siunitx,mwe} \newsubfloat{figure}  \newcommand{\scalebarimg}[6]{   \begin{tikzpicture}     \draw node[name=micrograph] {\includegraphics[width=#2\textwidth]{#1}}; %I fetch the image     \draw[ultra thick,#6] (micrograph.south west)++(0.03*0#2\textwidth,0.035*0#2\textwidth)--++(#2*#3\textwidth,0)node[above,midway]{#4 \si{\micro\meter}}; %I draw the scalebar     \draw  (micrograph.north west)  node[anchor=north west,yshift=-1,#6]{\textbf{\small{(#5)}}}; %I draw the image label   \end{tikzpicture} }  \begin{document} \begin{figure} \centering \subbottom[\label{fig:one}]{     \scalebarimg{example-image}{.45}{0.33933}{50}{a}{black} }\subbottom[\label{fig:two}]{     \scalebarimg{example-image}{.45}{0.33933}{50}{b}{white} } \caption{Figures (a) and (b) should not be doubly labeled.} \end{figure}    See Figure~\ref{fig:one} and \subcaptionref{fig:two}.  \end{document}   which yields  but I want   Is there a way of letting LaTeX position the label where I want it to relative the top left corner of the image? Or at least hide the caption for each individual subfigure while still labelling it?


When an account is deleted, don't auto delete its negatively scored posts on the meta site

Meta is different. Negatively scored questions are not always bad questions, and sometimes they have merit and draw good answers, especially discussions.  When an account (in the main site) is deleted, either by self deletion or by a moderator, all questions with score of -1 or less are being deleted regardless of their answers, both in the main and meta site.  Can you please change this behavior so that the questions on the per-site meta will survive and won't be auto-deleted?


What is the difference between "INNER JOIN" and "OUTER JOIN"?

Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?


Where is Ubuntu Software in Ubuntu 18.04?

Ubuntu Sotware app has suddenly disappeared from my programs. I haven't done anything or so I believe. I'm using Ubuntu 18.04 in a Dell Laptop. Help me please.


Do I need to install ubuntu on my hard drive?

I would like to just run it off of a USB, but after restarting my computer, it has reset ubuntu on the USB.


Why/how did I get banned from asking questions on softwareengineering.stackexchange.com?

I am so confused, I have asked like 5 questions on programmers.stackexchange.com / softwareengineering.stackexchange.com, and all of them have upvotes. Yet, I logged in a week ago, and now I can't ask a question anymore:  "You have reached your question limit Sorry, we are no longer accepting questions from this account. See the Help Center to learn more."    Anyone have any idea why this might have happened?  My account is here:   I have a ton of points over at StackOverflow, so the StackExchange network should know that I contribute positively.    Miffed. -alex


I keep all my dwellers un-armed, and arm them when it's needed. This way all my best weapons are available at any moment. After an incident, then I need to un-arm all the dwellers I previously armed. I can't find a good way to do this; is there some way to see an overview of dwellers and their weapons? Or some way to ensure that all dwellers are dis-armed?


Where do students who don't get into Hogwarts go?

Hogwarts is modeled on English private schools like Eton. If Hogwarts is a "private school" where do the students go who either can't afford it or don't get in?


In biblatex, treat periods in journal as abbreviation dots

I would like to consistently have a comma between the journal and volume number for article references using biblatex with biber as the backend. Unfortunately, the punctuation between the journal and volume is not consistent. Journals whose last word is abbreviated have no comma between the journal and the volume, and the word "Vol." is capitalized. Journals whose last word is not abbreviated have a comma and the word "vol." is not capitalized. I can fix the capitalization by un-commenting the commented lines in the below MWE, but the comma problem is quite perplexing. Apologies if this fix is in an answer somewhere, but I cannot find it (or at least, I don't know what to search for!).  Current output: [1] First Author. “Blah Blah 2”. In: Am. J. Phys. Vol. 72, no. 3 (Mar. 2004), pp. 367–375. [2] Second Author. “Blah blah”. In: Energy Fuel, vol. 27, no. 12 (Dec. 2013), pp. 7778–7789.  Expected output: [1] First Author. “Blah Blah 2”. In: Am. J. Phys., vol. 72, no. 3 (Mar. 2004), pp. 367–375. [2] Second Author. “Blah blah”. In: Energy Fuel, vol. 27, no. 12 (Dec. 2013), pp. 7778–7789.  MWE:  \documentclass{article} \usepackage{filecontents} \usepackage[     backend=biber,     citestyle=numeric-comp, ]{biblatex} \addbibresource{\jobname} % \DefineBibliographyStrings{english}{%     % volume = {\lowercase{v}ol\adddot}, % avoid capitalization after dots. % } \DeclareFieldFormat[article]{volume}{\bibstring{volume}\addspace #1} \DeclareFieldFormat[article]{number}{\bibstring{number}\addspace #1} \renewbibmacro*{volume+number+eid}{%   \printfield{volume}%   \setunit{\addcomma\space}%<---- was \setunit*{\adddot}%   \printfield{number}%   \setunit{\addcomma\space}%   \printfield{eid}} \renewbibmacro*{journal+issuetitle}{%   \usebibmacro{journal}%   \setunit*{\addcomma\addspace}%<---- was \setunit*{\addspace}%   \iffieldundef{series}     {}     {\newunit      \printfield{series}%      \setunit{\addspace}}%   \usebibmacro{volume+number+eid}%   \setunit{\addspace}%   \usebibmacro{issue+date}%   \setunit{\addcolon\space}%   \usebibmacro{issue}%   \newunit}  \begin{filecontents*}{\jobname.bib} @article{York2004, author = {Author, First}, journal = {Am. J. Phys.}, month = mar, number = {3}, pages = {367--375}, title = {{Blah Blah 2}}, volume = {72}, year = {2004} } @article{Baumgardner2013a, author = {Author, Second}, journal = {Energy Fuel}, month = dec, number = {12}, pages = {7778--7789}, title = {{Blah blah}}, volume = {27}, year = {2013} } \end{filecontents*}  \begin{document} \nocite{*} \printbibliography \end{document}


How does this board achieve snapability (ESP8266 programmer) for a SMD IC?

There is a programmer for the ESP8266 that allows you to snap the ESP module in and out of the board to program without soldering? I never seen this type of connector before, does anyone have a part name for it?  Here's a YouTube video demonstration of it:     I figure if I can find a part name that would be all I need to incorporate this into my own boards.


I was trying to understand the static keyword in c++, for that I wrote following program  #include <iostream> using namespace std;  class class1 {  private:     int a;  public:     void seta (int a)     {         this->a = a;     }     void printa ()     {         cout << a;     } };  class class2 {  public:     static class1 c;  private:     int b; };  int main() {      class2 cls;     class2 cls2;      class2::c.seta (20);     cls.c.printa ();     cls2.c.printa ();      return 0; }   This program is not compiling and is giving following error.  prog.cpp:(.text.startup+0x12): undefined reference to `class2::c' prog.cpp:(.text.startup+0x21): undefined reference to `class2::c' collect2: error: ld returned 1 exit status   I am not able to understand why it is giving error for the statement class2::c.seta (20); and the lines below it.  can somebody please help me understand the same?


Way to identify API usage and limits using API?

Is there an API method to return how much API calls were used and how much total calls is allowed by my SF org?


What is the difference between logistic regression and neural networks?

How do we explain the difference between logistic regression and neural network to an audience that have no background in statistics?


I think someone else has access to my wireless network. What next?

I kust realized that some other PC is also getting assigned a IP address (DHCP Lease) from my modem. I am sure this is not one of the PCs in my home.  My modem was using WEP security. I know WEP is far less secure and WPA is better, but this actually is a borrowed modem, and I did not know that WEP was used.  I immediately did the following : On My Modem    Changed the encryption mode from WEP to WPA   Changed the password   After this I do not see the intruder PC on the DHCP list.  On my Mac:     Changed the permissions on the public folder to "everyone - no access"   Turned off "File Sharing" in System Preferences (But I would want to turn it back on sometime)   My mac is the one that is always on, Both the admin user and the user I normally use are password protected.  Is the above sufficient? Should I do something more?  Also, is WPA security sufficient? Should I take other steps?


Write Algorithm code in IET journal template

i want to write Algorithm code in IET journal latex format. I am getting error as it is occured in the attached picture...Please solve this issue .. thanks in advance  this is the Algorithm code...  \begin{algorithm}[t] \caption{Saqib Qamar}  \label{algo1}  \textbf{Function} ADDING(M,W,c,k)\;   $i \leftarrow Mod(logM,c)$\; \If { $j \textgreater 2^i$ $\times$  $\lceil{\frac{k-0.5}{2}}\rceil$ }  { $ i \leftarrow i-2^k$\;  }  \textbf{end if}\; \textbf{return} $Add(c^k , c^j)$\;  \textbf{end Function}\;  \end{algorithm}


How do we take (something) $(mod~(3, x^{n-1}+x^{n-2}+...+1))$ and what is a normative canonical representative of a polynomial?

I have two questions in the following explanation: "Consider the quotient ring $S/3=Z_3[x]/(3,x^{n-1}+x^{n-2}+...+1)$. The canonical S/3-representative of $a\in Z[x]$ is the unique polynomial $b\in Z[x]$ of degree at most $n-2$ with coefficients in $\{-1,0,1\}$ such that; $a\equiv b $ $(mod~(3, x^{n-1}+x^{n-2}+...+1))$. We write $\underline S3(a)$ for the canonical S/3 -representative of $a $.  We write $S3(a)$ when the choice of representative is not normative". Question 1: How do we take modulo of : (something) $(mod~(3, x^{n-1}+x^{n-2}+...+1))$ ? Do we first take (something) mod 3, then take $(mod~( x^{n-1}+x^{n-2}+...+1))$ of it afterwards? Question 2: What does normative mean in the context above?


latex editors and installation for asus eeebook running windows 10

I recently got an asus e200ha netbook (config: Intel Atom Z8300, 2GB RAM and 32GB memory). What is a good light weight latex installation that I can install with this configuration? I'd also appreciate recommendations for a light weight latex editor.


What criteria should be used to select a project CRS in QGIS?

I've been using QGIS for a little while now, but I am still a bit confused about coordinate systems. There is plenty of guidance about how to change project and layer CRS, on-the-fly transformation etc, but I can't find anything which explains fairly simply why you should use a particular CRS in preference to another. Does it depend on the data sources (if any) which I intend to use? Or the size of the area to be covered (eg a few square kilometres vs a whole country)? Or the locale?  I've tried searching for tutorials etc which can shed a bit more light, but haven't come up with anything yet.


For some services it is useful to have one name in the email header. When you create an email account, Google by default does not allow to leave the name field empty.  How to leave empty last name or both in Google Mail?


Using the same RSA keypair to sign and encrypt

The RSA signature operation is basically the same as encrypting with the private key.  In particular, both operations use the same kind of keys.  Is it safe to use the same RSA keypair both for encryption / decryption and for signing / verification?


Inserting a tab character into text using C#

I'm building an application where I should capture several values and build a text with them: Name, Age, etc.   The output will be a plain text into a TextBox.  I am trying to make those information appear in kind of columns, therefore I am trying to separate them with tab to make it clearer.  For example, instead of having:  Ann 26 Sarah 29 Paul 45   I would like it to show as:  Ann tab 26 Sarah tab 29 Paul tab 45  Any tip on how to insert the tabs into my text?


What is the base drop rate of Steam booster packs?

In terms of booster packs per month, for example. I know that the rate increases depending on the steam level, but the rate increase is meaningless without the base rate.


How to search and remove ^M in all files in a directory recursively?

Files edited in Windows have M^ at end lines. How would I remove them ?


the soql in the following code is failing. The error message is: "Compile failure on line 6, column 5: Unexpected token '<'."   Map<Id, String> profileIds = new Map<Id, String>(); profileIds.put('00eee000000xxxx','System Administrator'); profileIds.put('00eee00000yyyyy','YYY Profile'); profileIds.put('00eee00000zzzzz','ZZZ Profile');  List<User> users = [SELECT Id, Name, Email, ProfileId FROM User WHERE NOT(Email like '%@example.com') AND ProfileId NOT IN :profileIds.keySet()]; System.debug(users.size()); for (User usr: users) {     System.debug(usr.id+'    '+usr.Email); }   When I run the Query in SOQL Editor, it says "unexpected token: AND"  SELECT Id, Name, Email, ProfileId FROM User WHERE NOT(Email like '%@example.com') AND  ProfileId NOT IN ('00eee000000xxxx','00eee00000yyyyy','00eee000000zzzz')   When I remove one of the clauses from the where statement, it works. I do not understand whats wrong with the query. I tried wrapping the query with in parenthesis too, but no luck. for example   List<User> users = [SELECT Id, Name, Email, ProfileId FROM User WHERE (NOT(Email like '%@example.com') AND ProfileId NOT IN :profileIds.keySet())];  List<User> users = [SELECT Id, Name, Email, ProfileId FROM User WHERE (NOT(Email like '%@example.com') AND (ProfileId NOT IN :profileIds.keySet()))];


Upper bound and lower bound of an integral

I have this problem and I don't know where to start. Can you give me some hint, please?  Suppose that $f:[a,b]\to [0,\infty]$ is a lebesgue integrable function. Let $B=\int_a^b fd\mu.$ Prove that $\sqrt{1+B^2}\leq \int_a^b\sqrt{1+f^2}d\mu\leq 1+B$.


Is the inverse of a measurable set under a continuous function is always measurable?

From book Real Analysis by Royden & Fitzpatrick,      Let $f$ be a continuous function defined on $E$. is it true that   $f^{-1}(A)$ is always measurable if $A$ is measurable?


Proving the identity functions is continuous iff $\tau_1\supseteq\tau_2$

Exercise: Let $\tau_1$ and $\tau_2$ be two topological spaces on a  set $X$. Then $\tau_1$ is said to be a finer topology than $\tau_2$ if $\tau_1\supseteq\tau_2$. Prove the identity function $f:(X,\tau_1)\to (X,\tau_2)$ is continuous if and only if $\tau_1$ is a finer topology than $\tau_2$.  Attempted proof: Let $A\in\tau_1$. If $f$ is continuous then $\exists B\in\tau_2$ such $f(A)\subset B\implies A\subset B$ for any $A\in\tau_1$ such that all open sets of $\tau_1$ are open sets of $\tau_2$ hence $\tau_1\supseteq \tau_2$. If $\tau_1$ is a finer topology than $\tau_2$, for any $B\in\tau_2\implies B\in\tau_1$ which implies that $f^{-1}(B)=B$, then $B\in\tau_1$ which proves $f$ to be continuous. Questions: Is my proof right? If not. What is wrong? What are alternatives? Thanks in advance!


Word for opposite of *prerequisite*? Something that is possible because of another thing?

Prerequisite describes something that must exist before another thing. Is there a word that describes an opposite, that is, something that is made possible because of the existence of another thing?  For example, in  "If you wish to make an apple pie from scratch, you must first invent the universe", inventing the universe is a prerequisite of making an apple pie from scratch. Is there a word that works when we switch those two subjects: making an apple pie from scratch is a(n) ______ of inventing the universe?  I know that I can rephrase the sentence, or use multiple words to express the meaning, for example, "making an apple pie is one of the things I can do after inventing the universe". I can also use a made up word like postrequisite (although that exact example may not fit, as I understand it means something that must be done afterwards). I would like to know if there is one word, that is used widely, that means the same.


I use Steam and I have nearly 200 games for it   How compatible or friendly is Ubuntu with DirectX?  Also keep in mind that several of my favorite games use GFWL such as Fable 3, Dawn of War 2, Red Faction Guerrilla among others.   I have been thinking about installing Ubuntu to run alongside Windows but first, I need to know how reliable Ubuntu is as a gaming platform?


Force figure placement in text with lstinputlisting

I have been looking everywhere and I found the ways of doing this with images with \usepackage{float} for \includegraphics. But I also have texts from .txt files that I have as in \lstinputlisting that I would also like to force.  I don't really understand the documentation of how placement works.     5.1 Space and placement      float=[*] <subset of tbphi> or float     floatplacement   makes sense on individual displayed listings only and   lets them float. The argument controls where LATEX is allowed to put   the float: at the top or bottom of the current/next page, on a   separate page, or here where the listing is. The optional star can be   used to get a double-column float in a two-column document      floatplacement=<place specifiers>   tbp   is used as place specifier if   float is used without value.   Any ideas how I force the code below with \lstinputlisting?  \lstinputlisting[float=h,frame=tb,     caption=Iteration: 2. Variable importance for unpruned decision tree ,captionpos=b, belowcaptionskip=2cm ,label=zebra]{results/maybe_80_20.txt}


How to create a circular diagram with Illustrator

I need help to create a circular diagram in Illustrator like this.  I need precisely to represent a percentage. How to do that ?  Thank you.


What is the autocorrelation for a random walk?

Seems like it is really high, but this is counterintuitive to me. Can somebody please explain? I am very confused by this issue and would appreciate a detailed, insightful explanation. Thanks a lot in advance!


cashier check deposited and available on my account

Somebody payed me with a cashier check from WELL FARGO BANK and it got deposited on my account at BANK OF AMERICA. The total amount is already available since 5 days.   As I do not trust the person and there are so many strange stories about cashier checks I am afraid that the person could ask the money back !! Is it possible that the person could tell any lie to the bank WELL FARGO and ask the money back ?  I also read something like there are some fraudulent checks !!   Please if anybody could tell me if there is no more danger to the money I got from this CASHIER CHECK ??? I contacted my oficial at BANK OF AMERICA but I got no answer at all !! ....


What is embedding? (in the context of dimensionality reduction)

In the context of dimensionality reduction one often uses word embedding, which seems to me a , which rather stands out compared to the rest of the discussion, which in case of PCA, MDS and similar methods is just the basic linear algebra. Yet, I would rather avoid using/interpreting this term too loosely. So, what embedding really is: the low-dimensional subspace hidden within a bigger one? The projections of the data vectors onto this subspace? The projection operator mapping the higher-dimensional space onto the lower-dimensional one, as suggested  and ? Something else? Thank you for clarifications and examples.


second derivative at point where there is no first derivative

I have this HW where I have to calculate the $74$th derivative of $f(x)=\ln(1+x)\arctan(x)$ at $x=0$. And it made me think, maybe I can say (about $\arctan(x)$ at $x=0$) that there is no limit for the second derivative, therefore, there are no derivatives of degree grater then $2$. Am I right?


"I don't understand you" vs. "I'm not understanding you"

Which sentence is correct?   What are you talking about? I don't understand you.   or   What are you talking about? I'm not understanding you.


Wouldn't one of the horcruxes need to be used up in Voldemort's resurrection?

I wonder if the number of horcruxes is correct - Harry destroyed the diary, ring, cup, Nagini, locket, diadem and one in himself leaving Voldemort with one piece. Shouldn't one be used in book 4? Voldemort was killed in Godric’s Hollow, or just his soul fled and found Quirrell in Albania 11 years later? Was the same part used in book 4?


I was claimed as a dependent in 2018 but not in 2019

I filed my own taxes in 2019 as a single. In 2018, I was claimed as a dependent by my parents, but they haven’t filed their 2019 taxes. Will I still receive a stimulus check?


prove sum of inner products of v and an orthonormal set is smaller than v

let $\{w_1,w_2,...,w+m\}$ be an orthonormal set in a space ($V$). I want to prove that given an arbitrary vector $v\in V$ , the following stands: $$ \sum^m_{i=1}\left|\left<w_i,v\right>\right|^2 \le \|v\|^2 $$ it is also mentioned that the equality occurs when our set of $w_i$s is a basis for the space $V$. (assuming it is a finite-dimensional space) I have tried opening the $|\left<w_i,v\right>|$s to $|w_i||v|\cos\theta_i$ where $\theta_i$ is the angle between each orthonormal vector and our $v$. This gives us $m|v|\sum \cos\theta_i$ but I cant get anywhere from this. Thanks in advance!


How / whether to revert an edit to a question by an OP when lacking reputation to revert

After I posted an answer and engaged the OP in comments, he edited the question so my answer now makes no sense, and added to question. It doesn't look like I have reputation to revert edits, and I'm not even sure yet what the policy is, so this would be a good example to learn from.  reference:   EDIT: At some point, someone suggested that this question might be a duplicate of  , but it is not, and the answer of user PolyGeo was the perfect answer for me. The primary intention of my question, though unclearly stated, was what someone should do if they lack the reputation to revert an edit.


What goes wrong if we add a mass term for gauge bosons without the Higgs mechanism?

Question: Why can't we add a mass term for the gauge bosons of a non-abelian gauge theory?   In an abelian gauge theory one can freely add a mass and, while this breaks gauge invariance, as long as the coupling current is conserved everything works fine (i.e., the scalar modes decouple and the theory is renormalisable).  In non-abelian gauge theories, it is often stated that the only way to introduce a mass term is through the Higgs mechanism. If we added a mass term without introducing the Higgs field, but the coupling current is still conserved, at what point would the theory break down? It seems to me that the scalar modes decouple as well, at least to tree level. I failed to push the calculation to one loop order, so maybe the theory breaks down here. Is this the most immediate source of problems, or is there any simpler observable which fails to be gauge invariant?  One would often hear that if we break gauge invariance the theory is no longer renormalisable. I may be too naïve but it seems to me that a (gauge-fixed) massive gauge boson has a $\mathcal O(p^{-2})$ propagator and therefore (as long as the current in the vertices is conserved) the theory is (power counting) renormalisable. Or is it?  To keep things focused, let us imagine that we wanted to give gluons mass, while keeping self-interactions and the coupling to matter (and ghosts) unchanged. Could this work without a Higgs?    There are many posts about that are asking similar things. For example,    asks about the mass of fermions, not of the gauge bosons.  same as above.  same as above.  is a list of modifications/generalisations to the Higgs mechanics, but doesn't discuss if it is avoidable at all.


Why is accuracy not the best measure for assessing classification models?

This is a general question that was asked indirectly multiple times in here, but it lacks a single authoritative answer. It would be great to have a detailed answer to this for the reference.  , the proportion of correct classifications among all classifications, is very simple and very "intuitive" measure, yet it may be a . Why does our intuition misguide us here and are there any other problems with this measure?


Orbit space of $\mathbb{Z}_2$-action on the torus $T^2$

Let $\mathbb{Z}_2$ be the group $\{1,-1\}$. I want to construct an action of $\mathbb{Z}_2$ on the torus $T^2$ such that the orbit space is homeomorphic to the sphere $S^2$. Could anyone give some hints?


How do I get the primary namespace in an assembly?

For example, if I get the namespaces in EntityFramework.dll using  assembly.GetTypes().Select(t => t.Namespace).Where(n => n != null).Distinct()    and then only list the namespaces with the minimum periods, I get the following two namespaces  System.Data.Entity System.Linq.Expressions   However, System.Linq.Expressions is the namespace of an assembly that EntityFramework.dll is dependent on and not the primary namespace of EntityFramework.dll, which clearly is System.Data.Entity.  How do I distinguish between the 2?  EDIT: By "primary namespace", I am referring to the root namespace of the classes within the assembly itself and not its dependencies.


How to make font within equations look normal

When writing maths equations and I want to write words within the dollar signs, or between when I've written \begin{equation} and \end{equation} it comes out in italics. I have tried \emph{...} but it still come out in italics. Any suggestions? I am using \usepackage{amsmath} and I'm writing my document on Overleaf. Thank you.


How do I get from Terminal 1 to Terminal 5 in Fiumicino Airport?

The official site mentions a shuttle bus service, I also googled but the infos are not clear, so I hope to find some firsthand experience.  I have a flight with a stop in Fiumicino, I will arrive in Terminal 1 and the next departure is from Terminal 5, the transfer time is around 5 hours.  Is it correct that I should go to Terminal 3 first (using the internal transfer area) and after exit from Terminal 3 and take the shuttle to Terminal 5?  The terminal 5 has a waiting area with some shops or is just a terminal for departure? In your opinion is better to wait some hours inside Terminal 3 before going out to take the shuttle bus?


linkedlist: insert node at head of linkedlist Java

I am just learning linkedlists and trying to insert a node at the head. Here is my code:  Node Insert(Node head,int x) {      Node tmp = new Node();      if (head == null) {         head = tmp;         tmp.data = x;      }     tmp.data = x;     tmp = head;     tmp.next = head;      return tmp; }   I am not sure what is going wrong. My logic:   Create a new node 'tmp' assign that value of 'x' and the reference to tmp would be null MAke tmp's next i.e. reference to the head of the linkedlist if head is null then tmp's data becomes head's data and tmp's reference become null


Why do we study the projective representations of SO(3) in the context of the theory of angular momentum?

I have been studying the group theoretic formalism of quantum mechanics and I have yet to find a satisfying explanation for the need for projective representations in the theory of angular momentum. I understand the connection between SO(3) and angular momentum, and I understand the the projective representation of SO(3) is given by the usual representation of the double cover, SU(2). The thing that I am missing is $\textit{why}$ the projective representation is important in the first place.   Furthermore, I understand the consequences of studying SU(2) rather than SO(3), namely that for half-integer spin particles a rotation of $2\pi$ under SU(2) transforms the wavefunction to its negative, but for integer spin particles the rotation is equal to the identity, but as I said, I see this a a consequence rather than motivation for studying SU(2) over SO(3). Is there a more satisfying answer to my question other than "we do it this way because it works"? Thanks!


I am wondering what is, if any, the best practice regarding class and static methods.  Consider the follwoing class  class A:     number = 0      @classmethod     def add_int_m(cls, m: int) -> int:         return cls.number + m      @staticmethod     def add_int_k(k: int) -> int:         return A.number + k   The two give the same result, but is one approach preferred over the other?


When I want to execute a binary file or program which is named as vtmc.ubu.ifc, I have to use the terminal to go to that bin folder where the program exists and have to execute the program by ./vtmc.ubu.ifc.   How can I run the program without having to go to that folder, just by using the command like vtmc.ubu.ifc, similar to programs like vmd, xmgrace etc opens just by typing vmd or xmgrace in the terminal.


How to pass variables to a function argument using add_action

I have a test.php plugin file inside my plugin/ folder and I am trying to send an email from this plugin.   I have a code that looks like this currently in my plugin.     add_action('init', 'email_notifier', 10, 5);     function email_notifier($type, $email, $subject, $body, $link){     // wp_mail(....)    }   However it seems there is no way to pass outside variables to the email_notifier function.   I can send an email like this  add_action( 'init', 'email_notifier', 10, 2); function email_notifier() {    // wp_mail( 'mail@example.com', 'subject', 'content' ); }   But this limits me from dynamically setting and passing the email/subject/content to the function.   Is there any workaround for this


Can a character use a luck point to affect a roll that was replaced by Portent?

When a divination wizard character uses their Portent ability:     Starting at 2nd level when you choose this school, glimpses of the   future begin to press in on your awareness. When you finish a long   rest, roll two d20s and record the numbers rolled. You can replace any   attack roll, saving throw, or ability check made by you or a creature   that you can see with one of these foretelling rolls. You must choose   to do so before the roll, and you can replace a roll in this way only   once per turn.   ... to replace a roll, can a player with the Lucky Feat:     Whenever you make an attack roll. an ability check, or a saving throw,   you can spend one luck point to roll an additional d20. You can choose   to spend one of your luck points after you roll the die, but before   the outcome is determined. You choose which of the d20s is used for   the attack roll, ability check, or saving throw.      You can also spend one luck point when an attack roll is made against   you. Roll a d20, and then choose whether the attack uses the attackers   roll or yours.      If more than one creature spends a luck point to influence the outcome   of a roll, the points cancel each other out; no additional dice are   rolled.   ... use the Luck Roll to replace the result? Or does the Portent trump all rolls and simply give you the final outcome?  This question spun off from  on .  Some relevant points:  .  Mike Mearls tends to believe that luck can triumph in some cases, but admits this is , and further seems to conflate the question with .  I would suggest reading the linked discussion before formulating an answer. There's some good thought there.


Mapped drive disconnects after inactivity

I've got scripts that run nightly that need access to a mapped drive.  I would like to avoid having the script manually map the drive as I don't want to have to dump my credentials into it.    The problem is with the drive mapped as it is, by the time the scripts run, the mapped drive can't be found.  I've got the server configured to never go to sleep and net config server autodisconnect is set to -1.  This is on win server 2008r2  Can anyone help me figure out a way around this?


Past Perfect And Present Perfect In One Sentence

==> Until more recently, Product XYZ had not been ready but Provider XYZ has made changes to the product a while ago that address the issue and   markets are now embracing the product.   Is this sentence grammatically correct? My thinking was:    1) Had not been / past perfect --> It is ready ever since Provider XYZ has released the product but since that was a while ago its a condition that changed in the past before the present.   2) Has been /present perfect --> Provider XYZ released a product but this release is affecting the present and future and I want to underline that by using present perfect. I also don't know the exact moment when they released it.    Thank you for your help, much appreciated. Just wanted to make sure I am using past perfect correctly. At what point would you use "past tense" in a sentence like this? E.g. if you know exactly when the product was released.


How can I calculate the width of the widest word in a div?

I have a quite problematic task, I'd like to calculate the width of the widest word in my div, so I can set a min-width with javascript on a resizable div.  I tried working on something, I managed to get the longest word, unfortunately not the widest and I also failed to get his width.  Fiddle :   JavaScript :   function longestWord(string) {     var str = string.split(" ");     var longest = 0;     var word = null;     for (var i = 0; i < str.length; i++) {         if (longest < str[i].length) {             longest = str[i].length;             word = str[i];         }     }     return word; }  var test = document.getElementById("Test"); var longest_word = longestWord(test.innerHTML); // test.innerHTML == 'dofkdspakdasdsakd,' var width = (longest_word.clientWidth + 1) + "px"; // 'NaNpx' alert(longest_word);   HTML :  <div id="Test">   abcdefghijklmn, opqrstuvwxyzAB   ddoafkpdsfk,    dsapdlasèd. CDEFGHIJKLMNO,   dofkdspakdasdsakd, PQRSTUVWXYZ </div>   Any suggestion ? The issue here is not to get the width of all the words, but just the widest word in a bunch of text, which change the problematic.    UPDATE :  This post helped me :   I have to put every word in <span> tag and check through them which one is the widest according their fontFamily and fontSize.


Whats the Oracle equivalent of SELECT 'TEST' as MyColumn

In MSSQL I can type into script editor and execute the following:  SELECT 'TEST' AS MyColumn   Which will output a single row containing TEST in a column called MyColumn    What is the equivalent in Oracle?


How can I build a recursive function in python?


I am trying to run this command: sudo apt-get update && apt-get upgrade  but I keep getting these errors E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?  I read in another answer that by using sudo these errors will be solved. But in my case I'm already using sudo. How to solve these errors?


How can I go back to the original interface layout?

I don't know what the hell I did I just want to get back to modelling


Find $$\int \frac{dx}{x^4+1}$$  I found a possible solution to this question   However, I was wondering if there is a "nicer" solution, that would more understandable to a person who isn't advanced in complex numbers.  Thank you!


Book about a kingdom invaded by another world

This is a series my father read when he was younger (he was born in the 60s) and had me read as a kid, the book cover had the look and feel of classic fantasy novels such as the Wheel of Time series.  It is set in a medieval kingdom, the premise of the book was that in the past a portal had opened up to another world and an alien race tried to invade, they were beaten back and the portal was shut.   From what I remember as the series progresses another portal opens up and a war starts with said alien race.  At one point in the series one of the main characters ends up going through the portal and ends up as a slave to an alien race. Where he was enslaved was akin to a plantation in a swamp (I believe).   There is also a very vague memory of female assassin like character in a castle on an peninsula. Full disclosure, that detail may be from a different series/not very helpful.


I have a application made in PHP, on this application I have the option to translate the page with some languages, but if I try to translate to Spanish the characters with accent marks, shows a question mark symbol (�) like: acci�n. To generate the transalation files, i'm using the following command: msgfmt messages.po -o messages.mo  On my file .po, with the following structure from top to bottom: msgid "Yes" msgstr "Si"  On twig: {% trans "Yes" %}  My mysql is set to UTF-8(but in this case I'm not using info from the database) , all my .php files are set with UTF-8 encoding, my html pages too. I don't why this happen? Could it be nginx configuration?


Is a Spell-Refueling Ring useless for a Warlock once reaching level 7?

My Warlock just got a ring with the Artificer Infusion "Spell-Refueling Ring", this infusion states:  While wearing this ring, the creature can recover one expended spell slot as an action. The recovered slot can be of 3rd level or lower. Once used, the ring can't be used again until the next dawn.  However, I am a Warlock which means that at 7th level, I literally do not have any 3rd level or lower spell slots. Does the ring thus become useless at this point and I should just give it to another party member?


Problem with english number in xepersian package

I'm writing a document using xepersian package to write Kurdish in Latex.Every thing work perfect but the only problem is when I want number in every place in my latex file to be like ( 123456789). but whatever I do it will change it to (١٢٣٤٥٦٧٨٩). By the way I have been used \DefaultMathsDigits command and its work only inside math but, I want to also work inside my kurdish text.  \documentclass{article} \usepackage{xepersian} \settextfont[Script=Arabic,Scale=1.2,Mapping=arabicdigits]{Unikurd Nali} \setlatintextfont[Scale]{Courier} \setdigitfont{Arial} \DefaultMathsDigits \begin{document}  گه‌ر ئه‌مه به‌كوردی بنووسم 123445 ئه‌وا ده‌یگۆرێت ب١٢٣٤٥. \end{document}   Note:- It look like there is a command (\lr ) that is solve this problem, but I think this is not practical, since in Kurdish we are using English number but arabic-like alphabet. I wonder if there should be better solution to this?


When hovering on users avatars, a popup window comes up and get more info about user.  Which users can award this hovering popup ?  How does it work ?  Like so :   After mouse hover :


How can I immediately detect when new files added to a folder within a  script? I would like the script to process files as soon as they are created in the folder. Are there any methods aside from scheduling a  job that checks for new files each minute or so?


What is the expected value of the maximum of 500 IID random variables   with uniform distribution between 0 and 1?   I'm not quite sure of the technique to go about solving something like this. Could anyone point me the right direction?  Thanks


I am reading javafx documentation, and didn't get what this definition means:  ObservableArray<T extends ObservableArray<T>>   I also read a very similar question about SomeClass<T extends Comparable<T>> () but in this case I got the idea because it is not a cyclical definition. Also read this question  that is a kind of "two-step" cyclic generics, but I didn't get the meaning as well. What this pattern A<B extends A<B>> is supposed to mean?  Thanks for your time.


I've got a 500gb and a 31gb disks in my laptop. 31gb contains Ubuntu but I need access to the 500gb (I don't know its label or volume). How do I do it?


Ubuntu 20.04 LTS and RTL8125 on MSI MAG B550 tomahawk

I have installed Kubuntu 20.04 on my new PC based on MSI MAG B550 tomahawk motherboard. The motherboard has two Ethernet ports: one is gigabit and another is 2.5 gigabit. Gigabit port works, but 2.5 gigabit one not working. Here's the output of sudo lshw -class network   *-network                     description: Ethernet interface    product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:28:00.0    logical name: enp40s0    version: 15    serial: 2c:f0:5d:3e:a3:04    size: 1Gbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.115 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s    resources: irq:37 ioport:e000(size=256) memory:fc604000-fc604fff memory:fc600000-fc603fff    *-network UNCLAIMED    description: Ethernet controller    product: RTL8125 2.5GbE Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:2a:00.0    version: 04    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd cap_list    configuration: latency=0    resources: ioport:d000(size=256) memory:fc500000-fc50ffff memory:fc510000-fc513fff  The system is running 5.4.0-42-generic kernel. I have tried to install r8168-dkms package but got the same results as listed above. Windows 10 successfully runs both Ethernet adapters. Any ideas?


How can I restore default keyboard shortcuts?

I have customized some of the shortcuts in System ▸ Preferences ▸ Keyboard Shortcuts.  How can I restore individual shortcuts to their default settings? I do not want to reset all of the shortcuts, just a few of my choice.


Let's Encrypt: Is there a workaround for the 2021 SSL "cutoff" for pre-7.1.1 Android devices?

In January 2021 all devices with Android prior to 7.1.1 will not be able to connect to HTTPS servers using Let's Encrypt certificate () Is there any workaround that's system-wide (i.e. all apps, not just a single app, like using Firefox) for the SSL certificate expiration on Jan 11th 2021? Assume that one has root access to their device, and that upgrading to a newer device is not an option.


It's now summer around here, with temperatures ranging from 20C to 30C in the summer. Occasionally, I have a situation where I can carry my laptop indoors, or just leave it in the car for a few hours.  My question is: will it cause any sort of damage if I leave it in the car for several hours? I usually bring it indoors just in-case, but I thought I'd ask. Note that the laptop is always off at this time.


ibdata1 grows big again after using innodb_file_per_table and having shrunk it

After having set innodb_file_per_table=1, dumping and dropping all db's, deleting ibdata1, and restarting mysql ... My ibdata1 file is small at last...  However, directly after reading in my dump, and seeing that all tables now all have their own big ibd files (approx 15GB), but still the ibdata1 is over 2.6 GB again...  The way I dump my data is with:  mysqldump --tab="D:\Mysql Databases\dumps\dump\%%a" --opt --single-transaction --no-autocommit -u root -p   This dumps to .sql (DDL / table structures) and .txt (actual data) files. These files I can use to recover with with:  create database myDb; use myDb; SET autocommit=0; SET unique_checks=0; SET foreign_key_checks=0; SOURCE *.sql; -- for each table COMMIT; SET autocommit=0; LOAD DATA INFILE '*.txt'; -- for each table COMMIT; SET autocommit=1; SET foreign_key_checks=1; SET unique_checks=1;   Why is the ibdata1 file growing again after enabling innodb_file_per_table and having succesfully shrunk ibdata1? And is there a way now to reclaim again this data, seen as all ibd data is already present per table?  Can I for example copy the small ibdata1 after recreating the database with the *.sql files, and placing back that ibdata1 file after reading in the data from the *.txt files?  Here are the non-default items in my.ini:  sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" max_connections=151 tmp_table_size=256M thread_cache_size=20 myisam_max_sort_file_size=1G myisam_sort_buffer_size=32M key_buffer_size=64M innodb_log_buffer_size=8M innodb_buffer_pool_size=6G innodb_log_file_size=1G innodb_thread_concurrency=16 innodb_open_files=1000 join_buffer_size=2M max_allowed_packet=16M group_concat_max_len = 10M bulk_insert_buffer_size=512M collation-server = utf8_unicode_ci


Calculating residue of pole of order $2$

Is there a good way to compute the residue of $f(z)=\dfrac{1+z}{1-\sin z}$ at $z=\pi/2$, which is a pole of order $2$?  Using the residue calculation formula yields  $$\text{Res}_{z=\pi/2}f(z)=\lim_{z\rightarrow\pi/2}\dfrac{d}{dz}\left(\left(z-\dfrac\pi2\right)^2f(z)\right)$$  The derivative is quite ugly, and calculating the limit requires L'Hospital probably twice (or more). The calculation is just too much. Is there a better way?


What is the function of the RNA primer in DNA replication?

During DNA replication, RNA primase puts an RNA primer in the lagging strand. What is the function of this RNA primer? Why can't the enzymes put DNA fragments directly?


What are limits on the trigger of a readied action?

I have a player who likes to use a readied action as follows: “If a hostile creature appears I Eldritch Blast it”.  To me, this is overreaching, since a character can’t be aware and targeting 360 degrees, any creature, but only if it’s “hostile”, etc..  Another example, in a room with multiple doors, east, west, south, says “I attack anything entering the room.” But, can they cover all three at once?  What are good limitations to put on the trigger of a easier action?


Why didn't Tony control the Hulkbuster armor remotely?

In Iron Man 3, we saw that Tony was able to control Mark 42 armor remotely.  Talking about the Hulkbuster armor used in Avengers: Age of Ultron, it was very dangerous because Hulk's unpredictable rage could rip it apart any time.  Why didn't Iron Man simply control the Hulkbuster armor remotely?


I have a file that contains any of the following number format  12.456.7890 12-456-7890     123.456.7890 (123)456.7890 (123).456.7890 123-456-7890 (123)-456-7890 (123)456-7890   Is it possible to use regex substitution so that the final output number will always be on a format (123)456-7890 or (12)456-7890


I download video files from a faith-based website that contain subtitle tracks that I can extract without much trouble. But in some of the videos, there is no subtitle track therefore I tend to transcribe the file manually. On occasion, I can actually play the file through my speakers and using Google Docs transcribe the audio to text. My problem comes in when some of the files are an hour in length and the time that I need to go back and check for any errors. I have tried using the transcribe feature via Office365 in Microsoft Word which works...sometimes. I have looked online for other speech-to-text websites but they are either expensive or the trial is not long enough to transcribe my files. Is there a program or other solution (preferably free or low cost) that can accept an MP3 file and convert the audio to text? Please note that I am not looking for a transcription program or service.


Two finger scrolling on asus Zenbook ux303ln

After installing ubuntu on this machine I cannot two-finger/side scroll is there a way of simply mending this? I have already tried the settings.


If I click with the middle mouse button on Chrome in the taskbar, it opens a new window. That's the first part of what I want (a new window with its own set of tabs), but the caching is the same as the other window.  Is there any way to open multiple instances of Chrome that don't share caching or cookies? I can do this through Incognito mode but that has various limitations that make it unacceptable.  Why would I want to do this? Different sets of accounts for different activities (eg: business1, business2, personal etc). I don't want to use profiles either, rather I'd prefer it be possible to open multiple instances of Chrome that are separate from one another entirely.  Any ideas?


Why is the wizard world so clueless about Muggles if so many of them are related to Muggles?

Ron says that     Most wizards these days are half-blood anyway. If we hadn’t married Muggles we'd've died out.   Sirius says that "there are hardly any" pure-bloods left.  However, the Wizard world still seems very clueless about Muggles. Both the Head of the Misuse of Muggle Artifacts Office and the Muggle Studies teacher have a naive view of Muggles, to say the least, and they presumably know far more than the average wizard.  Since most wizards have close relationships with at least one Muggle, why are they so ignorant about Muggle culture and customs as a whole?


How were gravitational waves discovered?

It was announced today that .  The article gives the following explanation of the experiment:       When a gravitational wave passes LIGO, the tunnels deform slightly and the distance travelled by each beam changes so that they no longer cancel out.   I assume this "deformation" is space dilation, but does it also not cause time dilation? How do the effects combine to push the lasers out of phase? And why did it take until now to directly measure them?


A Particular Two-Variable System in a Group

Suppose $a$ and $b$ are elements of a group $G$. If $a^{-1}b^{2}a=b^{3}$ and $b^{-1}a^{2}b=a^{3}$, prove $a=e=b$.   I've been trying to prove but still inconclusive. Please prove to me.  Thanks very much for proof.


Derivation of the Partial Derangement (Rencontres numbers) formula

I'm looking for the method by which the partial derangement formula $D_{n,k}$ was derived. I can determine the values for small values of N empirically, but how the general case formula arose still alludes me.  Any links/books or an explanation will be appreciated.  The formula is:  $D_{n,k} = {n \choose k}!(n-k)$  Links:


I have Ubuntu 14.04. I am trying to install the latest version of R (3.3.2) via apt-get, but for some reason, it keeps installing an older version (3.0.2). This is, anytime I type sudo apt-get install r-base, it gets me R 3.0.2. This problem has persisted for a while. I was able to procrastinate finding a real solution by downloading the version of R that I wanted and installing it via   ./configure make make install   However, now that I want to upgrade my R, it is a good time to figure out why apt-get is not working.  I tried updating apt-get typing:  sudo apt-get upgrade sudo apt-get update   But it still insists in installing R 3.0.2.


Is it possible to use meta+arrowkey+arrowkey as a shortcut?


Can a wizard use an acquired spellbook, or must they first copy its contents into their own spellbook?

The rules for copying spells from other spellbooks are rather clear: you need time and money. However, in case you acquire a new spellbook, things are more fogged.  Can a wizard use two spellbooks at the same time? If so, you only need time to understand it and can forego the costs, right? Otherwise, what happens if you lose your spellbook? Or, must you use just ONE spellbook, possibly attuning to it?


How to programmatically create a title for a new node?

I want the title field of each new node of the Agenda content type to be constructed automatically from a date field in that same node.  I have variously tried setting the #default_value and #value on the $form array in hook_form_FORM_ID_alter() but without effect.  How can I achieve this?


How to disable USB storage device support

I want to disable a particular USB storage device (a sandisk flash drive). I read somewhere that you can use the .config file. How do i use it to disable that?


Locking Wine applications in the launcher is not permanent

I happily run Word 2007 via Wine on my Ubuntu 12.04 desktop. I prefer having it sit in the launcher for easy access, however, every time I start a new session (that is, logging in or booting up), the Word launcher has disappeared.  Could this be a bug or am I doing something wrong?


Where is the icon used in this dialogue box?

Where on my disk can I find the icon used in this dialogue box in OS X？    It may be Security.icns in OS X 10.7.3    I cannot find it in:   /System/Library/CoreServices/CoreTypes/Contents/Resources There are only LockedIcon.icns and UnlockedIcon.icns in this folder who looks like the icon in the dialogue box,the size of the icon in the dialogue box is 128x128px, but LockedIcon.icns and UnlockedIcon.icns is 32x32px.   lockedIcon.icns    So they are not the same icon.   /System/Library/CoreServices/Finder.app/Contents/Resources/ /System/Library/CoreServices/Problem Reporter.app/Contents/Resources /Applications/System Preferences.app/Contents/Resources /Applications/Utilities/Keychain Access.app/Contents/Resources /System/Library/CoreServices/Certificate Assistant.app/Contents/Resources/


deleting files older than 30 days with a .bat fle

I am tring to write a .bat file to delete files older then 30 days in a specific folder I have tried several diifrent format with no luck.  the closest one  i got is  del C:\temp\temp d -30   edit..... ok so i got forfilles /p c:\temp\temp /d  how can I make it use the date when its ran instead of always having to go in and change it evrytime I run it and get them to delete them now can any one help me out thanks


I got a GIS Data-set for swedish cities. The problem is that they have strange names such as:   TrÃ¤det  JÃ¤la  MjÃ¶nÃ¤s   Ã„lmhult  Did someone have the samoe problems? I think "Ã¶" for instance mean "ö" for example - but I am not sure if there is a system behind that.


Solution to the linear SDE $dX_t = \alpha X_t \, dt + \sqrt{2} dB_t$ using Itô calculus

So if I have the following generator and an initial condition:  $$A(f)(x) = \alpha x f'(x) + f''(x) \\ X_0 = x \in \mathbb{R}^+$$  I've been asked to find $X_t$ and assume that $\alpha$ is a constant.  From the definition of the infinitesimal generator, I get that:  $$dX_t = \alpha X_t dt + \sqrt{2} dB_t$$  How do I go about setting up an application of Ito's Lemma to this diffusion in order to solve for $X_t$?  Separation of variables doesn't seem to apply in this situation.


Adapt text based on relative position of floats (e.g. figure or table)

I just thought of an interesting feature and was wondering if it is possible to do so in TeX or any of its derivatives. I'll explain it first.  Let's say we have the next simple LaTeX file. Imagine there is much more text.  \documentclass{article} \usepackage{graphicx}  \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. In Figure \ref{fig:picture} you can see my picture. It's very interesting!  \begin{figure}[b] \includegraphics{my-picture} \label{fig:picture} \end{figure}  As you can see in the picture above, I like interesting pictures. \end{document}   Just a regular document. But what if, due to there being much more text, that last sentence is displayed above the image in the resulting PS/PDF file? The "above" wouldn't fit anymore. It should be below.  Is there any way to adapt the source text so that "above" fits? I was thinking of some kind of special \ref which adapts the text automatically, based on the final position of the image, relative to the text. For example,  As you can see in the picture \ref[adapt]{fig:picture}{above}{below}, I like interesting pictures.   If the final position of the referenced picture is above the \ref, it would say "above". If it is below the relevant text, it would say "below".  I already searched via Google but couldn't find anything about it. Does something like this exist? If not, is it easy to implement? I feel like it could be a nice package.


How can I show $f(x)$ is zero if $\int_a^b f(x)g(x) dx=0$ for each continuous $g$?

I was thinking doing it by contradiction, but feel there are too many variables to take into account. Any help?


Whats correct "an quiz icon" or "a quiz icon"?

I'm always struggling to understand the rule behind "a" and "an". Can someone point me to a general rule or explain me when to use what? How do I correctly write about an icon is it "an quiz icon" or "a quiz icon"?


I have a Rexex Problem I cannot solve: I would like to analyze lines like the following five examples and put them into groups:  [0xA100] Test Name #1: TestValue #1 [0xB163] Test Name #20: TestValue #2 [0xC162] Test Name #330: TestValue #3 [0xD111] Test Name #400: TestValue #4 [0xE113] Test Name #5000: TestValue #5: xyz   The first group shall contain everything between [0x and ]  The second group shall contain everything until the first appearance of a :   The third group shall contain everything after the first appearance of a :  I solved this with the following Regex:  (\[0x.*\])(.*):(.*)   Unfortunately this does only work, if I have only double dot in my string. With two or more double dots, the Regex always finds the last occurence.  How can I force to always take the first appearance of the double dot?


I had created an abbreviation (abv) shortcut using the newcommand. However the command did not render as expected. Specifically, there is a gap between the abv and punctuation marks (See line 1 of the attached Figure). To address this, I manually add spacing between the last two curly bracket. While this did solved the aforementioned problem, but it removed spacing between the abv and text, especially in the middle of sentence (See line 2 of the attached Figure).  May I know how to solve this issue.  Thanks in advance  Updated: Solved using   \usepackage{xspace}  \newcommand{\STTbSpace}{STT\textsubscript{b}\xspace}   &&&&&&&&&&&&&&&&&&&&&&&   \documentclass[a4paper,12pt]{report}    \newcommand{\STTbSpace}{STT\textsubscript{b} } % Spacing between the last two curly bracket   \newcommand{\STTbNoSpace}{STT\textsubscript{b}} % No spacing between the last two curly bracket  \newcommand{\Fm}{F\textsubscript{1}-m }   \begin{document}       When the \STTbSpace in the mid of sentence versus at the end \STTbSpace.       When the \STTbNoSpace in the mid of sentence versus at the end \STTbNoSpace.       Similarly \Fm.  \end{document}


On the irreducibility of the polynomial $x^{n}−\alpha$

$\mathbb{k}$ is a field. $\alpha \in \mathbb{k}$. Prove that if    polynomial $f (x)=x^{n} - 1$ has all the roots over $\mathbb{k}$, then   $g(x) = x^{n} - \alpha$ is either irreducible over $\mathbb{k}$ or    $\exists d>1, d|n$, that $x^{d} - \alpha$ has at least one root over    $\mathbb{k}$   So there exist $n$ elements of $\mathbb{k}$ of order $n$. And they are closed under multiplication $(ab)^{n} = a^{n}b^{n} = 1$. We have $1^{n} = 1$. And $(a^{-1})^{n} = (a^{n})^{-1} = 1$. So it's a group under multiplication. I don't know if it helps in solving this problem, but that's all that i've figured out. What i should do with $x^{n} - \alpha$?


Feed is buggy when there's no activity on Android app?

I have subscribed to many sites, but have no feed. I checked online, and I gathered this is not how it should normally look.    Buggy layout with empty feed    Fixed after having activity (e.g. reputation change, badge, etc)   Phone: HTC Desire 526G+ Android: 4.4.2 SE app: 1.0.77


Regression with multiple dependent variables?

Is it possible to have a (multiple) regression equation with two or more dependent variables?  Sure, you could run two separate regression equations, one for each DV, but that doesn't seem like it would capture any relationship between the two DVs?


problems relative to a bad java web application project structure

I have a directory structure for a web java application + standalone application like this: src/logic/view/desktop src/logic/view/web and src/logic/bean,control etc... In src/logic/view/web i have my web application with WEB_INF, META_INF, mypage.jsp etc... mypage.jsp  <%@ page language="java" contentType="text/html; charset=ISO-8859-1"     pageEncoding="ISO-8859-1"%>    <!-- dichiarazione e instanziazione di un BeanAddReport !--> <jsp:useBean id="addReportBean" scope="request" class="logic.bean.AddReportBean"/>  <!DOCTYPE html> <html lang="en"> <head>     <meta charset="ISO-8859-1">     <title>Add Report</title>          <link rel="stylesheet" href="css/mycss.css">  </head> <body>          <img class="backImg" alt="" src="<%=request.getContextPath()%>/img/backgroundImage2.jpg" width="1366">          </body> </html>   and the bean class package logic.bean;  import logic.controlgrafico.AddReportGuiControl;  public class AddReportBean {      private String queueLen;     private boolean isLast;     private Object gui;     private String attractionName;          public void setQueueLen(String s) {         queueLen = s;     }          public void setIsLast(boolean b) {         isLast = b;     }          public void setGui(Object gui) {         this.gui = gui;     }          public void setAttraction(String a) {         attractionName = a;     }          public String getAttraction() {         return attractionName;     }          public String getQueueLen() {         return queueLen;     }          public boolean getIsLast() {         return isLast;     }          public Object getGui() {         return gui;     } }   Now my problem is: when I start the tomcat server I receive a org.apache.jasper.JasperException: /addReport.jsp (line: [5], column: [0]) The value for the useBean class attribute [logic.bean.AddReportBean] is invalid.  I think the problem is the project structure and I would tell if there are some configurations, for example in web.xml, that can resolve my problem. I try to run another dummy project with a different directory structure: DummyProject/src/bean.java DummyProject/web/index.jsp where the index.jsp use "useBean" in the same way and all works fine. Suggest me more detail of how the target class works in useBean tag. Ty so much Edit: The difference between the two projects is in C:\Users\simon\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps The project where all works fine had the path WEB-INF/classes/logic/bean/AddReportBean.class Why the other project doesn't have this path?