What is the upper limit on the number of open sockets I can have in Windows Server 2003

I'm building a chat server with .NET. I have tried opening about 2000 client connections and my Linksys WRT54GL router (with tomato firmware) drops dead each time. The same thing happens when I have several connections open on my Azureus bit-torrent client.  I have three questions:   Is there a limit on the number of open sockets I can have in Windows Server 2003? Is the Linksys router the problem? If so is there better hardware recommended? Is there a way to possibly share sockets so that I can handle more open client connections with fewer resources?


Radius of convergence of a power series with $a_n$ convergent

Let $\{a_n:n \geq 1\}$ be a sequence of real numbers such that $\sum_{n=1}^{\infty} a_n$ is convergent and $\sum_{n=1}^{\infty} |a_n|$ is divergent. Let $R$ be the radius of convergence of the power series $\sum_{n=1}^{\infty} a_n x^n$. Then what is $R$ ?  I dont know how to start, if the series is given we could use Radius of convergence formula, but how to solve this question?Pls help


How can I make the default size of new objects 1 x 1?

When adding a new object, I would like it to come in at a smaller size (scale). I have changed my scene units to Inches and a new mesh object is 2 ft x 2 ft, or 24 inches x 24 inches. It would be convenient to control the size of all new objects to something more manageable like 2 inch x 2 inch.


How do I render a more HD picture in blender internal 2.79

Here the image I obtain:    Here are rendering options:


Automatically reduce (remove some) nodes to smooth an SVG

I have an SVG image that consists of thousands of nodes. How can I use Inkscape to automatically reduce the number of nodes while keeping the overall shape?  An example image is , with a small number of high-resolution paths. The whole document consists of tens of thousands of nodes.  This looks great at high resolution, but at lower resolution the overall image can be represented with far fewer nodes.  What can I do in Inkscape to say “Reduce this path to about 10% of the existing nodes, removing only those which are fine-detail deviations from the overall path” without me needing to choose any of those nodes manually? Can Inkscape discriminate based on that criterion?  If not Inkscape, is there another simple tool I can use to specify a reduction in vector resolution by reducing the number of nodes?


In the movie Star Trek: First Contact, could the Borg have been beamed off the Enterprise?

In Star Trek: First Contact, once the Enterprise's crew found out that the Borg were on board, could they have beamed the Borg off the Enterprise out into outer space, or do the Borg have the capability to block transporter beams?


Move unity launcher to bottom of the screen

I have Ubuntu 13.04 DESKTOP version and for some odd reason I'm told that the Unity launcher cannot be moved to the bottom of the screen because of several reasons:  1. Canonical wants it there so it fits with their overall design goals, namely when it comes to touchscreen devices and netbooks. This in my mind totally ignores the fact that most Ubuntu users are DESKTOP users. No matter what Canonicals long term goal is, it surely mustn't be at the expense of needs of their core user base.  2. Most monitors are widescreen, the launcher is more compact where it is. This is not only taking away the users choice, but is also a wrong assessment. Widescreen monitors can sometimes be rotated on a pivot, giving it a portrait aspect. By displaying the Unity launcher on the left side it takes up a lot of space. Many desktop users have multiple monitors, and having the launcher on the left side of each monitor is very awkward. Also, many websites are catered to fit on a half 1920 display, so you can have two browser windows open side-by-side with all content visible. The placement of the Unity launcher takes away the horizontal space meaning there's less room for each browser window, and you'll see the right side of the web pages being occluded.  Any suggestion to simply hide the Unity launcher, or "Canonical knows best" or "get used to it" are unwelcome and totally ignores the above points.  Linux is about choice. Canonical's stubbornness with the Unity launcher placement is inconsistent with what Linux is about.


Suppose you're at the center of a circular field of radius 100 ft and there is a guard dog on the perimeter of the field. If the guard dog runs 4 times faster than you but cannot leave the perimeter, how can you avoid the guard dog and escape from the field?  This is an interesting problem and you may want to solve it first if you haven't already seen the solution.  Two questions:  Is there a speed multiple at which the guard dog will always be able to catch you and if so what is the multiple?   Given that the dog runs m times faster than you, what is the shortest path to escape from the field?


Football: final score when one team gets 5 players sent off?

What becomes the final score if 5 players gets sent off from one team?  In the video game FIFA the opposing team wins with 3-0. However, if one team leads by more, say 6-0, will this be the final score? Would be unfair otherwise


Is $O_{C_p}$ and ${O_{C_p}}^\times$ a profinite group or compact?

I have known for a finite extension $E\supseteq Q_p$, the ring of integers $O_E$ is a profinite group as an additive group. And $O_E^\times$ is also profinite as a multiplicative group.  Questions: For the p-adic complex field $C_p=\widehat{\overline{Q_p}}$, is $O_{C_p}$ a profinite group or compact? And what about ${O_{C_p}}^\times$ ?  Thanks in advance!


can anybody help me to draw this minimal example of an xy axis? I couldn't find anything similar on the forum.  The axis should be black but the grid behind it a shade o gray, dashed. It would be great if the axis were a little bit thicker than the grid also.


I have done a clean Natty install having bought a new SSD and find that in applications (ahem) such as Minecraft, and in the default web browser Firefox, the mouse scrolls too far .  So for example in Minecraft the mouse wheel jumps multiple items rather than one with each mouse wheel roll. With Firefox the page leaps quite a distance with each mouse wheel roll.  Any ideas where I might adjust this?


Is it valid to write checks without spelling out the amount?

I've been writing checks this way for the last ~15 years or so:    Namely, the amount field is written using numbers like     1,500 and 00/100    rather than the tedious, painful spelling out of      One Thousand Five Hundred and 00/100   99 times out of 100, this works fine. But occasionally you'll get certain rare human tellers who simply refuse to believe this is a valid check and you have to fight over it. I still figure the time I've saved by not writing out all those ridiculous numbers-as-words is still worth it, overall, but it's definitely irritating.  So: who's right? Is a check with the amount written in numbers valid ... or not?


What's the rule for a natural 20 on a Perception check?

I was just watching  while I was preparing some content for tomorrow's session. If you click the link you should be at a specific time in the video. If you watch those couple of seconds the DM says that a natural 20 on perception makes the character learn everything they can about the thing they were trying to figure out.  Recently . From the top answer, I understood that only in Combat does a natural 20 mean no-matter-what success. But after hearing what the DM in the video said, I got a little confused. Does Perception have some kind of a special rule? Is it considered an ability check every time you roll for Perception?  I know that this is a very silly question, but I am genuinely confused. Since it is my first time DMing, I want to make sure I know the most basic rules by heart.


Apex rest API with get and post in the same time

I have a scenario where I need to do a httpPost to save a value from the request parameter and then return some other fields for the same object fields using httpget.   So, my parameter would be something like this:   String opptyId = RestContext.request.params.get('opportunityId'); String nameOfComp = RestContext.request.params.get('newname');    Now, I need to update this field nameOfComp from the request param based on opportunityId from the req param.  Once the update is done, I need to get some more data from the same object including the nameOfComp which i have inserted.   Can this be done within one service and single URL mapping?


Added my first package with API Integration Component. How to test an API call (SOAP or REST)?

I am a developer but I admit I am confused by going through the .   Inside our Marketing Cloud's installed packages, I created a new package and added an API Integration component to it. I then chose the integration type of Server-to-Server. I got the following endpoints and information about my integration:   The first thing I would like to test is to update a field on the All Subscribers list for a specific subscriber.  Could somebody guide me through how do I prepare the request and how to do a very basic test?


Why do some people with a lot of reputation have a diamond and 'moderator' next to their name. If it is to do with the amount of reputation then how much reputation do you need?


I'm facing the wireless device problem. After installation the Ubuntu 16.04 brand new. I can't use wireless.  This is what I tried.  Please help me.


Can't find USB wireless adapter on 16.04

I just installed Ubuntu 16.04 as dual boot on my Dell Windows machine.  I don't have ethernet service, so I bought a Netgear USB adapter, which works in Windows, but not in Ubuntu.  lsusb does indeed show the adapter card as expected, Netgear WNA3100(v1).  But ifconfig returns lo and enp1s0 and nothing else, so maybe it needs drivers?  On this forum it was suggested that a solution would be to copy a couple *deb files to my home dir and run:  sudo dpkg -i *deb   which I did and it seemed to run successfully, but still no joy.  I cannot download drivers to this machine, since I cannot access the internet, but if I need to, I can download whatever files to USB and copy them over.  Here is output from lsusb:  Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 0846:9020 NetGear, Inc. WNA3100(v1) Wireless-N 300 [Broadcom BCM43231] Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 004: ID 1058:0820 Western Digital Technologies, Inc. My Passport Ultra (WDBMWV, WDBZFP) Bus 001 Device 003: ID ffff:5678   Bus 001 Device 002: ID 0bda:0184 Realtek Semiconductor Corp. RTS5182 Card Reader Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 006 Device 003: ID 413c:2107 Dell Computer Corp.  Bus 006 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   Here are the two files installed with dpkg  dkms_2.2.0.3-2ubuntu11.3_all.deb bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.1_amd64.deb   And here is the outout of lsusb -t  /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M     |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M     |__ Port 2: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M     |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 480M /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M     |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M     |__ Port 5: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M   So looks like no driver.


adjust length of \leadsto arrow to the text above

I am having really hard time to figure out how to adjust the length of \leadsto arrow in order to match the text above it. The command I am using is      \newcommand{\transitb}[1]{\stackrel{#1}{\leadsto}_{\pi\gamma}}   and here is the output I get:    I found this as an answer:  but I don't want to mess my equation with some tikz stuff.  Is there a simple way to do what I am looking for?  EDIT:  Here is the output I get when I try this    EDIT2  When Trying to use it in beamer within definition block I go the following error:   Missing $ inserted   Any thoughts on what could cause this error.


$\varphi$ is Euler's totient function. My question is:   When/if $\varphi$ is defined at $0$, what is it usually defined as? Is there a "most natural" or more commonly accepted definition of $\varphi(0)$?   This is a soft question, because it's of course a matter of convention.    Here are three possible definitions, with some justification.  Definition 1: $\boldsymbol{\varphi(0) = 2}$. Note that for $n \ge 1$, $\varphi(n) = \left| \left( \mathbb{Z} / n \mathbb{Z} \right)^* \right|$, the number of units mod $n$. Plugging in $n = 0$, we get $$ \varphi(0) = \left| \left( \mathbb{Z} / 0 \mathbb{Z} \right)^* \right| = \left| \left( \mathbb{Z} \right)^* \right| = \left| \{-1, 1\} \right| = 2. $$  Definition 2: $\boldsymbol{\varphi(0) = 0}$. If $a \mid b$, then $\varphi(a) \mid \varphi(b)$. To preserve this property for $b = 0$, we need that $\varphi(a) \mid \varphi(0)$ for all $a$, implying $\varphi(0) = 0$.  WolframAlpha . However, the Wolfram Math World page :     By convention, $\phi(0)=1$, although the Wolfram Language defines EulerPhi[0] equal to 0 for consistency with its FactorInteger[0] command.   which gives us  Definition 3: $\boldsymbol{\varphi(0) = 1}$. Does anyone know the reason for this convention?    More observations   Any choice of $\varphi(0)$ is consistent with the multiplicativity of $\varphi$. $\varphi(mn) = \varphi(m) \varphi(n) \frac{d}{\varphi(d)}$, where $d = \gcd(m,n)$, implies $\varphi(0) = 0$. This supports definition 2. If $\varphi(n) = \sum_{ab = n} a \mu(b)$, then note that when $ab = 0$, $a = 0$ or $b = 0$, and since $\mu(0) = 0$, $a \mu(b) = 0$. So this is $\sum 0 = 0$, again agreeing with definition 2.


Convert a set of bytes into a string in python

I have the following byte array : b'\x80UTI\xfc\x7f\x00\x00'  I want to convert it to : '\x80UTI\xfc\x7f\x00\x00'  How can i do that in python ?


Ubuntu 18.10: Troubles with NVIDIA Drivers "Nvidia X Server (Control Panel) displays an empty window"

I've just switched from Mint to try Ubuntu and had a lot of problems with installing it. I managed to launch Ubuntu in tty and change my grub adding   nomodeset    to the grub config file...  Now i'm having problems with my desktop animations (there are no animations), screen brightness (iam unable to adjust it) and Nvidia Control Panel (its empty window with no info)  --> . So, I don't know what to do...  System info:  Asus GL753VD Ubuntu 18.10 Intel® Core™ i7-7700HQ CPU @ 2.80GHz × 8  Graphics: llvmpipe (LLVM 7.0, 256 bits) Graphic Card: GP107M [GeForce GTX 1050 Ti Mobile] Im using Nvidia 415 Driver.  Thank you!  p.s. it is a little bit strange that Mint is based on Ubuntu and i had literally no problems with it (except its Gui)    lspci -k | grep -EA3 'VGA|3D|Display'  00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)     Subsystem: ASUSTeK Computer Inc. Device 1590     Kernel modules: i915 00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model -- 01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)     Subsystem: ASUSTeK Computer Inc. GP107M [GeForce GTX 1050 Ti Mobile]     Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia 02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)


How to see all my SE unanswered questions

I want to be able to see all questions that I have not yet accepted as answers on all SE sites that I use (20 currently) so that I ensure I keep on top of answers. I don't believe there is any way to do this without going into each site?


How do I deal with directories that have spaces in their names from `find`?

I have this:  #!/bin/bash  for file in `find . -type d` do   echo $file done   If I have just one directory called My Directory, the output is  My Directory   How do I fix this?  The echo $file is just temporary. There will be other code in there operating on the directories.


How can I make sure my Mac has access to files on its own SMB server?

I have a Mac mini that runs a Samba server through the "file sharing" option in settings.  I can create files on it and my clients can access it. However, creating files on the client end causes my Mac not to have access to those files.   There doesn't seem to be a way to change that on the client end. I tried going into properties and unchecking the "read only" option on the file but it gets checked again when I hit "apply." My clients are Android and Windows.


Is the series $\frac{1}{p_n}$ ,where $p_n$ is $n^{th}$ prime number, convergent or divergent?

I assumed $p_n=nlogn$ and evaluated the convergence using cauchy's condensation test and got the series divergent. Is my answer correct?


PHP generated email being flagged by hotmail

I've got a PHP page that sends email from a HTML form. The email sends, but it's being flagged by Hotmail as spam. I've replaced the actual email addresses in the code.  <?php function clean_string($string){   $bad = array("content-type","bcc:","to:","cc:","href");   return str_replace($bad,"",$string); } $name=$_POST['name']; $email=$_POST['email']; $subj=$_POST['subject']; $body=$_POST['body']; $email_subject='Website name - '.$subj; $email_message="
".clean_string($body)."

".$name."
".$email."
"; $headers[] = 'MIME-Version: 1.0'; $headers[] = 'Content-type: text/html; charset=iso-8859-1'; $headers[] = "From:email@email.com"; $headers[] = "Reply-To:".$name."<".$email.">";  $header=implode("\r\n",$headers); if(mail('email@email.com',$email_subject,$email_message,$header)==true){header('location: http://julie-mosaics.dx.am/index.php?page=contact&result=success');} else {header('location: http://julie-mosaics.dx.am/index.php?page=contact&result=fail');} ?>   This is hotmail's error message.  Content analysis details:   (7.1 points, 7.0 required)    pts rule name              description  ---- ---------------------- --------------------------------------------------   0.0 HTML_MESSAGE           BODY: HTML included in message   1.1 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts   0.1 MISSING_MID            Missing Message-Id: header   0.0 FROM_MISSP_DKIM        From misspaced, DKIM dependable   1.4 MISSING_DATE           Missing Date: header   2.5 FREEMAIL_FORGED_REPLYTO Freemail in Reply-To, but not From   2.0 FROM_12LTRDOM          From a 12-letter domain


When the integral of products is the product of integrals.

I'm self-studying and was doing the following integral:  $$I = \int \frac{e^{\frac{1}{x}+\tan^{-1}x}}{x^2+x^4} dx $$  I solved it fine by letting $ u = \frac{1}{x} + \tan^{-1}x$.   My question is about an alternative method I saw in which it seems the product rule was not applied:  $$ I = \int \left(\frac { e^{\frac{1}{x}}} {x^2}\right) \left( \frac{e^{\tan^{-1}x}}{x^2+1}\right) dx $$  $$ = \int \frac {e^{\frac{1}{x}}}{x^2} dx \cdot \int \frac{e^{\tan^{-1}x}}{x^2+1}dx$$  Completing the work following this step leads to the same solution as I originally found.   It is this step that has confused me. I have  and the two statements are equivalent but I do not understand why.  Why are we able to write the integral of products as the product of integrals here, and not apply the product rule?  Thanks in advance.


Regex checking email address allows digits in the top-level domain?

I came across a reg ex for email validation:  ^[^@]+([@]{1})[0-9a-zA-Z\\._-]+([\\.]{1})[a-zA-Z0-9\\._-]+$   This is a pattern which i found in a standard Adobe Day CQ email validation code. I have a problem with the last matching group [a-zA-Z0-9\\._-]+ where it allows multiple occurrences of digits as well which allows me to enter as a valid input someone@else.9. Can somebody please help me understand why do we need a digit value in the last matching group.  Any help is appreciated. Please guide me what else regex can be used to validate a standard day to day email input.


ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04

I have followed this  to install MySQL but after successfully installed MySQL, I could not access database.     ERROR 1698 (28000): Access denied for user 'root'@'localhost'


Interpretation of a combinatorial expression

I came across this expression :   $ \frac {(2n)!} {2^n n!} $   I know that this evaluates to an odd integer. More specifically :  $ \frac {(2n)!} {2^n n!} = (2n -1) \cdot (2n - 3)\cdots 5\cdot3\cdot1$   I want to know where this expression comes in a real-life scenario. For example $\sum_{k=0}^{n}{n\choose k}$ represents the number of ways to choose a subset from a set of cardinality $n$.


I'm trying to use the Marketing Cloud FuelSDK with Python to retrieve data extensions. However, I'm getting this error regarding scopes, no matter what I seem to do. I created a server-to-server API app in Marketing Cloud and set the scope for Data Extension to Read. Can someone tell me what I'm doing wrong?  Exception: Unable to validate App Keys(ClientID/ClientSecret) provided: {'error': 'scope_mismatch', 'error_description': "Your integration doesn't include this scope. Update the scopes of your integration in Marketing Cloud Installed Packages.", 'error_uri': 'https://developer.salesforce.com/docs'}  My Python code: # Add a require statement to reference the Fuel SDK's functionality: import FuelSDK  # Next, create an instance of the ET_Client class: myClient = FuelSDK.ET_Client(   False, True,   {     'clientid': 'xxx',     'clientsecret': 'xxx',     'defaultwsdl': 'https://webservice.exacttarget.com/etframework.wsdl',     'baseapiurl': 'https://xxx.rest.marketingcloudapis.com/',     'authenticationurl': 'https://xxx.auth.marketingcloudapis.com/',     'soapendpoint': 'https://xxx.soap.marketingcloudapis.com/',     'wsdl_file_local_loc': r'/tmp/ExactTargetWSDL.s6.xml',     "scope": "data_extensions_read data_extensions_write"   })  # Get all of the DataExtensions in an Account print('>>> Get all of the DataExtensions in an Account') de = FuelSDK.ET_DataExtension() de.auth_stub = myClient de.props = ["CustomerKey", "Name"] getResponse = de.get() print('Retrieve Status: ' + str(getResponse.status)) print('Code: ' + str(getResponse.code)) print('Message: ' + str(getResponse.message)) print('MoreResults: ' + str(getResponse.more_results)) print('RequestID: ' + str(getResponse.request_id)) print('Results Length: ' + str(len(getResponse.results))) #print 'Results: ' + str(getResponse.results)


Assigning command output to variable gives strange results

My script looks like this:  #!/bin/sh PROJECT_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)  COMMANDS_CODE=$(php $PROJECT_DIR/bin/console generate:code)  echo $COMMANDS_CODE   The output has all newlines stripped (which doesn't happen if I call the script directly) and contains some strange paths at the beginning like this:  /bin /boot /cdrom /dev /etc /home  /initrd.img /lib /lib64 /lost+found  /media /mnt /opt /proc /root /sbin  /selinux /srv /sys /tmp /usr /var /vmlinuz  ... here starts the actual output but without any newlines ...   (The above is actualy one long string which is echoed I just added some newlines for readability)  What's happening there?  If I do a   php bin/console generate:code   in my project dir in my bash shell everything works fine.


A simple pendulum suspended from the ceiling of a stationary lift has period $T_0$. When the lift descends at steady speed, the period is $T_1$. When the lift descends with constant downward acceleration, the period is $T_2$. Explain why $T_0 = T_1 < T_2$.  I know that for small angles of oscillations, $T \approx 2\pi\sqrt\frac{l}{g}$ where $l$ is the length of the pendulum. For the first two cases, since $\sum F = 0$, the value of $g$ is apparently the same. However, I am unable to explain why the period is largest for $T_2$. If $g$ is the same for all cases, shouldn't their periods be the same?


Let $A=\{1,...,n\}.$ Show that there is a bijection of $P(A)$ with the cartesian product $X^n$ where $X$ is the two element set $X=\{0,1\}$

Wouldn't these two sets have the same cardinality?  If so, I am unsure of how to prove that two sets with the same cardinality have a bijective correspondence.


Should Kelvin symbol have a preceding space?

I'm working on a lighting product catalogue with products from many overseas suppliers. In regards to colour temperature, some of them put a space character before Kelvin symbol, some not:     4000K, 5600K     or       4000 K, 5600 K   Is there any official recommendation here?  Edit: It was suggested that this question is a duplicate of similar question related to computer symbols, suggesting it depends on style, and I happily agreed and considered that question as answered. However just now I've just found that there actually is an official recommendation related to SI unit symbols. Which makes the situation different than with units of computer storage.


I need to allow several clients to affect the volume of a central server.  Can I change the audio master volume via command line in Ubuntu 12.04?


How do I arrange selected vertices into a circular formation quickly?  The other answers does not have the same title as my question. My question is direct and simple for younger beginner to search for results.


Transpose N rows with different columns into single column


Short story about fried dinosaur being delicious

This was an odd one, I read a while ago in a large collection.  The basic plot was that some time in the past the ability to open a portal through time was created. But the only thing that came of it was that a couple of Velociraptors made it through to the modern day. They were captured and eventually started breeding, and at some point people were like "Lets fry them up KFC style", and it was the most delicious food ever.  I think the whole story was written as obituary, or some other reflection on the recently deceased. Something like "I looked out at the tomb of my father: inventor, philanthropists and hero. Perhaps his greatest discovery was the Velociraptor, the most delectable fried creature ever to exist."  I think it was written by someone quite notable, Asimov, Silverberg, or someone else of that era. But I could be wrong.


Fallout shelter dwellers unhappy because on non-existant dead body

The dwellers in my water treatement plant were all on 20% happiess - at first it was one person then everyone else I put there kept going lower. Then I zoom in and theyre saying things like "working next to a corpse isn't helping with production" or "it smells like something died in here... Oh". The problem is, there isn't any dead radroach etc. in that room and tapping blindly isn't doing anything. I've closed the app and my iPad multiple times but nothing works.


Is there a way to switch back into a werewolf from being a vampire without DLCs? And is there a way to be both (also without a DLC) in Skyrim? I am playing on the Xbox 360.


Short Story identification "Please insert card"

I came across this story some 15 years ago, but can not remember the author or the original title (although I was certain it was "Please insert card").  The Story:   A man buys a book named "The Murder of Thomas Brook" (or some other name in the title) A few days later he receives a notice "Please Insert Card (for identification). Payment pending, please pay for your purchase". (each time he receives a message from the computer, it starts with words "Please Insert Card") He doesn't want to pay, because he already paid for it, so he sends an answer demanding to speak with a human being. He again receives automated answer "Please pay, or we will have to take this to court, bla bla bla..." After much conversation the case ends up at the civil court where it is taken by another computer. This entire time the man tries to reach a human being to try and correct the error, but all answers come from a computer. At the court happens another error - the case is wrongly forwarded to criminal court, instead of civil court. As the result, the charge is not for "Pending payment for 'The Murder of Thomas Brook'", but for "Murder of Thomas Brook". At the end the man stands trial for murder and is sentenced to death. Two clerks (or some other two persons) finally realize the error five minutes after the execution.   I have to think about this story each time when I order something from Amazon, but haven't been able to remember the name of the story.


How to apply javascript to html that is added by javascript?

I'm making a sign up system. After user successfully sign up, form->ajax->php, ajax adds html to a premade empty message div.  $("#register_form").submit(function(event) {     var $data = $(this).serialize();     var result = "";      $.ajax({         cache   : false,         type    : "POST",         url     : "php/register.php",         data    : $data,         success : function(response) {               if(response === "OK"){                   result  = "
You have successfully registered!
";                   result +=     "Please check your mailbox for the activation link. It may take a few minutes.
";                   result +=     "Resend Confirmation Email";                   result += "
";                   $("#register_form").slideUp(500);               }               else{                   result = '
' + response + '
';               }                $("#register_response").html(result);               $("#register_response").slideDown(500);         }     });      event.preventDefault(); });   I put the 'resend confirmation email' in there, just an empty link waiting to be clicked on. But it seems the sign up page's javascript (which is the same file the above script is in, I did $("#resend").click(...) ) doesn't apply to it. Where do I put the javascript so that this will work?  Also, if this is not a good way to add html using javascript, what's a good way to achieve this?


Let $H$ be a subgroup of $G$. Let $K = \{x \in G: xax^{-1} \text { iff } a \in H\}.$ Prove $H$ is a subgroup of $K$.    Suppose $a \in H.$ Then $aaa^{-1} = a \in H.$ So, $a \in K.$ Thus, $H \subseteq K.$ Since $H$ is a group, $H$ s a subgroup of $K$. Would that work?


Dual Booting Win 10/Ubuntu separate ssd nvmes

I'm brand new user to Linux/Ubuntu and am trying to install it for the first time. I got the ISO on Win 10 of Ubuntu 18.04 and flash it to usb thumb drive 32 GB.  My issue however is in regards to the actual installation of Ubuntu. I have two nvme drives in my skull canyon nuc one 500 GB (has win 10 on it) and one new 1TB Samsung nvme drive that's completely empty.  What is the best way to go about this installation process? I would like to keep Windows and Linux completely separate, with that being said during the install process how do I go about installing Linux properly on the 1 TB drive? Not sure if I choose boot alongside Windows option during installation or even how to partition the blank 1 TB drive properly.


Why does Loki look "sick" when he first arrives on Earth?

In the Avengers movie, why is Loki sweating and weak when he first arrives on Earth, in the SHIELD base?


Seemingly Simple Integral $\int_0^1\frac{x^2\ln x}{\sqrt{1-x^2}}dx$.

Evaluate $$\int_0^1 f(x) dx$$ where  $$f(x) = \frac{x^2\ln x}{\sqrt{1-x^2}}$$  I started off with the substitution $x=\sin y$, which resulted in the integrand reducing to  $$\sin^2y\cdot \ln (\sin y) dy$$  Then I used the property of definite integrals that  $$\int_a^b f(x) dx = \int_a^b f(a+b-x) dx$$  Then too it wasn't getting simplified. I tried $e^z=\sin x$, but this gave no headway because after a while I reached a complete full-stop. How should I go about this?


Thymine does not present in RNA but DNA containing thymine why


Netgear WNDR3700 WiFi-n not giving 40 MBps

I have a Netgear WNDR 3700 v3 WiFi router. The router is capable of A/b/g/n and the Internet connection is 40MBps  When I connect over the ethernet cable and run speedtest, I get the full 40MBps connectivity. But over WiFi, both on the 2.4GHz and 5GHz, I never get more than 25-28MBps.  The router is configured with WPA2-PSK for both the bands and they each have their own SSIDs.  Is it possible to achieve the full 40MBps of Internet connectivity over Wifi? If yes, what do I change in the router configuration? I'll provide any additional information needed on the current configuration.  Thanks in advance  Edit: Looking at the linked post (Thanks @DavidPostill), adding additional information: The WiFi security is set to WPA2-PSK (AES). I've just enabled QoS WMM on. That seems to have fixed the issue for 11n. For the 2.4 GHz channel, it has actually reduced speed


Choosing between RAM frequency and timings

I have 2 sets of SAMSUNG 2GB DDR3 RAM  1: 2 x 2GB 2Rx8 PC3-8500S-07-10-F2  2: 2 x 2GB 2Rx8 PC3-10600S-09-10-F2  There 2 main differences: (8500S vs 10600S) and (07 vs 09)  Which set is better to install in my laptop?  Thank you.


How to change the line spacing in my list of figures?

I am using the book documentclass and have a list of figures. After  I noticed that there is a blank line to separate figures that are in different chapters, but not if they are within the same chapter. Since I changed the numbering of my figures to be {1, 2, 3, etc.} instead of {2.1, 2.2, 3.1, etc.} this looks silly and I'd rather have a blank line between each figure, no matter what.  How do I do that?  Similar:


I want to downgrade from Yosemite 10.10 to Mavericks or previous operating system

I want to downgrade from Yosemite 10.10 to previous operating system (i think its name was Mavericks).  I am not experienced in Computers so please explain to me in simple, step by step way.   Why i want to go back to Mavericks?   After installing Yosemite: - My Mac is always very hot; - The Fan is working as soon as it starts; - Battery is getting half its normal time. - Most important, the computer hangs a lot and became very slow.  With all this probe, I feel i am not using an apple computer any more..  Thanks to anyone who can assist.


Why does this sort ignore the +/- character prefix?

I'm trying to sort a patch to highlight a particular change:  $ curl -s https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org/message/ZN6VMFN65JWV7NMG2XEHPUI2AGSLRNGW/attachment/2/0001-LDAP-Change-the-default-rfc2307-autofs-attribute-map.patch | \ grep '^[+-] *{ "' | sort   The output is:  -    { "ldap_autofs_entry_object_class", "automount", SYSDB_AUTOFS_ENTRY_OC, NULL }, +    { "ldap_autofs_entry_object_class", "nisObject", SYSDB_AUTOFS_ENTRY_OC, NULL }, -    { "ldap_autofs_entry_value", "automountInformation", SYSDB_AUTOFS_ENTRY_VALUE, NULL }, +    { "ldap_autofs_entry_value", "nisMapEntry", SYSDB_AUTOFS_ENTRY_VALUE, NULL }, +    { "ldap_autofs_map_name", "nisMapName", SYSDB_AUTOFS_MAP_NAME, NULL }, -    { "ldap_autofs_map_name", "ou", SYSDB_AUTOFS_MAP_NAME, NULL }, -    { "ldap_autofs_map_object_class", "automountMap", SYSDB_AUTOFS_MAP_OC, NULL }, +    { "ldap_autofs_map_object_class", "nisMap", SYSDB_AUTOFS_MAP_OC, NULL },   I would have expected the sort to sort by the first character +/-.  I can confirm the characters are consistently 0x2b and 0x2d:  $ curl -s https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org/message/ZN6VMFN65JWV7NMG2XEHPUI2AGSLRNGW/attachment/2/0001-LDAP-Change-the-default-rfc2307-autofs-attribute-map.patch | grep '^[+-] *{ "' | cut -c1 | hexdump -C  00000000  2d 0a 2d 0a 2b 0a 2b 0a  2d 0a 2b 0a 2d 0a 2b 0a  |-.-.+.+.-.+.-.+.| 00000010   sort -d gives the same result.  -d says alphanumeric, and +/- are not be alphanumeric.  sort -n also doesn't work (I wouldn't expect it to.)  I've been using Linux/Unix for longer than I care to admit, and I've never noticed this before!  ...Is this expected?  Is there another way using sort?  (I know it can also be done in a Perl one liner...)


Can someone explain SQL injection?  How does it cause vulnerabilities?  Where exactly is the point where SQL is injected?


What would be the down side(s) to backup archival via SD cards?

While doing some photography reading, i came across some support for archiving photos, videos on SD Cards. The process looked like:   Fill up SD Card with DSLR Share/publish any choice items via the PC Physically archive the SD Card   I would contrast this with my own method:   Fill up SD Card with DSLR Move contents to PC's HDD to free up SD Card Archive data via traditional PC backup/archive mechanisms   While this makes good sense from a digital photography point of view, I wasn't sure how well it fit for standard PC archival. (This is why i post here instead of the photography stackexchange) Can anyone speak to the negatives of generic PC-based backup/archival via SD card?   Is there anything that would limit my ability to retrieve data later? Are there any environmental concerns (moisture, heat, sunlight, etc.) that could cause things to break down?   Edit 1 - in doing some more research, i see that SanDisk has a  product that is 100 year archival with (W)rite (O)nce (R)ead (M)any funtionality. What I didn't get was if that was available for purchase or the cost per GB.  Edit 2 - SD-WORM requires special readers/writers, and wouldn't be suitable.


Ubuntu 18.04: How to customize the font face and size in Dash to panel extension?

How do I change the font and font size in dash to panel?


How do I play Minecraft Pocket Edition with my niece on LAN?

My niece and I love playing Minecraft: Pocket Edition together, but since the new update (0.12.3) we can't seem to play it. How should I fix this?


I am already aware of the cp command.   Here's my goal:  I have a USB flash drive with some music on it, for example. Along with a full system backup, I keep some photos, music, etc. on a separate drive. Is there a command with which I can only copy files which are not already contained on the drive? (So I don't have to delete everything and/or copy all the new files manually)    E.g. I have a "file x" on my drive and computer, but only "file y" on my computer, which I want to copy to the drive; can I only copy file y to the drive without copying x too? (Obviously assuming there's more than 1 file)   Let me know if my wording is confusing, and I'll try and explain better.


Texture stretches and grows instead of repeating in Blender 2.8

I created a plane with a ground texture that has a displacement map to simulate the depth for the rocks and I made it slightly uneven with a cloud displacement modifier.   Now, I want to make this repeat and be larger but if I try to scale it up, everything increases in size when I want it to repeat.  I tried copying and pasting the plane and putting them next to each other but this is sloppy and I feel like it takes up too much resources.   Anyone have any insight on how to achieve what I'm going for? I appreciate it, thanks.  Shading Nodes   How my scene Looks   What I mean by stretching and growing


How can I avoid extraneous divs in my form?

When I create a form using the form API, the resulting html includes all sorts of unwanted divs. For example, if I use:  $form = array(     'myFieldset' => array(         '#type' => 'fieldset'     ) );   The resulting html looks like this:   <form action="/drupal-7.15/?q=chercheur" method="post" id="form-chercheur" accept-charset="UTF-8">     <div>         <fieldset class="form-wrapper" id="edit-myfieldset">             <div class="fieldset-wrapper">             </div>         </fieldset>         <input type="hidden" name="form_build_id" value="form-87Dv5ezVpaLI5mD345ofMkLgPhsv_dawudUp73ePQTc" />         <input type="hidden" name="form_token" value="sXXINWr7rmParm0tRJoEb6QKGIH_QH-ffRSOtnvxYY0" />         <input type="hidden" name="form_id" value="form_Chercheur" />     </div> </form>   As you can see, two extraneous divs are added here. They are making the javascript I'm writing uselessly complicated, so I was wondering if there was a way to remove the extraneous divs. Ideally, I would like to obtain something like this:  <form action="/drupal-7.15/?q=chercheur" method="post" id="form-chercheur" accept-charset="UTF-8">     <fieldset class="form-wrapper" id="edit-myfieldset">     </fieldset>     <input type="hidden" name="form_build_id" value="form-87Dv5ezVpaLI5mD345ofMkLgPhsv_dawudUp73ePQTc" />     <input type="hidden" name="form_token" value="sXXINWr7rmParm0tRJoEb6QKGIH_QH-ffRSOtnvxYY0" />     <input type="hidden" name="form_id" value="form_Chercheur" /> </form>   Is this possible?


How does back propagation works through layers like maxpooling and padding?

I know back propagation takes derivatives (changing one quantity wrt other). But how this is applied when there is maxpooling layer in between two Conv2D layers? How it gains its original shape when there is padding added?


I have just started the MIT Introduction to Algorithms course through the material posted online. Along with the course I have also decided to learn/enhance my Ruby skills by coding the algorithms in it.   I am on the first algorithm given, which is Insertion sort, and I have the following code typed up but I am getting this error when I run it:     insertionsort.rb:5:in `>': comparison of Fixnum with nil failed (ArgumentError)   def  insertionsort(num) for j in 2..num.length     key = num[j]     i = j - 1     while i > 0 and num[i] > key         num[i+1] = num[i]         i = i - 1     end     num[i+1] = key end  puts num end  numbers = [23,34,46,87,12,1,66]  insertionsort(numbers)   I'm sure it is a fairly basic problem but I just can't grasp what it is at the moment. Any  help or tips would be very much appreciated.


I apologize if this is a duplicate question (please provide me a link if there is an answer already out there).  I cannot find my saves for minecraft.      One post says to look here "C:\Users{myname}\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe"  I do not have a Microsoft.MinecraftUWP_8wekyb3d8bbwe folder  Another post says look for saves folder in the installation folder.  For me that is C:\games\minecraft.  There is no saves folder here. Another post says in App data.  for me that's C:\Users{myname}\AppData\Local.minecraft.  There is no .minecraft folder here. I did find this folder.  C:\Users{myname}\AppData\Roaming.minecraft but there's no worlds here.   I'm totally lost.  I have 4 worlds created.  My changes to the worlds are saved.   Where are my worlds saved?  Btw, I'm running windows 10.


Distribution of $(XY)^Z$ if $(X,Y,Z)$ is i.i.d. uniform on $[0,1]$

$X,Y$ and $Z$ are independent uniformly distributed on $[0,1]$  How is random variable $(XY)^Z$ distributed?  I had an idea to logarithm this and use convolution integral for the sum, but I'm not sure it's possible.


Add help center guidance about saying thanks

Suggestion: In , add guidance about not writing "Thanks", etc. Include a brief rationale, and mention that accepting an answer and upvoting are the preferred means of saying thanks.  Background: There is currently no guidance regarding "Thanks", "Thanks in advance", etc. for questions or comments. The closest is , which is specific to comments. It suggests avoiding compliments ("+1, great answer!"), but says nothing about gratitude, which may be different enough from a compliment to confuse new users, especially in light of the section above on being nice.


64-bit Windows 7 can only use 3.25GB of RAM instead of 4GB?

Possible Duplicate:        My Windows 7 is 64-bit, and I thought that means it can use the full 4GB of RAM installed on the computer.  But I just saw this on my computer's properties: (So only 3.25GB is usable??)


i want to make a 5V oscillator that has a frequency of 1khz. it will basically go to 5V (HIGH) and then 0 V (low) in a frequency of 1khz with 50% duty cycle.


Is choice required to guarantee that $\mathbb R^2 := \mathbb R \times \mathbb R$ – or $\mathbb R^n := \displaystyle\prod_{k=1}^n \mathbb R$ in general – isn't the empty set $\varnothing$? If not, what's an example of a Cartesian product of two non-empty sets not guaranteed to be non-empty (without choice)?


I have a table with the following values:  NAME      Value1       Value2 -------------------------------- N1          1           10 N1          2           11 N2          3           12 N2          4           13 N2          5           14   and I want to create the following result:  NAME      Value1        Value2_CSV ----------------------------------- N1          1           10,11 N1          2           10,11 N2          3           12,13,14 N2          4           12,13,14 N2          5           12,13,14   Could anyone help please? Thanks in advance


How do I find the lim for a series that has the following recurrence relation  $$ a_{0}=2 $$ $$a_1=16 $$ and $$a_{n+1}^2=a_na_{n-1} $$ .I applied $\ln$ and I substituted $$ b_n=\ln (a_n) $$ and so I found the following recurrence relation $$2b_{n+1}=b_n+b_{n-1}$$ .What do I do next? Can someone explain this limit in recurrence relation method because I'm not very familiar with it. I understood that it can only be applied if the given series converges?


Is QgsMapLayerRegistry going to be availabe in pyqgis with QGIS3  When I typed it into the QGIS python console (2.99), python seems to recognize it because it auto-completes qgis.core.QgsMapLayerRegistry, but then gives an error that it's not there:  Traceback (most recent call last):   File "/usr/lib/python3.5/code.py", line 91, in runcode     exec(code, self.locals)   File "<input>", line 1, in <module> AttributeError: module 'qgis.core' has no attribute 'QgsMapLayerRegistry'   I tried this with two versions of QGIS 2.99 (one in 01/07 and on in 06/17). Both versions give the same error. import doesn't work either:  >>>from qgis.core import QgsMapLayerRegistry Traceback (most recent call last):   File "/usr/lib/python3.5/code.py", line 91, in runcode     exec(code, self.locals)   File "<input>", line 1, in <module> ImportError: cannot import name 'QgsMapLayerRegistry'   Is QgsMapLayerRegistry removed in QGIS3?


Which form of Maxwell's equations is fundamental, in integral form or differential form?

I am not sure which form of  is fundamental, integral form or differential form. Imagine an ideal infinitely long solenoid. When a current is changing in time, can we detect classical effects outside a solenoid, for example generating a circular current around solenoid by Faraday's law. If the differential form is fundamental, we won't get any current, but the integral form is fundamental we will get a current.


seems like a really hot topic and I'd like to start reading about. I am looking for the best introduction at my level, i.e. I have a background in QFT, CFT and general relativity at the level of a master student in theoretical physics. What would you recommend me to start tackling the subject? I have been looking for resources and so far I have noticed:  -this synthetic introductory lectures by Horatiu Nastase:   -the videos of lectures done by P. Vieira at Perimeter for Perimeter Scholar International students:   -the subject starts entering the most recent textbooks on string theory. We have the Schwartz and Becker (  ) and also the Kiritsis (  )  I probably missed a lot of resources, as the literature on the subject is already quite huge. I would really appreciate some advice on that, as I already had the frustration of losing my time on not-so-good books when started to learn something new, so if I could (to the best) avoid that this time...


ls -a | grep ^. matches a single character of any value, except end of line.  What I want is the hidden file only which is started with .  ls -a | grep ^\. matches any one character including . too.  ls -a | grep -F . matches a dot in all files  but  ls -a | grep -F ^. didn't work  Desired Output  user@linux:~$ ls -a | grep <what is the right option here?> . .. .bash_aliases .bash_history .bash_logout .bashrc


Why do most formulas in physics have integer and rational exponents?

I mean, why is $F=ma$? Why not $m^{0.123}$, $a^{1.43}$ or some random non-integers or irrational?  I hope you understand that my question isn't limited just to force, energy, velocity, etc.; it also extends to the area of a square, circle, etc. and all other formulas.  I think the whole thing starts with direct proportionality.  Most of them tell about the area of a circle, $A = πr^2$, where π is 3.14159..... an irrational number! It's not about the constant. I am talking about the power of a physical quantity.  I know why it has pi. It's because we chose the constant for area square to be one. If we chose it to be 1 for the circle then the area of a square will have a constant, 1/pi.   I've edited the question to 'rational exponents' since all are giving me examples of decimal non-integers.


Determine the area of a regular octagon with vertices on the unit circle

How would I determine the area? Help please


I'm running High Sierra on my iMac. Occasionally I'll respond to a request, that pops up on my screen, to read about an app or to try it. Sometimes when I do that a window pops up that looks like the one below.    I don't know what to make of this. Is there a font missing on my machine or is this a problem on the other end? Once I clicked in what I thought was the positive response box but it was followed by a similar pop-up. Anyone know what to do about this so I can read it or contact the site?


import does not seem to be working correctly in Eclipse/Java

I was using the following:  String x; ... ... // x gets set somewhere in this code String y = x.replaceAll("\\s+", " ").trim();  Then I found org.apache.commons.lang3.StringUtils.normalizeSpace() which does the same thing.  So at the top of my class I added  import org.apache.commons.lang3.StringUtils;  and called  String y = normalizeSpace(x);  but it gave me a method not found error and suggested I create the method.  So I tried  import org.apache.commons.lang3.StringUtils.*;  but the same problem.  Anyone have an idea what is wrong?  Yes I can, and do, use   String y = org.apache.commons.lang3.StringUtils.normalizeSpace(x);  but it gets awkward typing the entire path every time.  Oh, and I did not get a syntax error on either of the import statements. And I guess I could go back to the replace and trim but StringUtils has a lot of other methods which would be good to use also.


How to cope with class over-representation

I have a dataset where I'm training a neural network to discriminate between 4 classes. The class distribution on the dataset is as follows:   Class 0: 0.516  Class 1: 0.159  Class 2: 0.235  Class 3: 0.088   It's clear that class 0 is over-represented. Conversely, class 3 is almost non-existent in the dataset. These distributions are more or less preserved after a split into training, validation and test sets. In general, the network's performance is poor in terms of accuracy, even if it achieves relatively good performance on confusion matrix metrics (precision, recall and f1 score). I believe the network is overfitting class 0, as the training cost follows a downward trend, while validation and test errors are high. L2 regularization does not seem to help that much with the situation.   Do you have any suggestions on how to tackle this situation?


How to store username and password to API in wordpress option DB?

I'm currently developing a plugin and the chances are that I will more than likely release it on the public plugin repository so others can use it.  The plugin will be using an API and to use this API you need to pass a username and password. So my plugin needs to store these login credentials in the database. I don't want to store these in plain text although the API needs them in plain text.  So my question is how do I store these sensitive bit of information? Hashing is out, so it has to be some sort of encryption.  In WordPress is there a unique key that can be used that will differ from blog to blog? What php functions should I use to encrypt and decrypt? I'm looking for functions that will more than likely work on all WP installs.


How can a Lich look like a human without magic?

This question is for 5e; I've posted a similar question for Pathfinder .   I'm designing a character for a campaign whose role is to be a recurring antagonist. When the characters first meet him, I want him to seem undeniably human. The idea is that the party will "kill" him and his body will be destroyed, only for him to be revived later and come back for revenge as Lich.  The party will be able to check him for magical effects when they first meet and I want it to be a surprise that he is a Lich. If they party detects Transmutation or Illusion magic on him or detect him as Undead it will give too much of a hint to his true nature. Disguise self could work, but the Lich's face will be seen by the characters and would require a massive skill to pull off.   Is there a way the Lich could retain a human form without magic?


java regex to not get string not ending with dot

I m trying regex to get the strings    starting with @ and  not ending with a dot(.)   For that i tried the java code() but this does not show any results -  @(\\w+)*(?<!.(.))*$   The string i m trying is -   This is a test\nAnother @pradyut@test ht@html.com\ntest\n#art\n@cool#paintings#collections   This should return   pradyut test cool   The result html ending with a .com should not return.  Regards


I want to compare user input to String, if not valid then the program should display the menu. How do I do it?

I am making a program which will calculate likely profitability of running a flight between UK airport and overseas airport. In one part of my code, I want to compare user input to String, if user input is not valid then the program should return user to menu and the user should be able to input How do I do it? I will highlight the code that I have wrote for this but I am not sure what is going wrong. Code: import java.io.IOException; import java.io.FileWriter; import java.io.BufferedReader; import java.io.FileReader; import java.util.ArrayList; import java.util.Scanner;  class Main {  // menu method static void menu() {   System.out.println("------------------------------------------------------");   System.out.println("| Enter 1 to input airport details                   |");   System.out.println("| Enter 2 to input flight details                    |");   System.out.println("| Enter 3 to enter price plan and calculate profit   |");   System.out.println("| Enter 4 to clear data                              |");   System.out.println("| Enter 5 to quit                                    |");   System.out.println("------------------------------------------------------");    }    // text file   public static void main(String[] argv) throws Exception {     BufferedReader myFile = new BufferedReader(new FileReader("Airports.txt"));     ArrayList<String> listOfLines = new ArrayList<>();      String line = myFile.readLine();     while (line != null) {       listOfLines.add(line);       line = myFile.readLine();      }     myFile.close();       // main code     Scanner scanner = new Scanner(System.in);      System.out.println("\n" + "Welcome");     menu();      int menuChoice = scanner.nextInt();      if (menuChoice == 5) {      System.out.println("\n" + "You have selected quit");      System.out.println("Program ending.");      } else if (menuChoice == 1) {       System.out.println("\n" + "You have selected input airport details");       System.out.println("\n" + "Enter 3 letter airport code for UK airport");       String ukCode = scanner.next();              // need help here below       **if (ukCode != "LPL" || ukCode != "BOH") {       menu();       menuChoice = scanner.nextInt();**        // above bold, I want program to keep displaying menu and making user enter data again if they have not inputted the correct 3 digit code such as "LPL" or "BOH".                }   } }  } Output of my code: If user inputs 3 digit code incorrectly:  Welcome  ------------------------------------------------------ | Enter 1 to input airport details                   | | Enter 2 to input flight details                    | | Enter 3 to enter price plan and calculate profit   | | Enter 4 to clear data                              | | Enter 5 to quit                                    | ------------------------------------------------------ 1  You have selected input airport details  Enter 3 letter airport code for UK airport  rfrw  ------------------------------------------------------ | Enter 1 to input airport details                   | | Enter 2 to input flight details                    | | Enter 3 to enter price plan and calculate profit   | | Enter 4 to clear data                              | | Enter 5 to quit                                    | ------------------------------------------------------  1  // doesn't do anything after 1 is inputted for the 2nd time.


I have created one Java Software in that I want to call .net webservice.   How to make it possible ?  I see some examples but I don't find any perfect solution.


Do fractals necessarily have to be self-similar? What is the definition of a fractal? Is this figure a fractal?

I am doing a dissertation in Materials Engineering. I obtained the following images regarding crystal growth:  In the literature they usually call these structures "fractals" and calculate their fractal dimension using the box-counting method. From what I read on the internet, a fractal has to have self-similarity. However, these structures appear to be so irregular that they do not appear to have any kind of repetition. The fractals according to the DLA (diffusion limited aggregation) have a fractal dimension of approximately 1.70, which is close to that of these structures. Why do the authors consider these structures fractal if there is no self-similarity? What are the characteristics necessary for a figure to be considered a fractal?


What am I doing wrong? Updating a variable through a function

My brain hurts. I cant manage to get the function to update a different variable depending on what the parameter says the variable is. I have been looking at this for a while and I am not that good at JavaScript. Can anyone help me? Also not sure if i have forgotten anything. <input type="number" value="0" id="input2"/> <button id="plus2" onclick="runPlus('input2', total2, 3)">+</button> <input type="number" value="0" id="input2"/> <button id="plus2" onclick="runPlus('input2', total2, 3)">+</button>
$


#include <iostream>  class Core; class State;  int main (){         std::cin.get();         return 0; }  class State{ public:     State(Core* core){         core->setState();     } };  class Core{ public:     Core(){         State state(this);     }     void setState(){         std::cout << "setting state" << std::endl;     } };   I keep getting the "use of undefined type" error. I thought that if I forward declare both of the classes, it would fix the problem but I can't figure it out. Is it just silly c++ syntax that I'm missing?  EDIT: Sorry about the gamestate typo, I've changed it to State and it still produces the error.


While reading a file in java how to detect we have a line?

I am reading a file Java, using this code :  File file = new File(--path-);  Scanner reader= new Scanner(file);  while(reader.hasNext()){      // i want to add here if reader.Next() == emptyline     // I tried if reader.Next()=="" but it did not work.  }   thank you all


How to use terminal cd command in .command files ON directory where file is in

I use a .command file to compile my cpp projects. Here is an example: cd /Users/<user>/Documents/Projects/cpp/SUDOKU g++ -std=c++11 -c ./main.cpp  g++ -std=c++11 -c ./grid.cpp  g++ -std=c++11 ./main.o ./grid.o -o ./sudoku ./sudoku  The file, named compile.command, is located in the folder /Users/<user>/Documents/Projects/cpp/SUDOKU. I would like to write a cd command witch adapts if I move the SUDOKU folder to an other location without having to rewrite the path (witch is now the case). What should I do?


Invalid conversion from runtime type ERROR

I'm trying to parse json response.. but keep getting this error      Invalid conversion from runtime type List ANY> to Map String,ANY>   Map<String, Object> MapLv3 = new Map<String, Object>();      Integer x2 = 0; for (Object oh : CallsList){     MapLv3.put(String.valueof(x2), oh);     x2++; } index = x2; System.debug('Map Lv 3 ==>'+MapLv3);  Map<String, Map <String, Object>> Map3 = new Map<String, Map <String, Object>>(); for (Integer a2 = 0; a2 < index; a2++){     Map3.put(String.valueof(a2),(Map<String,Object>) MapLv3.get(String.valueof(a2))); } System.debug('Segment ==>'+Map3.get('0').get('segments'));


What is the intuition behind defining completeness in a statistic as being impossible to form an unbiased estimator of $0$ from it?

In classical statistics, there is a definition that a statistic $T$ of a set of data $y_1, \ldots, y_n$ is defined to be complete for a parameter $\theta$ it is impossible to form an unbiased estimator of $0$ from it nontrivially. That is, the only way to have $E h(T (y )) = 0$ for all $\theta$ is to have $h$ be $0$ almost surely.   Is there a intuition behind this? Is seems like a rather mechanical way of defining this, I am aware this has been asked before, but was wondering if there was a very easy to understand intuition that would make introductory students have an easier time digesting the material.


Lost access to Admin rights, account on Standard, need to get switched back

Good Day ma'am/sir,  I need help, and am not locating the right type of help. I just got my mother a new PC with Ubuntu on it, after initial setup and updates, all was operational...upgraded to 14:04 (newer one available) (and I have the disc that came with PC it is for Ubuntu 13:04, I believe) So the problem; I know the passwords, we set them up to work for her, the problem is in the User Accounts part, her profile (the only one set up) was switched from administrator to standard user, and now for everything and anything it will ask for administrator privilege and the password does not do anything, just spits back the password bar. I tried changing the password, I just can not get her account back to Administrator. If any help is able, it would make the world of a difference. Thanks for your time, Good Day,  Semper Fidelis  Lt. Woods


There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of?


Accessing AWS S3 via a REST API (Apex callout with a Named Credential)

I am trying to make a callout to AWS S3 using named credentials and Apex  The named credential is set up as follows  Label: AWS S3 Name: AWS_S3 URL: https://bucket-name.s3.amazonaws.com - Certificate: Identity Type: Named Principal Authentication Protocol: AWS Signature Version 4 AWS Access Key: AKIAxxxxxx AWS Secret Access Key: xxxxxx AWS Region: ap-southeast-2 AWS Service: s3 - Generate Authorization header: true Merge fields in header: false Merge fields in body: false   The Apex class is very simple  HttpRequest req = new HttpRequest(); req.setEndpoint('callout:AWS_S3'); req.setMethod('GET');                        Http http = new Http(); HTTPResponse res = http.send(req);                 System.debug(res.getBody()); return res.getBody();   The response body contains the following:     SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method.AKIAxxxxx   I have used the same bucket, endpoint and credentials using Postman and am able to successfully return the list of objects in the bucket so it is not an IAM permissions issue  There have been a couple of similar questions on stackexchange but unfortunately they do not provide any resolution or assistance in this case:    I've tried looking for code samples or further pointers in the Apex documentation but it doesn't really give any further guidance on how to proceed or correctly set this up so I'm a bit stuck


(Java) How to use setRGB() and buffered images

Getting Null Pointer Exception in my addMarking method.  I'm new to buffered images so I'm not completely sure what the problem is. I have a seperate class that breaks an image up into 3x3 arrays and calls findEnds() with it. When findEnds find the correct condition in the 3x3 array it calls addMarking with the coordinates to make a red dot on the picture.  Note: Previously I tried using a 2dGraphic to write the picture on the bufferedImage but took it out in an attempt to fix this problem and copy the pixels manually with setRGB (haven't written this method yet).  Note: The reason I can't just make the buffered image with the original file is that the file has a black and white color type not TYPE_INT_RGB.   Error:  Exception in thread "main" java.lang.NullPointerException     at findFeatures.addMarking(findFeatures.java:43)     at getImage.getColor(getImage.java:44)     at fingerprintDriver.main(fingerprintDriver.java:15)   The getImage is a class that breaks the photo into 3x3 arrays, it also returns the coordinates of requested arrays to the addMarking class.   fingerprintDriver:  /**  * Driver for the ElevationScanner Class  *   * @author benjamincole  * @version 4/23/18  */ public class fingerprintDriver {     public static void main(String[] args) {         String fileName = JOptionPane.showInputDialog("Please enter a name for the file");         getImage test = new getImage(fileName);         findFeatures find = new findFeatures();         find.imageConstructor();         test.getColor();      } }   findFeatures class:   /**      * This class tests a 3x3 array. The method findEnds tests this array for      * two black pixels. If this condition is found it is an end and the x        * and y-coords are marked.      *       * @author benjamincole      *  */ public class findFeatures {     BufferedImage markedImage;     int counter;     public void imageConstructor() { // creates image to add markings to             markedImage = new BufferedImage(getImage.width, getImage.height, BufferedImage.TYPE_INT_RGB);     }      public void findEnds(boolean[][] colorArray) { // finds the ends of arches         counter = 0;         System.out.println();         for (int x = 0; x < 3; x++) {             System.out.println();             for (int y = 0; y < 3; y++) {                 System.out.print(" " + colorArray[x][y]);                 if (colorArray[x][y])                     counter++;             }         }             if (counter == 2 || counter == 1) { // if only 2 or less pixels are                                                 // black in the 3x3                 System.out.println(getImage.xCord + " " + getImage.yCord);                 System.out.println(" end found"); // end has been found                 addMarking(getImage.getXCord(), getImage.getYCord(), Color.red.getRGB());             }            }      public void addMarking(int x, int y, int rgb) { // adds red `marking to image`         markedImage.setRGB(x, y, rgb); //ERROR HERE! (Null Pointer)         markedImage.setRGB(x + 1, y + 1, rgb);         markedImage.setRGB(x + 2, y + 2, rgb);         markedImage.setRGB(x, y + 2, rgb);         markedImage.setRGB(x + 2, y, rgb);     }


giving a short name for frequently opened directory via terminal

Every time I wish to move to a directory I use very often, I must type this long directory path:  cd /media/prasanth/01D0F888E7BC91801/github projects   or I must use the gui to get into the folder and open the terminal.  Is it possible to assign this long path to a single name and enter it via the terminal like  cd mygitfiles   ?


On my C:\ drive, the installed software takes only 3.3GB of space. The total drive space is 30GB. I do not have any restore points, nothing in my recycle bin, but still I only have 1.54GB of free space. I have even tried to "Free up disk space", (Control Panel\System and Security\Free up disk space), but still nothing. Where does the rest go to? I really need it back. Please help.  I'm on windows 7. My antivirus is 360 Total Security.


Mod only tool for posts that mention suicide

As a mod of a smaller site, I really like Shog9's answer about . I personally would like to see a mod only tool that could be used for posts that mention suicide and/or bodily harm. The feature would ideally close/lock/delete the question, send a well crafted message to the user, and alert a community moderator to follow up on.  As to where the feature should be added, it could be added as an additional reason under either "flag" or "lock". The list of reasons for locking is already long, so maybe as a new flag reason. It could replace the "duplicate" and/or "close" flags since I cannot think of a reason for a mod to ever raise those two flags.


Our company has multiple domains set up with one website hosted on each of the domains. At this time, each domain has its own authentication which is done via cookies.   When someone logged on to one domain needs to access anything from the other, the user needs to log in again using different credentials on the other website, located on the other domain.   I was thinking of moving towards single sign on (SSO), so that this hassle can be eliminated. I would appreciate any ideas on how this could be achieved, as I do not have any experience in this regard.  Thanks.  Edit: The websites are mix of internet (external) and intranet (internal-used within the company) sites.


Hatcher algebraic Topology $\Delta$-complex

I am having trouble with the following question from Hatcher:       Construct a $\Delta$-complex structure on $\mathbb{R}P^2$ as a quotient of a $\Delta$-complex structure on $S^n$ having vertices the two vectors of length 1 along each coordinate axis in $\mathbb{R}^{n + 1}$.


When I start Blender, I am shown the Outliner on the right side:    Somehow I very often manage to hide it. I think it happens when I unwrap and have the "UV Edit" window shown on the left side of Blender.  Can anybody tell me how to restore / show it again?  Thank you.


In $\mathbb{Z}\left [ x \right ]$, let $I = \left \{ f\left ( x \right ) \in \mathbb{Z}\left [ x \right ]: f\left ( 0 \right ) \text{ is an even integer} \right \}$   In fact, $I=\left \langle x,2 \right \rangle$  How do I show that the order of $\mathbb{Z}\left [ x \right ]/I$ is 2?


Issue with Carbon not equal when it should be

Having an issue where literal comparing of 2 Carbon objects are not equal, and I'm not sure why, I have posted my tinker session below to show the problem;  >>> $t = Carbon\Carbon::today() => Carbon\Carbon @1548025200 {#3026      date: 2019-01-21 00:00:00.0 Europe/Berlin (+01:00),    } >>> $f = Carbon\Carbon::parse('21-01-2019 10:02:01')->startOfDay() => Carbon\Carbon @1548025200 {#3035      date: 2019-01-21 00:00:00.0 Europe/Berlin (+01:00),    } >>> $f === $t => false >>> $f == $t => true >>> echo $t 2019-01-21 00:00:00⏎ >>> echo $f 2019-01-21 00:00:00⏎ >>>    Just wondering why $f === $t is false,  Thanks for anyone that can help!  Also even using today() for both returns false; (But in case either of these have different solutions, the first example is more applicable to my issue)  >>> $t = Carbon\Carbon::today() => Carbon\Carbon @1548025200 {#3033      date: 2019-01-21 00:00:00.0 Europe/Berlin (+01:00),    } >>> $f = Carbon\Carbon::today() => Carbon\Carbon @1548025200 {#3038      date: 2019-01-21 00:00:00.0 Europe/Berlin (+01:00),    } >>> $f === $t => false >>> $f == $t => true


How to solve for these two values - square root modulo composite and Chinese remainder theorem

I'm trying to solve for 188 and 131, how do we get 188 and 131 using CRT?  I can calculate these, its just I do not get how to get 188 and 131.  √23 (mod 209)  √a (mod p) = ±a(p+1)/4, if p ≡ 3 (mod 4)  √4 (mod 11) = ±23^3(mod 11) = ±1  √4 (mod 11) = ±23^3(mod 11) = ±17   Using the CRT we can therefore calculate √ 23 (mod 209) as ±188, ±131


Given $x,y,z$ is positive number that $x+y+z=1$. Prove that $$ P = \frac{x}{y^3+2xyz} + \frac{y}{z^3+2xyz} + \frac{z}{x^3+2xyz} \gt \frac{15}{2}$$ My attempt: $$2xyz \leq \frac{2}{27}$$ $$ \Rightarrow P= \frac{x}{y^3+2xyz} + \frac{y}{z^3+2xyz} + \frac{z}{x^3+2xyz} \geq \frac{x}{y^3+\frac{2}{27}} + \frac{y}{z^3+\frac{2}{27}} + \frac{z}{x^3+\frac{2}{27}} $$ $$ \Leftrightarrow P \geq \frac{27}{2} (x+y+z) - \frac{27}{2}\left(\frac{x\cdot y^3}{y^3+\frac{2}{27}} + \frac{y\cdot z^3}{z^3+\frac{2}{27}} + \frac{z\cdot x^3}{x^3+\frac{2}{27}}\right)$$ AM-GM: $$y^3+\frac{2}{27}=y^3+\frac{1}{27}+\frac{1}{27}\geq 3\cdot\sqrt[3]{y^3\cdot\frac{1}{27}\cdot\frac{1}{27}}=\frac{y}{3}$$ Similar we have $$\frac{27}{2}\left(\frac{x\cdot y^3}{y^3+\frac{2}{27}} + \frac{y\cdot z^3}{z^3+\frac{2}{27}} + \frac{z\cdot x^3}{x^3+\frac{2}{27}}\right) \leq \frac{81}{2}\left(xy^2+yz^2+zx^2\right)$$ $$\Leftrightarrow P \geq \frac{27}{2} - \frac{81}{2}\left(xy^2+yz^2+zx^2\right)$$ Now we need prove $$\frac{81}{2}\left(xy^2+yz^2+zx^2\right)\lt \frac{27}{2} -\frac{15}{2} = 6$$ $$\Leftrightarrow xy^2+yz^2+zx^2 < \frac{4}{27}$$ I was stuck here. Help me, thank you so much.


I need to write a query like group_concat in SQL Server

As you know SQL Server unlike MySQL has no Group_Concat function, so for this purpose how to write a query for SQL Server.  I created an application by using Visual Studio. Application has a Windows Form. I am able to save, delete and update records in the database table. I need to display a person's email addresses, so I need to use a similar method like Group_concat.  Can you help me about with this?


Using Firefox in Windows Domain Environment?

Is anyone successfully using Firefox 3 in a Windows domain?  By "successfully" I mean deploying via AD, configuring via GPO (especially setting network.automatic-ntlm-auth.trusted-uris), default plugins, and somehow managing updates.  I'm aware of  and Firefox ADM. It looks like the FrontMotion MSI installer and administration templates would solve most of the problem.  I'm not sure how updates would work, however... without me having to update the MSI manually.  I'm also a little bit leery of using a 3rd party package for this.  I'm not terribly worried that FrontMotion is packaging up anything naughty in their distribution, but I don't like having to rely on them for being timely with critical updates and such.  Have any of you successfully replaced IE with Firefox in your organization?  Is the way your managing it on par with managing IE on your desktops?


Can't find my .minecraft folder in Windows 10

I currently use Windows 10 and I'm running Minecraft 1.8.   I have seen people say run %appdata&\.minecraft\ but that never worked for me. I really want to download a mod, but I can't until I find this folder.


Existence of a vector field with one singularity on a surface

In a paper I'm reading, it is stated that "It is known that on a compact, connected, oriented two dimensional manifold, there exists a vector field with only one singularity".  Where can I find a proof of this fact?


I have some functions that don't belong to any class. So right now, they're defined in my program.cpp. Specifically, a simple  std::string to_string(double const & value){     std::stringstream ss;     ss << value;     return ss.str(); }   I can use them in my classes when I declare std::string to_string(double const &);. But I can't get that to work with templates, i.e. with  template <typename T> std::string to_string(T const & value){     std::stringstream ss;     ss << value;     return ss.str(); }   In whatever way I declare it, I always end up with "undefined reference to" errors. Any way to do that? The way c++ forces bookkeeping on you makes me sad :(


"Misaligned partition" - Should I do repartition (how?)

Tried to install Ubuntu 12.04 from USB-stick alongside the existing Win7 OS 64bit, and now I'm not sure if install was completely successful: Disk Utility tool claims that the Extended partition (which contains Ubuntu partition and Swap) is "misaligned" and recommends repartition. What should I do, and if should I do this repartition, how to do it (especially if I would like not to lose the data on Win7 partition)?  Background info: A considerably new Thinkpad laptop (UEFI BIOS, if that matters). Before install there were already a "SYSTEM_DRV" partition, the main Windows partition and a Lenovo recovery partition (all NTFS). Now the table looks like this: SYSTEM_DRV (sda1), Windows (sda2), Extended (sda4) (which contains Linux (sda5; ext4) and Swap (sda6)) and Recovery (sda3). Disk Utility Tool gives a message as follows when I select Ext: "The partition is misaligned by 1024 bytes. This may result in very poor performance. Repartitioning is suggested."  There were couple of problems during the install, which I describe below, in the case they happen to be relevant.  Installer claimed that it recognized existing OS'es fine, so I checked the corresponding option during the install. Next, when it asked me how to allocate the disk space, the first weird thing happened: the installer give me a graphical "slide" allocate disk space for pre-existing Win7 OS and new Ubuntu... but it did not inform me which partition would be for Ubuntu and which for Windows. ..well, I decided to go with the setting installer proposed. (not sure if this is relevant, but I guess I'd better mention it anyway - the previous partition tools have been more self-explanatory...)  After the install (which reported no errors), GRUB/Ubuntu refused to boot. Luckily this problem was quite straightforwardly resolved with live-Ubuntu-USB and Boot-Repair ("Recommended repair" worked just fine). After all this hassle I decided to check the partition table "just to be sure"- and the disk utility gives the warning message I described.  I checked my disk specs on Hitachi/HGST website, and yes, it's Advanced Format ("Advanced Format, 512-byte emulation").  Also, fdisk gives me the following:     Device Boot      Start         End      Blocks   Id  System  /dev/sda1   *        2048     3074047     1536000    7  HPFS/NTFS/exFAT /dev/sda2         3074048   523241959   260083956    7  HPFS/NTFS/exFAT /dev/sda3       939907072   976771071    18432000    7  HPFS/NTFS/exFAT /dev/sda4       523243518   939907071   208331777    5  Extended Partition 4 does not start on physical sector boundary. /dev/sda5       523243520   932153343   204454912   83  Linux /dev/sda6       932155392   939907071     3875840   82  Linux swap / Solaris   Apparently sda4 (extended) partition is off by 2 bytes (sda4 starts on 523243518, sda5 523243520), but if I understood correctly, this should not be a problem, as the logical partition sda5 seems to be OK(?). In other words, there should be no need for repartitioning?


Can we split English Tenses into 2 * 2 * 2 matrix?

I seem to remember  Simple vs continuous Past vs present (no future tense, that's present) Perfect vs "normal"  Okay, if we multiply that, we got 2*2*2=8 tenses in English.  Am I correct?  For example, say I want to express I kick a cat in 8 tenses I will got:  Simple past imperfect tense  I kicked a cat.  Simple past perfect tense  I had kicked a cat  Simple present tense  I kick a cat  Simple present perfect tense  I have kicked a cat  Continuous past imperfect tense  I was kicking a cat  Continuous past perfect tense  I had been kicking a cat  Continuous present tense  I am kicking a cat  Continuous present perfect tense  I have been kicking a cat  Am I correct here? Only 8 tenses right?


Access parent's parent from javascript object

Something like  var life= {         users : {              guys : function(){ this.SOMETHING.mameAndDestroy(this.girls); },              girls : function(){ this.SOMETHING.kiss(this.boys); },         },         mameAndDestroy : function(group){ },         kiss : function(group){ } };   this.SOMETHING is what I imagine the format is, but it might not be. What will step back up to the parent of an object?


Every time I activate the Broadcom wifi driver my ethernet stops working and I still don't have wifi. I have to use Sudo apt-get remove --purge bcmwl-kernel-source and restart to get the ethernet back. Any ideas? I have a Dell Inspiron 1501.


i have a lot of star trek 1E through to voyager, Vampire the masquerade, Shadowfist, jedi knights, rage, Battletech, alien vs predator CCG cards i'm trying to sell but have no idea where to sell them, anyone able to help me please? They're taking up space that i don't have to spare. In all it's probably around 20 to 25k cards all up....


How do they update the points in Harry Potter?

When a faculty member awards points to a house, are the hourglasses immediately updated by telepathy or do they have some other procedure to complete?


How can I force a format of an external HDD that Gparted and Disk Utility can't see?

My Seagate  500 GB external HDD stopped working few days ago for unknown reasons. I don't really care about the data on it anymore. I just want it to work properly again but I cant format it in Gparted or Disk Utility. In fact, I can't even see my drive in both places. I get this error when I connect it via USB:  Error mounting /dev/sdb1 at /media/sourabh/Backup: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/sourabh/Backup"' exited with non-zero exit status 13: The disk contains an unclean file system (0, 0). The file system wasn't safely closed on Windows. Fixing. ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to read NTFS $Bitmap: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details. Failed to sync device /dev/sdb1: Input/output error Failed to close volume /dev/sdb1: Input/output error   How can I force format this drive?


My question is regarding a specific case displaying Newton's third law.   In the diagram below, a man is shown exerting a force on the wall, which in turn causes an equal and opposite reaction force on the man. I understand that the reason the man doesn't fly backwards is due to friction with the ground - the man exerts an action force on the ground which causes a reaction force back on the man. Hence, there is a 0 net force acting on the man as the original reaction force from the wall cancels out the reaction force from the ground.    I am not confused about how objects move in general with respect to the third law since i understand that the action and reaction forces act on two separate objects. However, the logic behind this specific example would suggest that nothing on a plane would be able to move when a force is applied, since the friction from the ground would result in a 0 net force on the object.  For example, in the diagram shown below, a hand is exerting an action force on the brick. This in turn causes the brick to exert an action force on the floor which causes a reaction force on the brick. The action force on the brick and the reaction force on the brick exerted by the floor cancel each other out resulting in a 0 net force on the brick. Hence, the brick (or any other object on a plane like this) should not move and accelerate no matter how large a force is supplied.    However, we are clearly able to push objects like bricks across a surface like a table in real life. I don't understand how this could be achieved as my understanding tells me that you cannot ever overcome the frictional force of the floor.  The original YouTube video where i got my diagrams from:


Add a path in $PATH globally for every user

Do we have anyway to add a path globally so that each user gets it in $PATH. I want to add path of ANT so that each user doesn't need to add it in his $PATH variable.


I'm trying to run the remove_doubles edit command on multiple selected objects. This is kinda what I got so far...  import bpy   class remDoubles(bpy.types.Operator):     """Remove Doubles on multiple objects"""     bl_label = "Remove Multiple Doubles"     bl_idname = "object.remove_doubles_multi"     bl_options = {'REGISTER', 'UNDO'}      @classmethod     def poll(cls, context):         return len(context.selected_objects) > 0      def execute(self, context):          scene = bpy.context.scene         sel = context.selected_objects          for obj in sel:             scene.objects.active = obj              #do something here             print(obj.name)             bpy.ops.mesh.remove_doubles()          return {"FINISHED"}  myobject = remDoubles()  myobject.execute()   My knowledge about classes isn't too great, please help.  My code needs some work, it just errors out giving a  'TypeError: bpy_struct.new(type): expected a single argument'  But what i intend doing is run through each object applying the remove doubles command for each.


Why aren't decoupling caps built into the IC or IC package?

The title is probably good enough, but I've always wondered why decoupling caps aren't built into the chip or at least the IC packaging?


I use QGIS print layout to create atlas with many features. I am tring to find a way to show page number left, right, up and down of atlas feature. Is there any way to insert these page numbers to print layout? Example is on a picture below. I need to show page number 4, 6, 8 at atlas with page number 5 as is seen at atlas overview. Unfortunately, script described at post below doesnt work.https://gis.stackexchange.com/questions/214300/how-to-determine-neighbouring-tile-ids-in-qgis


What I supposed to do with a "possibly" correct answers?

I have a couple of accounts in different SE communities. I'm used to SO, where the concept is clear: you ask the question, and you get the answers with a "raw" knowledge, that you can apply immediately - if you can't get the raw-knowledge answer, then it's a probably bad question, that should be closed. The SO community rules support such scheme.  On other communities I have a problem with accepting answer, e.g. questions in Physics or Biology (see my accounts). I have a meaningful question - and I have answers. But I don't really know if those are correct. And even if they are correct, I can't get some "raw" knowledge from them - because I'm a newbie in this field.  What should I do: wait for better answers, improve questions, or just accept most voted - with a hope, it's a correct answer?  P.S. I have revised my attitude about "silly" questions on SO, since the people may think the same way as I do: "Ummh, my question is about programming [biology, physics], but I'm a newbie. Where should I ask my question? - Let it be the SO [Biology, Physics] then :)"


I am interested in being able to get information about classes, specifically variables, methods etc. I see this can be done by the Tooling API, what I am not clear on is if I need to make an API call to do this even when I am in my developer instance?   In other words, is there no way to directly query this information without the API call? I see in the Query Editor there is a checkbox for "Use Tooling API" right next to the Execute button.  When I select this checkbox I can directly query the symbol table of an object in the query editor, so I am thinking there must be a way to do this from withing a class without the API call?   All the documentation I have found if for using this with the API call however...


I know java is pass by value But here How the array[i] is changing the value of arr[i].The below program is arranging zeros and ones in order Is there any special case for Array-Pass by value class GFG {             // function to segregate 0s and 1s      static void segregate0and1(int arry[], int n)      {          int count = 0; // counts the no of zeros in arr                 for (int i = 0; i < n; i++) {              if (array[i] == 0)                  count++;          }             // loop fills the arr with 0 until count          for (int i = 0; i < count; i++)              array[i] = 0;             // loop fills remaining arr space with 1          for (int i = count; i < n; i++)              array[i] = 1;      }             // function to print segregated array      static void print(int arr[], int n)      {          System.out.print("Array after segregation is ");          for (int i = 0; i < n; i++)              System.out.print(arr[i] + " ");          }             // driver function      public static void main(String[] args)      {          int arr[] = new int[]{ 0, 1, 0, 1, 1, 1 };          int n = arr.length;             segregate0and1(array, n);          print(array, n);                 }  }


I'm wondering if it's possible to have a continuous sequence $f: \mathbb{N} \to \mathbb{R}$? My intuition is telling me no because logically it would be impossible to map the natural numbers onto the real numbers but I'm not sure how to formalize it. What do you think? How would you prove that no function over the natural numbers (no sequence) is continuous?  For example, how would you prove that $f: \mathbb{N} \to \mathbb{R}$ such that $f(n) = n^{2}$ is not continuous over the natural numbers?


How to protect python source code while using Dockers to deploy

I'm new to deployment process. In my current project we are deploying the python application using Docker. The issue is when we try to share Docker file its easy to extract source codes and they want to protect the source codes. For example In Java they will compile the Java code and package it up into Jar file and create Docker Container. Is there any similar way to try in python ??


How to fix byte array java.lang.NullPointerException

I created a client/server program where the server sends a packet to the client which has a randomly picked string from an array. But when ever I run the server and then the client which send data about it's byte array the server after receiving the packet throws an exception which looks like this:  Exception in thread "SDServerThread" java.lang.NullPointerException         at SDServerThread.run(SDServerThread.java:56)   This exception points to this line of code:  buf = GetText.getBytes();   The buf is a byte array list:  byte[] buf = new byte[256];   GetText is a string which calls a method to pick a random string.:  String GetText = getText();   The code starting from byte[] buf = new byte[256]; to buf = GetText.getBytes(); looks like this:  byte[] buf = new byte[256];          DatagramPacket packet = null; packet = new DatagramPacket(buf, buf.length); socket.receive(packet); System.out.println("packet received"); textArea.append("packet received\n");  String GetText = getText(); buf = GetText.getBytes();   I haven't tried a lot because i can't find any fixes relating to my kind of problem.  Thanks in advance for the help.


Does Wolfram Mathworld make a mistake describing a discrete probability distribution with a probability density function?

Usually a probability distribution over discrete variables is described using a probability mass function (PMF):  When working with continuous random variables, we describe probability distributions using a probability density function (PDF) rather than a probability mass function. -- Deep Learning by Goodfellow, Bengio,  and Courville  However,  is using PDF to describe the probability distribution over discrete variables:    Is this a mistake? or it does not much matter?


I want to create simple 3d shapes, cubes, cones, cylinders, etc. Which package is optimal for this operation? I have used tikz before, but I do not know how to use it for 3d images. Any recommended ways to do it?


Effect of scaling data on ARMA coefficients

For numerical stability, I thought it might be a good idea to scale my data before feeding them into an ARMA GARCH model. I have gone through a few older posts and understand the affect scaling innovations/residuals have on GARCH, but what effect does it have on the ARMA coefficients? Thanks!


How to install Brave Web Browser for ubuntu 16.04

I want to install Brave Web Browser . I went to the website's download section but it has a method which is less user friendly , difficult to understand . I want to know a Simple easy way to install Brave Web Browser on Ubuntu 16.04


When I found that a simple x^(1.0/3.0) does not yield a graph in PGFplots for negative values of x, I attempted to define my own function for CubeRoot using pgfmathdeclarefunction as below. But, am not able to get them to work.    These are based on , and .   This compiles as is, but has a problem if I set \DomainMin to a negative value. The CubeRootB function does not even compile, and I do not see what the problem with it is.  \documentclass{article} \usepackage{tikz}  \newcommand*{\DomainMin}{0.1} %\newcommand*{\DomainMin}{-2.0} % CubeRootA gives and error if DomainMin < 0  \tikzstyle{MyPlotStyle}=[domain=\DomainMin:2,samples=100,smooth]  \pgfmathdeclarefunction{gauss}{3}{% From links mentioned in the question     \pgfmathparse{1/(#3*sqrt(2*pi))*exp(-((#1-#2)^2)/(2*#3^2))}% }  \pgfmathdeclarefunction{CubeRootA}{1}{%     \pgfmathparse{%         ifthenelse(equal(#1,abs(#1)),%             (#1)^(1.0/3.0),%            #1 >= 0             -1.0*((abs(#1))^(1.0/3.0))% #1 is negative         )%     }% }  \pgfmathdeclarefunction{CubeRootB}{1}{%     \pgfmathparse{%         \pgfmathifthenelse             {\pgfmathequal{#1}{\pgfmathabs{#1}}}%             {exp(ln(#1)/3.0)}%            #1 >= 0             {-1.0*(exp(ln(abs(#1))/3.0))}% #1 is negative     }%      }  % Modified version of CubeRootB per Caramdir's suggestion \pgfmathdeclarefunction{CubeRootC}{1}{%         \pgfmathparse{%             ifthenelse(                 equal(#1,abs(#1)),%                 exp(ln(#1)/3.0),%            #1 >= 0                 -1.0*(exp(ln(abs(#1))/3.0))% #1 is negative             )         }%     }      \begin{document} \begin{tikzpicture} \draw [help lines] (-2,-2) grid [step=0.5] (2,2); \draw plot [MyPlotStyle] (\x,{gauss(\x,0,0.5)}); % \draw plot [MyPlotStyle] (\x,{    CubeRootA(\x)});% Error if DomainMin < 0 %\draw plot [MyPlotStyle] (\x,{1.0+CubeRootB(\x)});% Does not compile \draw plot [MyPlotStyle] (\x,{    CubeRootC(\x)});% Error if DomainMin < 0 \end{tikzpicture} \end{document}


jQuery isn't working with wp_enqueue_script()

I'm trying to set focus to textbox in a modal using the code below:  $('#search-modal').on('shown.bs.modal', function () {     $('#s').focus(); });   this code is in script.js file which I add it using the code:   function dia_scripts() {    wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.3.7' );    // checking to include Bootstrap rtl edit    if ( is_rtl() ) {         wp_enqueue_style( 'bootstrap-rtl', get_template_directory_uri() . '/css/bootstrap-rtl.min.css', array(), '3.3.7' );     }     wp_enqueue_style( 'style', get_template_directory_uri() . '/style.css' );     wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '3.3.7', true );     wp_enqueue_script( 'custom-script', get_template_directory_uri() . '/js/script.js', array( 'jquery' ), null, true ); } add_action( 'wp_enqueue_scripts', 'dia_scripts' );   I found that jQuery -blank javascript is working- isn't working with script.js file. However, it's working well with bootstrap.min.js file. any ideas?


I have array checkbox (category) and I want to display list of checkbox size if one of them is being checked. I have already made the JavaScript but it didn't work out. Here's my code: View @foreach ($categories as $category)
     <input class="category mb-0" id="category" name="category[]" type="checkbox" value="{{ $category->id }}" onChange="this.form.submit()"    @if (in_array($category->id, $checkedCat)) checked @endif>   {{ $category->name }}
 @endforeach
 //List of size checkbox
  JavaScript $("#category").on('change', function() {  if($('input[name="category[]"]:checked'))  {     $(".sizefilter").show();  } else  {     $(".sizefilter").hide();  } });


Jquery onclick not working for dynamic class

I have a tag :  <p class="link show"><p>   $('.show').click(function() {     $(this).removeClass( "show" ).addClass( "hide" ); });     $(".hide").on("click", function(){     alert('Clicked...'); });   The show class removes and hide class adds successfully, But onclick is not working for hide class.  What am i missing ?


Years ago i installed ubuntu on a hard drive in my computer. A few days ago, after the release of 18.04, i bought a ssd and reinstalled everything on that. The old hdd is still linked in the computer - just to look up things.  GRUB does index the old hdd as secondary boot option. But i will never ever boot the old system again. So is there any way to remove the old hard drive from the grub options?


Let's say that I have 3 chests, each containing one of these items:   A full set of armour (Leather, White Stained) A Named Lever A Named and Enchanted (Unbreakable) Bow.   How can I "restock" these items to the chests if someone was to remove them? I have a feeling it might involve a trapped chest and some command blocks....


E: The repository 'http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu bionic Release' does not have a Release file

Err:6  bionic Release   404  Not Found [IP: 91.189.95.83 80]


How to set a maximum execution time for a mysql query?

I would like to set a maximum execution time for sql queries like set_time_limit() in php. How can I do ?


Running out of space in root: should I backup then reformat a partition?

I just started using Ubuntu a few days ago, and only gave it 25 GB of space. Now that I look back at it, I should of put 300 GB or more. Is there a way to add more space to my root directory? Or should I just do a backup, reformat a partition, then build off a backup? Or is there a better way? Big noobie here I'm sorry.


Is a function defined at a single point continuous?  For example $f:\{0\}\to\{0\}$ defined by $f(x)=\sqrt{x}+\sqrt{-x}$ is a sum of two continuous functions and is therefore continuous, however for $f$ to be continuous, it has to have the limit $\lim\limits_{x_0\to x}f(x_0)=f(x)$ but it dosen't seem to have that limit.