I saw him kick the stone.   According to my reference book this sentence is grammatically correct even though the verb 'kick' is in present tense while the action has already happened.  If I write like this:     I saw him kicked the stone.   Is this sentence still grammatically correct? Or we must use kick in present tense since the verb saw already clarifies that this is a past action? Or are both right?

Meta: I found a very similar post asking the difference between "I saw him cross" and "I saw him crossing". I have three additional questions on sentences of this form.    In , the accepted answer was "I saw him cross the road" implies I saw the entire event of him crossing the road and "I saw him crossing the road" implies I saw him in the middle of the crossing but I didn't wait to see whether he finished crossing the road.   Q1. But what if we watch instead of see? Consider the sentences below.     I watched her dance alone in the room.   I watched her dancing alone in the room.   Watch implies something that goes on for a while. But does the original explanation still hold, i.e. does the first sentence imply I watched the entire dance and the second imply I did not?    Q2. What if you see actions that are almost instantaneous? Does the explanation still hold good? Here is an example:      I saw a flash of lightning strike the pole.   I saw a flash of lightning striking the pole.   Here, we cannot stop seeing in the middle of a lightning since it happens so fast. Does that make the second sentence wrong or can we still use either sentence to mean the same thing?     Q3. Which of the sentences below is/are correct?     I caught her steal the diamond ring   I caught her stealing the diamond ring   When you catch someone in the act, that person could not finish the act. So does that make the first sentence incorrect?


How can I prove that   $$ \sum_{n=1}^{\infty}[ 2\, n\,\pi\coth^{-1}(2n)-\pi]= \frac{\pi}{2}-\frac{\pi\,\ln(2)}{2}$$  This result comes from using the Infinite product of $\sin(x)$ in the following well-known integral.   $$\int_0^{\frac{\pi}{2}} \ln[\sin(x)] $$  I hope to find a way to directly prove the result , rather than showing it is related to the above integral.  I have spent a great deal of time on this , so any hints or results will be greatly appreciated.   Thank you very much for your help and time.

how can I find sum of series $ \sum_{n=1}^{\infty} (n\cdot \ln \frac{2n+1}{2n-1} - 1) $? It is so weird for me because I put this to Mathematica and it tells me that sum does not converge...  Let consider sum no to infinity, but to n  $$ \sum_{k=1}^{n} (k\cdot \ln \frac{2k+1}{2k-1} - 1) =$$ $$ ln \frac{3}{1}\cdot \left(\frac{5}{3}\right)^2 \cdot...\cdot \left(\frac{2n+1}{2n-1}\right)^n - n = ln \frac{1}{1}\cdot \frac{1}{3}\cdot \frac{1}{5}\cdot ... \frac{1}{2n-1} - n $$ but $$ n = ln e^n $$ so it will be $$ln\frac{1}{e^n} \cdot \frac{1}{1}\cdot \frac{1}{3}\cdot \frac{1}{5}\cdot ... \frac{1}{2n-1}$$  So the limit of it is $-\infty$ Have I done this well or I missed sth?


Any continued fraction that does not terminate or repeat can't be rational or a quadratic irrational.  It is not hard to write something that does not fit these two categories.  Can we still get a closed form for something like: $$ [1,2,3,4,5, \dots ] = 1 + \cfrac{1}{2+\cfrac{1}{3+\cfrac{1}{\dots}}}$$

What is $1+\cfrac{1}{2+\cfrac{1}{3+\cfrac{1}{4+\cdots}}}$ ?  What is $1+\cfrac{2}{1+\cfrac{3}{1+\cdots}}$ ?  It does bear some resemblance to the continued fraction for $e$, which is $2+\cfrac{2}{2+\cfrac{3}{3+\cfrac{4}{4+\cdots}}}$.   Another thing I was wondering: can all transcendental numbers be expressed as infinite continued fractions containing only rational numbers? Of course for almost all transcendental numbers there does not exist any method to determine all the numerators and denominators.


I've been using a small class to emulate Enums in some Python projects. Is there a better way or does this make the most sense for some situations?  Class code here:  class Enum(object): '''Simple Enum Class Example Usage: >>> codes = Enum('FOO BAR BAZ') # codes.BAZ will be 2 and so on ...''' def __init__(self, names):     for number, name in enumerate(names.split()):         setattr(self, name, number)

I'm mainly a C# developer, but I'm currently working on a project in Python.  How can I represent the equivalent of an Enum in Python?


In general, what sizes and settings should be set for the file to print on the t-shirt? For example, to print a logo and maybe some additional text.   What else I need to know while preparing file for print on t-shirts?

What does it mean to colour separate the artwork for T-Shirt printing? It is normally suggested to use Pantone colours for T-Shirt printing. Is it the Pantone Coated or the Pantone Uncoated? The Uncoated one has more subtle colours and we can't choose brighter shades if the design requires that. What is more appropriate for printing? Can we use gradients in T-Shirt printing or is it suggested to stick to flat colours only?   The reason for asking if gradients were ok was to use it as an option for this design:    I was considering it an option, as it will be difficult to colour separate since the textures are clip masked inside the lion.


Consider Matrix $$ A = \begin{pmatrix} 1 & 1\\ 1 & 0 \end{pmatrix} $$  Investigate the sequence of powers of $A$ (i.e. $A^n$ for $n = 1, 2, 3, 4,\ldots$.  Verify that $$A^n = \begin{pmatrix}F_{n+1} &F_n \\ F_n & F_{n−1}\end{pmatrix}$$ for $n \geq 20$, where $F_n$ is the $n^{th}$ Fibonacci number.  I don't get it, please help. Thank you!

$$\begin{pmatrix}1&1\\1&0\end{pmatrix}^n=\begin{pmatrix}F_{n+1}&F_n\\F_n&F_{n-1}\end{pmatrix}$$  Somebody has any idea how to go about proving this result? I know a proof by mathematical induction, but that, in my opinion, will be a verification of this result only. I tried to find through the net, but in vain, if someone has some link or pointer to its proof, please provide, I'll appreciate that.  Thanks a lot!


I was solving some basic Math Coding Problem and found that For any number $N$, the number of ways to express $N$ as sum of Odd Numbers is $Fib[N]$ where $Fib$ is Fibonnaci , I don't have a valid proof for this and didnot understand that how this can be solved using recurrences Can someone provide with it ? If you are not getting it Suppose for N=4 number of ways to write it as sum of Odd Numbers is 3 which is Fibonnaci at $3$  $4=> 1+1+1+1$  $4=> 1+3$  $4=> 3+1$  NOTE-> the composition is ordered $( 1+3)$ and $(3+1)$ are different . UPD -> I do not claim that I observed it myself but in the problem solution I found it , I asked to just find some valid proof / reason to it

Numbers of ways of representing a nonnegative integer as the ordered sum of odd numbers. For the first numbers we find that:  $0 \to 0\quad \text{ways}$  $1 \to 1\quad \text{way}$  $2: (1,1) \to 1\quad \text{ways}$  $3: (1,1,1), (3) \to 2\quad \text{ways}$  $4: (1,1,1,1), (3,1), (1,3)\to 3\quad \text{ways}$  $5: (1,1,1,1,1), (3,1,1), (1,3,1), (1,1,3), (5)\to 5\quad \text{ways}$  So, if $A_n$ is the numbers of ways to represent the nonnegative integer n as the ordered sum of $n$ (nonnegative) odd numbers, then $A_n = F_n$ where $F_n$ is the Fibonacci number.  How could this be proved?   I was trying to prove this by induction, but I'm having problems with the induction step. I really don't know what to do there.


I try to convert a time with timezone to time but failed to, could you please help to advise?  Time with timezone: 2019-01-31T05:20:18.728+02:00 (as you may notice, there is an offset at the end of the time +02:00. Instead of 05:20:18.728+02:00, I want to print out 07:20:18 which means 05:20:18 + the time offset).  Time needed to show: 07:20:18  ... LocalDateTime ldt = LocalDateTime.now(); //my local time is set to GMT ZoneOffset offset1 = ZoneOffset.ofHours( (offset%24) ); OffsetDateTime odt = ldt.atOffset( offset1); System.out.println(odt); ...   My question is updated.  Thanks much, Ivy

When I create a new Date object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT?


I am currently trying to make my own texture pack for Minecraft, I keep looking for the BIN file on the folders but I can't find anything. I want to make my own texture pack but I can't seem to find it, or I can't even see any tutorials about it.  First of all: What folder are the textures anyway?  And also, how can I make my own texture pack?

I've been toying with the idea of creating a custom texture pack for Minecraft, just to see how successful I'll be at it.  Problem is, I have no idea how to go about doing this.    Where do I begin, what steps do I take, and what do I do once I'm finished?


I would like to ask is mysql ok to run a on a raid 5 server. The raid is done using  hardware raid and not software. I saw some older links like this  which gives negative opinion on settings raid 5? As time pass I guess hardware have improve and I guess it should be better now ? Any opinion ?

Is raid 5 suitable for a mysql installation?  Let me explain my application further. My application is a socket programming which will connect with gps device to receive gps string and there after do a further processing. The socket programming will be in another server and db in another server. So during the further processing is where it will query from the db. So here I guess there will lots of i/o rite. Minimally during the further processing there will be minimum of 5 select and the insert will be minimum 1 but at times it can be even minimum 4 or more and also a number of updates. Hope I am clearer now.


I have a dual boot Acer Aspire ES 15 with ubuntu 16.04 and windows7. sometimes i am not able switch on wifi in ubuntu while wifi works perfectly in windows 7. I have to log into windows and then come back to ubuntu for wifi to be start getting connected.  The hardware key for wifi Fn+F3 is not working to in ubuntu.  $ lspci -knn | grep Net -A2 02:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565    Wireless Network Adapter [168c:0036] (rev 01)   Subsystem: Lite-On Communications Inc QCA9565 / AR9565 Wireless Network Adapter [11ad:0642]   Kernel driver in use: ath9k   Kernel modules: ath9k  $ rfkill list all 0: phy0: Wireless LAN    Soft blocked: no    Hard blocked: yes  1: acer-bluetooth: Bluetooth    Soft blocked: no    Hard blocked: no  2: hci0: Bluetooth    Soft blocked: no    Hard blocked: no

I think I may have found the cause of my problems with connecting to wifi in Ubuntu 11.10.  I type this in Terminal:  $ rfkill list all 0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: yes 1: acer-wireless: Wireless LAN     Soft blocked: yes     Hard blocked: no $ rfkill unblock all $    If I am correct I must unblock all of those "yes", right? But nothing happens when I try to unblock. Am I typing the wrong command?    Typing sudo modprobe -r acer_wmi seem to have added another problem, now I can't even try to click on the "Enable wireless"-button as it has been grayed out and 1: acer-wireless: Wireless LAN does not show anymore in the rfkill list. Does anyone have any idea how to fix that?  EDIT: I rebooted and now it is not grayed out anymore and the rfkill list all shows as:  0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: acer-wireless: Wireless LAN     Soft blocked: yes     Hard blocked: no   The 0 is not Hard blocked anymore, but I guess 1: acer-wireless needs to be put off soft blocked somehow.


I am back at this form I have people fill out in SharePoint Designer and have a new small issue, here is my formula:  =AND([Requested Posting Date]>=[Date of Request]+1,IF([Date of Request]="New",[Date of Request]>=TODAY(),TRUE))   If they choose today's date (The Date of Request field) they have to choose at least One (+1 day) (the Requested Posting Date) into the future and everything is working there, but they can choose a past date which is causing some issues.  How would I go about setting up the formula above that I am currently using to only allow you to choose today's date for the Date of Request field and nothing in the past? Let me know how I would set it up so they can't choose past dates with the formula above in a SharePoint form.  It is for people requesting work or tasks to be completed by me and I have two date pickers. I just need to know how to get the date pickers to not allow you to choose a past date, as if they were grayed out (the past dates, that is); how would I write that?

So I have a date field that needs to be a future date when the item is created.  The formula I have set up for that is:  =[Date Required]>TODAY()   This works well however I am running into an issue.  If the department is updating a List item after the Future Date it will still provide an error.  Is there a formula to use when the column validation can only be active when a new item is being created and not edited?    Thank you


I'm searching on internet but I can't find anything about it.  Is there a way to do a scan for a wifi connection and to connect to one with a C/C++ program in Linux?

I would like to get a list of the wireless networks available. Ideally this would be via some C call, but I don't mind if I have to kludge it with a system call. Even better if the required C call or program doesn't require some exotic 3rd party package.  The internet seems to suggest I use sudo iwlist <interface> scan which does seem to do the trick from the command line, but I'd rather not require root permissions. I only want to see the basics, not change anything.


I've developed a custom controller that serves as a simple endpoint, POST method. This controller has custom access control. Custom access is done by looking for a header in the HTTP request, by making the controller object a service as well. Everything works great. Except that when I return AccessResult::forbidden() .. I get the HTML of the access denied page .. and I don't really want that .. I'd like to return just a short bit of JSON. What can I do to return something that is JSON, and not the Access Denied page HTML, for this particular route, when the access() method returns AccessResult::forbidden() ? I've read that appending ?_format=json to the url works, and in my case it does. Is there anyway to achieve the same result without adding this url parameter?

I create a small API for one project using Bathic Authentication. The API consists of some custom paths defined in routes in a custom module. Using JsonResponse() in the controller we send back a JSON object with data.  But in case the user does not have permissions to access the path the route gives back the 404 HTML page. How can I tell Drupal to return a JSON object for my API paths under every circumstances?  Another example: we defined just to accept GET in the route. Using POST will return a HTML error page - we want Drupal to send back JSON with error information.


I pray to kindly show the intuition behind the concept of rough path. Google provided  some links that deal with the notion  of rough path but was difficult for me to  have an idea.

here is a textbook, but I am completely lost at the definition. It is defined on page 13, chapter 2. A rough path is defined as an ordered pair, $(X,\mathbb{X})$ where $X$ is a continuous process and $\mathbb{X}$ is a higher ordered area process which defines certain integrals that satisfy "Chen's Relation". What is this area process and what does it have to do with the original continuous function? What are these integrals (which he emphasizes are defined by the area process, not the other way around)? So could the area process be anything satisfying Chen's relations?


I don't understand why * returns itself when there's no match. This  states that this is the case, but I don't understand the rationale for this behaviour. Why doesn't *, or any generic pattern, just return an empty string in case of no match?  $ls      # Look, no files $touch a # Add a file $echo *  # Works as expected a $rm a    # Remove the file $echo *  # Will output a '*'. Why not ''? * $*       # Ok, * will fail, but how come the previous output? -bash: *: command not found $

In most shells nullglob isn't the default. That means, for example, if you run this command  ls *   in an empty directory, it will expand the * glob to a literal *, instead to an empty list of arguments. There are ways to change that behaviour, so that * in an empty directory will return an empty list of arguments, which would seem more intuitive.  So, is there a reason why nullglob is disabled by default? If so, what is that reason?


In Solo: A Star Wars Story, we see the Millennium Falcon for the first time when Han Solo was young, and when it wasn't just a hunk of flying trash. It was smoother, it had blue paint, and looked as good as new. But the most different part, other than the fact that Lando Calrissian owned it, was that the non-existent front section was... EXISTENT! Here's an example.  I made a model of this Millennium Falcon, and the description of the front section on the box was that it was an "escape pod." I also know, according to  that the front part was "missing" from the beginning of Star Wars, so is there really an answer?

A  shows at 1:28 the Millennium Falcon having quite the streamlined front end:  When it is seen in Star Wars: Episode IV - A New Hope, it clearly has a more distinctive gap in its front:  When and why is this modification made?


Some context: I have been tasked with repairing a PC which is running non-genuine Windows 7 Professional. The PC does come with an OEM license for Windows 7 Home Premium, and I will be offering to help the owner go genuine by reinstalling this version. But there are a lot of personal files stored on the PC, and it is preferable that I leave these files in place rather than backing them up and restoring them afterward, because of reasons.  If I install Windows 7 Home Premium from disc, can I do so non-destructively i.e. without erasing the existing user account and information?  (This question is similar to some others, but those I can find seem to be either about upgrading rather than downgrading, or about downgrading without a reinstall, as opposed to reinstalling without erasing the target disk first.)

A few months ago, I acquired a Windows 7 Ultimate product key and updated from Home Premium to Ultimate. Well, now I get the "This copy of Windows is not genuine" message. I have the Home Premium product key that I was using before I upgraded to Ultimate. I would want to know how I could downgrade from Ultimate to Home Premium without having any CD and only the product key. If it helps, it's a 64-bit OS. Thanks in advance!


I was involved in some not-safe-for-work (NSFW) photoshoots and amateur videos with a photographer in my undergrad (in the US) when I was going through a rough time. The media include my face in them (yes, stupid decision), and since I signed a model release he owns the pictures and videos.   He then set up a Tumblr account and posted the pictures and videos there (which I knew of and didn't mind at the time). However I recently realized that people had been stealing them and posting them on porn sites, and they've been up there for around 3-4 years now. There's no identifying information in them other than my face, so you wouldn't be able to just find them if you searched my name; you have to put in somewhat obscure terms or just happen to come across them to find them, really. Nevertheless I was shocked to see myself there. I'm trying to take them down but the videos are just on so many random porn sites that it'll be impossible to remove all of them. On top of that I don't technically own the media so there's that.   Anyway, I'm wondering how much of an impact this might have on my career? I'm currently doing a PhD in the EU and will apply to both industry and academia jobs in a few years.   I've seen , but decided to post a separate question since the other poster was able to take down the pics and their media was not as widely proliferated as mine are (from what I could tell), plus mine are on porn sites.   I've managed to have the images/videos removed from (what I'd consider) one of the two major websites they were on; hopefully I can get them removed from the other one too and then it'll be even more unlikely that people will find them?

I have an ex who has posted nude photos of me online in the past, linked to my online social media, and posted my full name and where I live. I am concerned he may do so again once he finds out I'm now in a PhD program (he's very jealous of any success I have), and may link to my school bio page, or worse.   Revenge porn is illegal in my state, and the case against him is currently pending. I have also gotten the photos taken down with a DMCA letter (I hold the copyright over the photos in question). At this point, I am concerned with how a future attempt could affect my career.  I can handle the embarrassment now that I've been through it once, so if that's the biggest concern, I can deal. I just don't want to lose a career over it, given how small academia really is and how a reputation might follow one around.  My question is, if I don't change my name (I've considered this, assuming I can keep him from finding out) and my photos are circulated and discovered by faculty or students, how likely am I to be thrown out of my PhD program or later lose a job as an untenured prof? Is a name change worth it?   (If it makes any difference, they are essentially just topless portraits; I'm not engaged in any sexual activity or anything weird, and were taken 10 years ago when I was very young and foolish.)


I am trying to fully understand the concept of Azimuth and I am encountering some inconsistencies (or maybe it is my error).  I show you some examples that do not match, hoping somebody can explain me how this really works.  I show the coordinates in EPSG:900913, in PostGIS and using my own JavaScript function.  MY FUNCTION  /* Difference between the two longitudes */ var dLon = lon2 - lon1; /* Y value */ var y = Math.sin(dLon) * Math.cos(lat2); /* X value */ var x = Math.cos(lat1) * Math.sin(lat2) - Math.sin(lat1) * Math.cos(lat2) * Math.cos(dLon); /* Calculates the azimuth between the two points and converts it to degrees */ var angle = Math.atan2(y, x) / Math.PI * 180;   EXAMPLES  /* Same Y, not on the equator */ Point A: (-81328.998084106, 7474929.8690234) Point B: (4125765.0381464, 7474929.8690234) Result in PostGIS: 90 degrees Result in my JS function: 74.232 degrees  /* Same Y, on the equator */ Point A: (-81328.998084106, 0) Point B: (4125765.0381464, 0) Result in PostGIS: 90 degrees Result in my JS function: 90 degrees   I understand, that on the equator, the Azimuth is 90 (or 270) for a horizontal line.  think that if you draw a horizontal line a bit North (or South) of the equator, then the Azimuth is not 90 degrees anymore. But... PostGIS tells me that it is always 90 degrees when we have the same Y.  Additionally, this  also show that the Azimuths of horizontal lines are not 90 degrees when Y != 0 (not on the equator).  How is it correct?  Thanks

This is the result of mapping the straight line path from a point in US to Poland using .  Also, planes from Asia to US would travel almost over North Pole.    Why is the path so curved? I agree that this is a flat representation of a sphere, so I do expect some arc, but I don't think earth has this much curvature.  What am I missing here?


I have been using a package to calculate $R^2$ values for mixed models. The documentation for the package has the following quote from Harry Singmann:     "The fact that calculating a global measure of model fit (such as $R^2$)   is already riddled with complications and that no simple single number   can be found, should be a hint that doing so for a subset of the model   parameters (i.e., main-effects or interactions) is even more   difficult. Given this, I would not recommend trying finding a measure   of standardized effect sizes for mixed models."   Why exactly is this the case?  More over I am interested in why finding $R^2$ for each individual predictor is problematic?  Edit: I'm also curious as to whether the squared semi-partial correlation for each predictor is also problematic.

I have been reading a lot online about estimating standardised effect sizes in mixed effects models and it seems like there are formidable challenges even for something relatively broad like an $R^2$, let alone for contrasts. What is a simple explanation (that I could supply to a reviewer) for why effects sizes are so challenging to perform in these more complex models?


I wanted to power a 3-6v dc mini motor pump using mobile charger do I need to use a limiter to control the current since motor requires only 130-220mA and charger output is 2A

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


I am trying to create a table in which a column consists entirely of chemical formulae. I would like to use the array package to automatically insert the \ce{...} command, taking the cell's content as argument.   I understand from “ ” that \bgroup and \egroup only work for replacements for low level commands like \textbf. Unfortunately I do not understand how to use the realboxes package provided there to make it work. I cannot assess if it is appropriate for that task in the first place.  Here is a minimal not working example of what I am trying to do:  \documentclass{article} \usepackage[version=4]{mhchem} \usepackage{array} \begin{document}   \begin{tabular}{>{\textbf\bgroup}l<{\egroup}%                   >{\ce\bgroup}l<{\egroup}}\hline     R1 & -C6H5 \\     R2 & -C6H4F \\\hline   \end{tabular} \end{document}

I want to apply a macro to all the cells of a column with the cell content as the input to the macro. Is this possible?  For example if the cell contents have the word TEST, the macro should take TEST as its argument.


The following paragraph is an excerpt from  entitled “Is North Korea a Nuclear Threat or Not? The President Now Says It Is” published on 22 June 2018:     “They [Trump’s supporters] said that by talking with Kim Jong-un, Donald Trump was going to start World War III,’” Ms. [Lara] Trump said. “And yet here we are on the cusp of a denuclearized Korean Peninsula,” she said, adding, “They won’t try and stop a loser, but they will try and stop a winner.”   What does the construction “They won’t try and stop a loser, but they will try and stop a winner” mean?

What is the difference between try to do and try and do?  To me (non-native speaker), asking someone try and do this seems a bit rude. It's like saying you can try all you want but this must be done: try and fail is not an option. However, asking someone try to do this means I am asking you to try: success is bonus, failure is OK.


I'm trying to query for records that do not contain LTD or LLP in the name and are also not assigned to a certain record type. I have tried just about every variation with parenthesis and AND/OR conditions but jo joy. Can anyone help? Fields removed for simplicity.   SELECT Full_Name__c, Account.Name FROM CONTACT   WHERE   NOT(account.name LIKE '%LTD%' OR account.name LIKE '%LLP%')   AND  (RecordType.Name != 'Broker' OR account.RecordType.Name != 'Broker')  ORDER BY account.name   Note that the below query does work:   SELECT Full_Name__c, Account.Name FROM CONTACT   WHERE   NOT(account.name LIKE '%LTD%' OR account.name LIKE '%LLP%')   ORDER BY account.name

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


I'd like write a script. There is an object with several keyframes. (example in 1,50,100,120 frames) I need an index and a shifting factor (let it index=2 and shift=30 frame)  The script need to stretch (or move) the keyframe after the index with shift factor. So when the script finished then the keyframe positions will be (in this case) 1,80,130,150)  I dig the blender API and I wrote some scripts already but I don't know what can I do. Please help me.

Is there a way to move a keyframe using Python (change the frame at which the keyframe is set)?  The keyframe already exists. I need to access it and move it, with the script.


I have a method that's about ten lines of code.  I want to create more methods that do exactly the same thing, except for a small calculation that's going to change one line of code.  This is a perfect application for passing in a function pointer to replace that one line, but Java doesn't have function pointers.  What's my best alternative?

Does the Java language have delegate features, similar to how C# has support for delegates?


Any help on how to install rstudio for desktop on ubuntu 17.04 .  Thank you in advance

How do I install a .deb file via the command line?


It would seem to me that $1^{-∞}=\lim_\limits{x→∞}1^{-x}=\lim_\limits{x→∞}\frac1{1^x}=\frac11=1$ no matter how we approach it. However,  with a mysteriously unqualified “$\text{(undefined)}$”. Similarly,  that the result isn't a number. On the other hand, the very mathematically inclined  languages  and  both  $1$. What reasons are there to reject $1^{-∞}=1$?

Why is $ 1^{\infty} \not= \lim_{t \to \infty} 1^t = 1$?  It seems like they're saying the same thing. After all, $1$ to the power of any positive integer is equal to $1$.  I suspect that I'm misunderstanding some fundamental concept and would appreciate it if someone could explain it to me.  Thank you.


My client sends me some data via web service, which he created, and expects 4 digit long value as return code. For example return code 9461 is for failure of operation A, or return code 0000 is for success. There is no problem of returning error codes, however when return code is 0000, that is success I am facing the following problem.   I can't create 4 digit long which starts with 0. I tried to set webservice response as follows  response.setResponseCode(0000L);   However it sends 0 instead of 0000. I know I can use hardcoded "0000" or String.format or DecimalFormat, but setResponseCode takes long  as input, therefore I can't use string.  Is there any way to set zeros before number so that 0 can be set like 0000 or 45 can be set like 0045?

How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001).


I accidentally put it when give the command sudo update-grub and I just ignore the text and pressed 'y' and now I've a boot menu, but i dont wanna this. I've only an OS.  I'm trying to learn about linux, so if you could explain it will be very helpful.  Thanks in advance!

Recently I decided to use only Ubuntu and there is no Windows in my laptop. When I turn on my laptop the GRUB menu is showing but I don't need to choose OS anymore.   How can I remove or hide this? And after removing this how could I access to recovery mode?


I have a php page that has blobs from my database  i need 404 image to display when there is no blob     <?php $host = "localhost"; $username = "root"; $password = "12345678"; $db = "sis"; $PicNum = $_GET["PicNum"];  mysql_connect($host,$username,$password) or die("Impossível conectar ao banco.");  @mysql_select_db($db) or die("Impossível conectar ao banco.");  $result=mysql_query("SELECT * FROM usuarios WHERE id=$PicNum") or die("Impossível executar a query ");  $row=mysql_fetch_object($result);   Header("Content-type: image/gif");  echo $row->avatar;?>

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Is it possible to integrate Rhythmbox in the Ubuntu Mate sound menu similar to Ubuntu?

I recently changed over to mate from unity on my laptop. Everything is great, brilliant even, but I am really missing Unity’s integration of music/ video apps into the volume icon. Is there a way of including this functionality in mate 16.04?


I would like to offer a bounty (incentive) and would like to purchase it instead of offering my own reputation as the bounty.   I see that Careers.SO already has a system to accept transactions for posting a job listing so it shouldn't be far fetched to hook bounties up to the transaction system.  I'll think of some responses and provide my own:   This can/will be gamed. - Probably. But unfortunately I make money faster than I make reputation. If you really want to pay for help, hire someone. - I would like to make the question & answer available while also involving the community; not just a company who I'd have to spend time searching for anyways. Setting a price for bounty-rep will disrupt the economy. - I suppose. But $350 for a job posting was decided on. I assume something can be done for a bounty too. You'll utterly destroy the community by involving money. It'll become greed and mayhem. For the love of man, it'll turn into 4chan! - Although very possible, I do have my doubts this will actually happen.

As discussed here:  offering actual money as a bounty sets the wrong incentives. However I would suggest giving users the ability to pay with money for offering a bounty regardless of their reputation. The bounty would still count as reputation for the receiving user but would not be discounted from the paying user's reputation.


I joined stackoverflow the other day with the ID . Could these two accounts be merged, preferably the newer one being preserved and the questions from this one being migrated?

I accidentally posted a question without being logged in. Is there a way to associate that question with my account?   For more information, visit "" in the .   a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms)


I have a refugee travel document (UN Passport) issued to me by Greece.  I would like to travel to Australia or Canada.  Do I need a visa for this travel?

is it possible for the non-EU spouse  of the EU citizen to travel to Australia only with the EU residence permit card and a travel document (alien's passport) released by the host EU country, knowing that the Australian  authorities do not recognize the non-EU spouse's passport?


In special relativity, the proper time is defined as  $$d\tau^2 = c^2t^2-(x^2+y^2+z^2).$$ One usually introduces a matrix $\eta$ to represent it. I have seen two . One has three minuses: $$\eta_3=\left(\begin{array}{cccc} 1 & 0 & 0 & 0 \\ 0 & -1 & 0 & 0 \\ 0 & 0 & -1 & 0 \\ 0 & 0 & 0 & -1 \end{array}\right),$$ and the other one has only one, so $\eta_1=-\eta_3$. Thus, $\tau^2=x^\mu\eta_{3,\mu\nu}x^\nu=-x^\mu\eta_{1,\mu\nu}x^\nu$, summing over repeated indices.   I have been told this is an issue in the physics community, and that relativity typically uses the $(-,+,+,+)$ East coast sign convention while particle physics/quantum field theory often uses the $(+,-,-,-)$ West coast sign convention. Why is that?

I am studying General Relativity and some basic QFTs. It bothers me a lot that different books use different metric signatures, i.e. $(-+++)$ and $(+---).$ Can anyone tell me the advantages of using both of them, or why some people prefer the former while some prefer the latter? I would like to know which one should I while tackling different problems.


So recently I wanted to install some programs on my computer, and when I did "sudo apt install [package]" I get E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?  I left my computer on for like 2 hours, came back, and nothing changed. Does anyone know how to fix this??? and yes i know this is a duplicate, but nothing else worked so i am asking myself in hope to find better answers EDIT: I found the issue. There is a process called Unnatended Upgrades which installs and upgrades things in the background.

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


When a distribution is cut into percentiles, is there any rule whether it should be included the lower or the upper bound inside the percentile?  Example: 1,2,3,4,5,6,7  The median is obviously 4. If I wanted to cut the distribution in two parts should I include 4 in the lower or the higher percentile?  I'm sorting a long list of a daily observations of the same variable into daily deciles. I am going to include the boundaries in the lower decile for necessity, because the first decile is often equal to 0, which is also the minimum value that the variable can have.

Given the following data:  972, 975, 985, 993, 993, 995, 998, 1001, 1004, 1007, 1008, 1009, 1011, 1015, 1016, 1020, 1022, 1032  I calculate the lower quartile as follows:  Number of values: 18, Number of 'gaps': 17.  Lower quartile is at 17/4 + 1 = 5.25th value. 5.25th value is 993 + (995 - 993) x 0.25 = 993.5  Upper quartile is at 3 x 17/4 + 1 = 13.75th value. 13.75th value is 1011 + (1015 - 1011) x 0.75 = 1014  Both the Excel QUARTILE function and the R quantile function agree with me. However the book I am using (Understanding Statistics by Graham Upton and Ian Cook) give different answers (993 and 1015 respectively). I'm confused. Which is correct?


This might be a possible duplicate but i can't seem to pinpoint the exact solution. Camera works fine and returns the image uri on devices below api 23. However app crushes right after capturing image on devices apove api 23 with log error  java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { act=inline-data (has extras) }} to activity {ana.foodi/ana.foodi.MainActivity}: java.lang.NullPointerException: uri                                                          at android.app.ActivityThread.deliverResults(ActivityThread.java:3940)                                                          at android.app.ActivityThread.handleSendResult(ActivityThread.java:3983)                                                          at android.app.ActivityThread.-wrap16(ActivityThread.java)                                                          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1548)                                                          at android.os.Handler.dispatchMessage(Handler.java:111)                                                          at android.os.Looper.loop(Looper.java:207)                                                          at android.app.ActivityThread.main(ActivityThread.java:5765)                                                          at java.lang.reflect.Method.invoke(Native Method)                                                          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)                                                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)                                                       Caused by: java.lang.NullPointerException: uri                                                          at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:60)                                                          at android.content.ContentResolver.query(ContentResolver.java:481)                                                          at android.content.ContentResolver.query(ContentResolver.java:441)                                                          at ana.foodi.MainActivity.onActivityResult(MainActivity.java:672)   After checking with breakpoints,realised Uri (selectedImage) is null below:   @Override public void onActivityResult(int requestCode, int resultCode, Intent data) {     super.onActivityResult(requestCode, resultCode, data);     final String filePath;     if(resultCode == Activity.RESULT_OK && REQUEST_POST_PHOTO==999){           if(requestCode == 2 ) {             requestRuntimePermission();             Uri selectedImage = data.getData();             String[] filePaths = {MediaStore.Images.Media.DATA};             Cursor c = this.getContentResolver().query(selectedImage, filePaths, null, null, null);             c.moveToFirst();             int columnIndex = c.getColumnIndex(filePaths[0]);             filePath = c.getString(columnIndex);             c.close();   I've tried requesting runtime permission with this   public void requestRuntimePermission() {     if (Build.VERSION.SDK_INT >= 23) {         if (ContextCompat.checkSelfPermission(context,android.Manifest.permission.WRITE_EXTERNAL_STORAGE)                 != PackageManager.PERMISSION_GRANTED) {             ActivityCompat.requestPermissions(this,                     new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);         }     } }   but error persist.  startActivityForResult call  REQUEST_POST_PHOTO=999;                 Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);                 startActivityForResult(cameraIntent, REQUEST_CODE_POST);

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


How can I change the title of the xfce4-terminal (0.6.3) window, from within the terminal for the current session?  I can change the title by using the Menu bar Terminal, then Set Title....  I've tried the following, which I found while researching the matter, but none of them worked:  echo -ne "\033]0;SOME TITLE HERE\007"  printf '\033]0;%s\007' 'SOME TITLE HERE'  export TERM='SOME TITLE HERE'  xtermset -T 'SOME TITLE HERE'   The solution states in the similar questions does not seem to work in my case.

I want to make a shell alias that starts a certain program and also changes the title of the terminal to the name of the program.  How can I do that?  In case it matters, I am running the terminal on Ubuntu and connecting to a Debian server via ssh.


here's the file:   I've fiddled with the settings, but everytime, it just imports as a bunch of plane axies, i've confirmed that they do open and work in autocad, but blender is much easier to work with....  please help

I feel like I've fallen at the first hurdle, importing a DXF file.  By that I mean, I figured out how to enable the dxf import tool, and imported the file I had, but that's about it.  I'm struggling how to manage the workspace and actually view the file I've imported or do anything with it. Maybe I'm doing the import process wrong? Do I import it as a new scene, do I center geometry, etc, etc?  When I selected center geometry I could at least see something, but it looked like my imported file is maybe way to big for the workspace, as all I could see when I zoomed right out, was the first letter or so of some text from the imported file. (see screen shot).    Ok, I went the other way as you pointed out. Used 0.01, which brought a lot more into view, but still very large, so... used 0.001 which brought more into view, but it doesn't look anything like the plans I see in Autodesk?    To give you an idea of what it should be looking like, this is it in autocad. View from each side, floor plan for ground and 1st floor... two view of the entire building plot, one showing topography and a street view elevation.    Two more Blender screen grabs: this is imported at 0.0001. The first image is relatively close up to the workspace grid, and then second is zoomed out. The closer view looks like I'm getting close to the size I need. In the zoomed out view... I've no idea what is forming the large circular patterns as I can't see anything like that in the original drawings???  Would it help my progress if I removed some of the layers from the original file? I obviously don't need things like drains and internal wood framing, water mains, wiring, etc.     As you can see from the last screen grab... I've kinda got the plans into the work area, but I don't know what is affecting the view. What is causing this grey shading across the work area?  There was more of it, in ever increasing circles going out from the center, but I removed some by hiding certain layers, but can't seem to view just the plans without this shading?


My objective is to create a script (or a Jenkins job) which remotely uninstalls, installs(.msi) on Windows VMs from a Linux machine.  I'm new to windows stuff so here I am,  I'm currently ssh'ing to Windows VMs using paramiko in python and executing commands in Win command prompt (cmd).   For uninstall - msiexec /q /x "App.msi" /qn.  It doesn't work sometimes.  Opening a program(as administator) - I'm scheduling a task using Windows Task scheduler which doesn't open the program as admistrator but does show UI. (Will run at the correct time if VMs timezone changes)  Alternative was  "C:\PathtoProgram.exe" but it the program only shows up in Task manager without any UI which is necessary.  ip = device['hostname'] ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(ip,22,DEFAULT_WINDOWS_LOGIN,DEFAULT_WINDOWS_PWD)  #Uninstall Current Build cmd = 'msiexec /x "setup.msi" /qn' helptext = "Uninstalled %s on %s" % (current_version, ip) uninstall_current_build(ssh, cmd) time.sleep(3)  #Downloads new build from URL download_url = json.loads(build_version).get("downloadUrl") cmd = 'curl -o setup.msi %s' % (download_url) helptext = "Downloaded %s on %s" % (current_version, ip) execute_ssh_command(ssh, cmd, helptext)  #Install new Build cmd = 'msiexec /i "setup.msi" /qn' helptext = "Installed %s on %s" % (current_version, ip) execute_ssh_command(ssh, cmd, helptext)  #Open Program vm_time = (datetime.utcnow() + timedelta(minutes=1)).strftime("%H:%M") cmd = 'SCHTASKS /CREATE /SC ONCE /TN "OpenTask" /F /TR "\Path\To\program.exe"" /ST %s' % (vm_time)     stdin, stdout, stderr = ssh.exec_command(cmd)   def execute_ssh_command(client, command, helptext):     stdin, stdout, stderr = client.exec_command(command, get_pty=True)     for line in iter(stdout.readline, ""):         print(line)     print(helptext)   Is there a better or cleaner way to do this?

msiexec is command prompt software that installs an  program. But I have found that you can install an MSI file from the command line by just typing in the name of the MSI file on the command line.  But in order to uninstall the MSI file, it seems you have to call the msiexec program and give it a /x or /uninstall.  How can I uninstall an MSI from the command line without using the msiexec routine?


I have a problem with my encoding in mozilla firefox, I tried in chrome and explorer, everything goes well. The problem is that : If I submit the form and login or password are invalide the charcaters are not encoding. I added on the html :   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />   Is that a problem in mozilla? Help me please. Exist a solution for this problem?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


How many different ways can the balls be placed if each box gets at least $4$ balls each, but no box gets $20$ or more balls?  I was thinking about finding all the possible ways which every box gets at least $4$ balls which would be $47\choose44$ ways $\rightarrow$ $16215$ ways. Then subtracting that number by the number of possible ways that a box could get 20 or more balls ($16215$ - $20$ or more balls possibilities). The thing is I don't know how to get the number of ways if a box gets $20$ or more balls. Any tips?

The problem of counting the solutions $(a_1,a_2,\ldots,a_n)$ with integer $a_i\geq0$ for $i\in\{1,2,\ldots,n\}$ such that $$a_1+a_2+a_3+....a_n=N$$ can be solved with a stars-and-bars argument. What is the solution if one adds the constraint that $a_i\leq r_i$ for certain integers $r_1,\ldots,r_n$?  e.g. for $n=3$, $N=6$ and $(r_1,r_2,r_3)=(3,3,2)$, the tuple $(a_1,a_2,a_3)=(2,3,1)$ is a solution, but $(2,1,3)$ is not a solution because $a_3=3>2=r_3$.


I'm looking for an affordable alternative to Illustrator, for Mac or PC, or even iPad, for drawing vector graphics. I have training and experience with Freehand (RIP) and Illustrator, but cannot afford to maintain the upgrade chain on my personal machines.  Thanks.

Can you recommend a good alternative to Adobe Illustrator?   I am learning vector based graphic design, but I am not ready to make such a large investment as to purchase a copy of Adobe Illustrator. Also, Illustrator might be a little more power than I need at the moment. I am using a Macintosh.


Is it possible to see an analogy between the holes and positron particle behavior? The holes are particles that behave oppositely to the electron in current conduction.  So it is not the electron which the same behavior of holes. Positron is just the antiparticle of the electron that has same positive charge. In what way do these two concepts differ ?

: [The Dirac sea is a theoretical model of the vacuum as an infinite sea of particles with negative energy. It was first postulated by the British physicist Paul Dirac in 1930 to explain the anomalous negative-energy quantum states predicted by the Dirac equation for relativistic electrons. The positron, the antimatter counterpart of the electron, was originally conceived of as a hole in the Dirac sea, well before its experimental discovery in 1932.]  and:  [Dirac's idea is completely correct in the context of solid state physics, where the valence band in a solid can be regarded as a "sea" of electrons. Holes in this sea indeed occur, and are extremely important for understanding the effects of semiconductors, though they are never referred to as "positrons". Unlike in particle physics, there is an underlying positive charge — the charge of the ionic lattice — that cancels out the electric charge of the sea.]  It always confused me to think of holes as positive charge carriers in semi-conductors as not being real: real electrons move from one lattice-position to another lattice-position, which effectively looks like a positive hole in the lattice that is moving in the other direction, but in reality a real electron moves, the hole is kind of an "illusion".  On the other hand the positrons are always introduced as real hard-core particles.   The quotes from the Wikipedia article make me unsure: how should I look upon these phenomena?   Edit: holes in a Dirac sea give rise to real pos. entities in one case and to unreal pos. entities in another - how can we distinguish, is it a matter of formalism?


How to run script residing on the client on a remote host and get results back to the client in one go.

I would like to run  something > file   on a remote system through ssh, but if I run  ssh host something > file   the redirection is executed locally as ssh etc > file  I've tried it with ' or '' or dd or with a pipe | instead, but I can't get it to work. How can this be done?


How to calculate $$ \int\limits_{0}^{\frac{\pi}{2}}\frac{\mathrm{d}x}{1+\tan^{a}(x)} \;, $$ where $a$ is a constant? Any hint will be appreciated.

Evaluate the integral $$\int_0^{\pi/2} \frac{1}{1+\tan^\alpha{x}}\,\mathrm{d}x$$


So I know Ubuntu has a slideshow option in the wallpaper settings, containing all default wallpapers for that release. This means that the functionality is already there and actually working! But I can't seem to find a way to create my own slideshow with my own collection of wallpapers. Does someone know how I can do this?  Thanks for the help!

How do  I create a desktop wallpaper slideshow with my own set of images?   With the images coming from a pictures folder, or pre-selected With the images displayed in order, or randomly With the images changing every few minutes, or after random periods of time


Determine whether the following series is convergent or not  $$2\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n+1}\sum_{k=1}^{n}\frac{1}{k}$$  My trial : Since I was stuck in this problem, I drew the sequence in computer so that I was convinced it converges to zero. So, In order to use alternating series test, I tried to show $\frac{\sum_{k=1}^{n}\frac{1}{k}}{n+1}$ is decreasing and converge to zero. I can identify the series is decreasing, but I was stuck in showing it converges to zero. Could you give me a few hint to proceed the next step..?

How to evaluate the series: $$  2 \sum_{n=1}^\infty \frac{(-1)^{n+1}}{n+1}\left( 1 + \frac12 + \cdots + \frac 1n\right) $$  According to Mathematica, this converges to $ (\log 2)^2 $.


The Sequence ${a_n}$ satisfies the following condition :: $|a_{n+1} - a_n|$ $\leq$ $\alpha$$|a_n-a_{n-1}|$,   $0<\alpha <1 $ for all natural numbers $n\geq2$ I approached the question like this :: In a field of real numbers, A sequence is convergent iff it's cauchy. So I tried to prove that the sequence is convergent using monotone convergence theorem. Using Induction, I first proved that the sequence is monotonous. And again using induction, trying to prove that it is bounded, but I am stuck here. Apart form this, I think applying Cauchy's general principle of convergence to prove this would be a more neater technique. Cauchy's General principle of Convergence states that the necessary and sufficient condition for convergence of a sequence ${S_n}$ is that for each $\epsilon$, there exists an $m$ such that $|S_{n+p}-S_n| < \epsilon$, $\forall n>m$ and   $p\geq1$ Please let me know how this can be approached by either of the ways. Thanks.

Here's the proof which shows that every contractive sequence satisfies the Cauchy criterion, and I don't seem to be convinced with it.    My doubts:   Why is the fact that the RHS tends to zero on approaching larger $n$, sufficient to say that we can always find a natural number (say $K$) such that the Cauchy criterion is met for $m,n \ge K$ What exactly is the epsilon we choose, here? Is it the expression on the RHS? If so, we should be able to show that the RHS ranges over all real numbers, because we're concerned with all $\varepsilon >0$


How do I properly connect the SSS texture in a Blender using nodes?

How do I properly connect the SSS texture in a Blender 2.8 using nodes? Blender 2.8 Without and with the SSS texture:


Bash manual says that brace expansion is performed before any other expansions.  I am writing a script which accepts two arguments:  #! /bin/bash  for b in {$1..$2}; do echo $b; done   I run it like:  $ ./myscript 0002 0010 {0002..0010}   The output isn't what I hope.  I hope to perform parameter expansion before brace expansion.  The expected output of my example is 0002 0003 0004 0005 0006 0007 0008 0009 0010, not 2 3 4 5 6 7 8 9 10. What would you  replace {$1..$2} with?  I hope that the solution works even when $1 and $2 are strings not just made of digits, but also made of letters and digits.  Note that the values $1 and $2 can only be given as arguments to the script. I think it is clear from the beginning, but point it out in case not.

I want to use $var in a shell brace expansion with a range, in bash. Simply putting {$var1..$var2} doesn't work, so I went "lateral"...   The following works, but it's a bit kludgey.    # remove the split files echo rm foo.{$ext0..$extN} rm-segments > rm-segments source rm-segments   Is there a more "normal" way?


I just stumbled upon this website:  http://meta.sharepoint.readquestion.com/   And this site has scrapped almost all the contents of SharePoint Meta and it comes on Google Search as well. Is this something to be reported to Stack Exchange HQ?

of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under . For my fellow non-lawyers, that license basically means:   Anyone can use any Stack Exchange posts at any time without having to ask for permission Making money off of the copied content is permitted You don't even have to copy stuff from here verbatim; you can just use it as a starting point and make whatever edits you want There are just two rules you have to follow:   You have to provide . Simple links to the original post and author info are just fine. You have to  and allow other people to use your content, as long as they follow these very same rules. How meta!    (If you ever forget any of that, and want to refresh your memory, the license info is linked to in the footer of every page.)  There are, in fact, a lot of people who republish varying amounts of our content for assorted reasons. Unfortunately, there are some Stack Content Republishers Attributing Poorly and/or Excelling at Ranking (SCRAPERs, for short).  In this context, "attributing poorly" means any use that doesn't follow our attribution rules or make any other reasonable attempt at give credit. This can get pretty egregious; I've seen SCRAPERs that not only don't link back to SE originals, but also use fake author info and post dates to make it harder to find originals. By "excelling at ranking," I'm referring to copycat sites that end up higher in Google results than the original SE sites do for the same content. That's not necessarily wrong, but in some cases, it indicates inappropriate SEO hackery.  So, the question is: what can you do if you spot a SCRAPER?


I’m not quite sure of the biology behind it, but for my question let’s assume that spinning of any kind would cause dizziness as a more dense object would sink to the outside of the body showing that centrifugal force is present. If the astronaut, alone in a black universe with no reference point, was spinning would he be able to tell? (My guess is no). By an extension of that, would he feel dizzy. If he was spinning he would feel dizzy, and if he wasn’t spinning he wouldn’t feel dizzy. Would there be any way to know as the perspective of spin is relative? Would the denser fluids inside him be pushed to the outside?

We can imagine an object floating in the known universe, maximally distant from any other large mass. Maybe it has been there since coalescing after the big bang.  What physical phenomena tell it whether it is rotating relative to the rest of the universe and therefore experiencing a centrifugal (?) force.  Is it the combined gravity of all other matter? Is it 'spooky action at a distance'?  Is it because it is rotating relative to 'empty space'?


I need advice...  I am an Android developer with 1 year of experience. After a last project I can't find a job because everybody is looking for much more experienced developers.  I did some manual QA jobs also in the past - that's why now I am considering to move into QA again (there are lower enter barriers in this field). But I'm affraid what most HR companies alredy familiar with my CV and "Android developer" profile (I live in relatively small city). And if some HR manager will receive my CV for QA position- he/she will decide that I'm developer/ not tester/ overqualified... How can I overcome this and receive some calls for QA positions?  Thanks for any thoughts!

I've around 10+ years of experience in Banking operations including  reconciliations, sales, customer services, asset management, and financial transaction QA.  Coming to academics I've done my PG in commerce (costing, auditing, banking, and statistics) also a diploma in project management, ISTQB foundation, Prince 2 foundation and ITIL foundation.    Can any one advise me if the testing role is ideal for me and how to start with it.


How to prove the series $$\sum_{n=1}^\infty \frac {e^n\cdot n!}{n^n}$$ diverges? I tried D'Alambert and result is 1 and I'm stuck with Raabe.

Any suggestion/hint, not the whole solution, how to determine convergence/divergence of $$ \sum_{n=1}^{\infty}\dfrac{e^n \cdot n!}{n^n} $$ I'm currently stuck.


Is $\sum_{n=1}^{\infty}\frac{1}{n^{1+\left|{\cos n}\right|}}$  convergent?  Yes because $|\cos n|>0$  and   $\frac{1}{n^ \alpha}$ is convergent for $\alpha>1$.  Is this a good way?

Does the following series converge or diverge? I would like to see a demonstration.  $$ \sum_{n=1}^{\infty} \frac{1}{n^{1 + |\sin(n)|}}. $$  I can see that: $$ \sum_{n=1}^{\infty} \frac{1}{n^{1 + |\sin(n)|}} \leqslant \sum_{n=1}^{\infty} \frac{1}{n^{1 + {\sin^{2}}(n)}} \leqslant \sum_{n=1}^{\infty} \frac{1}{n^{1 + {\sin^{2n}}(n)}}. $$


I'm confused on my calculations on analytic geometry with probability. Things I learned on these were messed up since I was a newbie on these subjects. Here's my problem:  Three points are chosen uniformly at random from the perimeter of circle. The probability that the triangle formed by these is acute can be expressed as $a/b$  where $a$ and $b$ are coprime positive integers. What is the value of $a+b$?  You may provide explanations so I would know how it was solved. Thank you

Consider the triangle formed by randomly distributing three points on a circle. What is the probability of the center of the circle be contained within the triangle?


List val=driver.findElements(By.xpath("//div[@class='ui basic button floating item dropdown']//div//a"));   is not identifying through webdriver. But this xpath perfectly recognizing at chrome browser.

When you are writing Selenium/WebDriver automation scripts you will probably run into the exception NoSuchElementException. You think your selector is working, but somehow the element cannot be found.  What strategy should I take to analyse different reasons that this might be the case?   What should I research and how? Good answers would contain example situations and how to resolve them. (e.g. verify selectors, frames, waiting, etc)


I send photons one at a time through a Mach–Zehnder interferometer with two detectors. Quantum superposition  ensures that photons only reach one of the detectors. The interferometer is initially built on a frame. However, I can adjust it to allow the half-silvered mirrors to no longer be attached to each other by the frame, but move freely. I perform the experiment with a single photon. One hour later, I measure the position of each mirror to determine if it was struck by the photon. Does this minor change to the apparatus ensure that the superposition disappears and photons arrive at both detectors with equal probability?

In many experiments in quantum mechanics, a single photon is sent to a mirror which it passes through or bounces off with 50% probability, then the same for some more similar mirrors, and at the end we get interference between the various paths. This is fairly easy to observe in the laboratory.  The interference means there is no which-path information stored anywhere in the mirrors. The mirrors are made of 10^20-something atoms, they aren't necessarily ultra-pure crystals, and they're at room temperature. Nonetheless, they act on the photons as very simple unitary operators. Why is it that the mirrors retain no or very little trace of the photon's path, so that very little decoherence occurs?  In general, how do I look at a physical situation and predict when there will be enough noisy interaction with the environment for a quantum state to decohere?


I understand the idea of quantum entanglement - where what happens to one particle in one location instantly effects another particle in another location, even if separated by millions of miles.  But the question is how does it do that? Are the particles connected through a wormhole or something like that?

From everything I've read about quantum mechanics and quantum entanglement phenomena, it's not obvious to me why quantum entanglement is considered to be an active link. That is, it's stated every time that measurement of one particle affects the other.  In my head, there is a less magic explanation: the entangling measurement affects both particles in a way which makes their states identical, though unknown. In this case measuring one particle will reveal information about state of the other, but without a magical instant modification of remote entangled particle.  Obviously, I'm not the only one who had this idea. What are the problems associated with this view, and why is the magic view preferred?


Question Find the value of p for which the function f(x)=$\left(\frac{\sqrt{p+4}}{1-p}-1\right)x^{5}-3x+ln5$ decreases   $\forall$x $\in\mathbb{R}$   MY Approach$\Longrightarrow$f'$\left(x\right)$= $\left(\frac{\sqrt{p+4}}{1-p}-1\right)5x^{4}-3$$\leq$0$\Longrightarrow$$\left(\frac{\sqrt{p+4}}{1-p}-1\right)\leq$$\frac{3}{5x^{4}}$$\Longrightarrow$$\left(\frac{\sqrt{p+4}}{1-p}-1\right)<0$$\Longrightarrow$x $\in$$\left(-\infty,\frac{3-\sqrt{21}}{2}\right)$$\bigcup$ $\left(\frac{3+\sqrt{21}}{2},\infty\right)$  But Book Says Answer is $\left[-4,\frac{3-\sqrt{21}}{2}\right]$$\bigcup$$\left(1,\infty\right)$

When is $$f=\left(\frac{\sqrt{p+4}}{1-p}-1\right)x^5-3x+\ln5$$ decreasing $\forall\; x$?    Diffrentiating: $$f'=5\left(\frac{\sqrt{p+4}}{1-p}-1\right)x^4-3$$ If $f$ is decreasing, $f'<0$: $$5\left(\frac{\sqrt{p+4}}{1-p}-1\right)x^4-3<0\implies x^4<\frac3{5\left(\frac{\sqrt{p+4}}{1-p}-1\right)}$$ Since if $\left(\frac{\sqrt{p+4}}{1-p}-1\right)\to0^+\implies x^4<+\infty$, which holds forallx, So:$$p=\frac{3\pm\sqrt{21}}2$$which doesn't ply with textbook-answer, since it mentions an domain for p.


My simple file scp from a remote host (actually a locally run VM but that shouldn't matter) failed without displaying any error message but clearly not having copied the desired file:  scp myuser@myhost:~/.bashrc ~/.bashrc.ubuntu  The only thing it displayed was  ================================================================================  I thought that was peculiar because that was the first line displayed in my login greeting on the remote, which looks like:  ================================================================================ Welcome to <Ubuntu 12.04.2 LTS> You are <myuser> logged into <hostname> (my_ipaddress) Today is <Wed Aug 28 16:48:49 EDT 2013> ================================================================================   And here are the contents of the .bashrc on the remote that define that greeting:  1 if [ -f ~/.bash_aliases ]; then 2     . ~/.bash_aliases 3 fi 4  5  6 export PS1='\w@\t>' 7  8 set -o vi 9  10 printf %80s |tr " " "=" 11 echo 12  13 echo "Welcome to <"`lsb_release -d | sed 's/Description\:\s*//'`">" 14  15 export IPADDR=`hostname -I` 16  17 echo "You are <"$LOGNAME"> logged into <"$HOSTNAME"> ("$IPADDR")" 18  19 echo "Today is <"`date`">" 20  21  22 printf %80s |tr " " "=" 23 echo   Once I removed everything from like 9 down on the remote .bashrc, the scp succeeded.  Can anyone expound on this peculiar occurrence?  The local host is Mac OS Mountain Lion and the remote (VM) is Ubuntu 12.04.

I've been experiencing very strange behavior of SCP for some time: whenever I try to copy a file, the output of SCP contains a bunch of underscores and the file is not copied.  $ scp test.txt 192.168.0.2:~ job@192.168.0.2's password:   ________________________________________   When I create an SSH connection using Midnight Commander and copy files it does work.  Some info about my machine:  $ ssh -V OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010  $ uname -a Linux squatpc 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux   And I'm running Kubuntu 11.04.  Edit: Some more info as requested by the comments:  $ scp -v test.txt 192.168.0.2:~ Executing: program /usr/bin/ssh host 192.168.0.2, user (unspecified), command scp -v -t -- ~ OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 192.168.0.2 [192.168.0.2] port 22. debug1: Connection established. debug1: identity file /home/job/.ssh/id_rsa type 1 debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048 debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048 debug1: identity file /home/job/.ssh/id_rsa-cert type -1 debug1: identity file /home/job/.ssh/id_dsa type -1 debug1: identity file /home/job/.ssh/id_dsa-cert type -1 debug1: identity file /home/job/.ssh/id_ecdsa type -1 debug1: identity file /home/job/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.8p1 Debian-1ubuntu3 debug1: match: OpenSSH_5.8p1 Debian-1ubuntu3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.8p1 Debian-1ubuntu3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr hmac-md5 none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ECDSA 28:f3:2b:31:36:43:9b:07:d8:33:ca:43:4f:ca:6c:4c debug1: Host '192.168.0.2' is known and matches the ECDSA host key. debug1: Found key in /home/job/.ssh/known_hosts:20 debug1: ssh_ecdsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/job/.ssh/id_rsa debug1: Authentications that can continue: publickey,password debug1: Trying private key: /home/job/.ssh/id_dsa debug1: Trying private key: /home/job/.ssh/id_ecdsa debug1: Next authentication method: password job@192.168.0.2's password:  debug1: Authentication succeeded (password). Authenticated to 192.168.0.2 ([192.168.0.2]:22). debug1: channel 0: new [client-session] debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug1: Sending command: scp -v -t -- ~  ________________________________________ debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 debug1: fd 0 clearing O_NONBLOCK debug1: fd 1 clearing O_NONBLOCK Transferred: sent 2120, received 1872 bytes, in 0.3 seconds Bytes per second: sent 7783.1, received 6872.6 debug1: Exit status 0   and  $ type scp scp is hashed (/usr/bin/scp)


We have installed Twilio App for Salesforce and configured it. The 1 to 1 Contact message is working fine, while Bulk SMS to Campaign Member is showing Internal Server error as below:  Error ID: 1754947416-96315 (119852647)  Checked debuglog too but didn't find anything.

Background  I have been working with Salesforce Support for several weeks now trying to get them to escalate an internal server error with GACK 2134764861-123797 (1611479512) (1611479512). After a long period of waiting I was told that in order to escalate quickly they needed to reproduce the issue in a controlled way. This was again taking them a considerable amount of time so I created a reduced test case myself () that concisely reproduces the issue with a very small amount of code. I was told that this wasn't a valid reproduction because it caused a different GACK (1291518605-518052 (1659192199) (1659192199)) despite reproducing the exact same user experience.  My Question  What makes up a GACK? Is there any information that I can take from their structure that can give me clues on which errors are related without access to the full back-end tools that Salesforce Support uses? It is not infrequent that without premier support it takes me upwards of two weeks to escalate platform bugs and I am hoping that I can somehow use the information from the GACK to reduce this time.


Let's suppose to use PWM (e.g.  to control the 'speed' of a motor)  What would be the possible way to generate a PWM signal?  On the one extreme, there is pure software techniques where 'a programmer typically writes a value to a memory-mapped register to set the duty cycle' [Lee & Seshia, Introduction to Embedded Systems]. On the other extreme, there is dedicated PWM Peripheral. What are the other ways to genrate a PWM?

What is the fast and elegant way to generate PWM without a Microcontroller to control a servo motor? With potentiometer or other ways to control the duty cycle with fix period.   sorry about the mess, I want to control a hobby servo.


I was watching a video I cannot find describing television before the VCR. And it used a word to describe the fact that television could not be rewound or paused. This word also applies to spoken language but not written language. It is an adjective and describes things that only exist in the present. They do not exist in the past or the future. They are also normally a continuous stream of information but I do not know if that is pertinent. I cannot remember this word and I was wondering if anyone knows of this word.

I was confused, when one of my friends was writing his name on a lead from vapor of mouth: I saw his name for a few seconds and after that it automatically disappeared.  So what can I call this incident? Is there any word available for this incident?


When a common noun is used as a proper noun or given as a title to a person or place should it be preceded by an article? If yes, with which article?  For example:     Rahul is called king of good times    or:      Rahul is called a king of good times    or      Rahul is called the king of good times.

From the movie  starring Leonardo DiCaprio who plays the role of the young King Louis XIV. d'Artagnan is responsible for security. Here's a short conversation between the two:     King Louis XIV: Perhaps l haven't met a woman with a heart like my own until recently.   d'Artagnan: Would that be Christine?   King Louis XIV: It is good that you watch me, but I fear you watch me too closely.   d'Artagnan: Did you send Raoul to the war so that you could be free to pursue her?   King Louis XIV: Do you question my honor?   d'Artagnan: No, I do not question your honor. It's you I care about.   King Louis XIV: Raoul will return soon. You have my word.   d'Artagnan: Thank you, Your Majesty.   King Louis XIV: I am a young king, but I am king.   d'Artagnan: Then be a good king, Your Majesty.   Can anyone explain why there is no indefinite article in front of the second "king"?


When one creates a post anonymously on a StackExchange site that allows it and supplies their e-mail address, the site leaks the Gravatar associated with given e-mail.    I believe this is a minor privacy violation. To me it would make more sense if the site used random Gravatar.

Some Stack Exchange sites allow to ask an anonymous question by specifying a one-time user name and an email which is "required, but never shown". However the Gravatar attached to the email is shown anyway. Anonymous users do not want their picture to appear - someone can find their identity via google image search or someone that knows them.  Example: open incognito window and :


It seams to me that light from our solar system can slingshot around the back side of a black hole, so that if we focus a telescope beyond the edges of a black hole we could in essence use them as mirrors to ourself and study our own solar system at a time roughly twice the light years away as the black hole. Would it spread and distort the light like a prism as it curves around the black hole because different light frequencies have more energy and therefore different gravitational attraction to the blackhole?   Maybe there is a way to correct for this?

The YouTube video is a good example how the gravity of this merging binary black holes bend light around themselves.


Long ago when I setup my Linux server, I installed the OS on a rather small SSD having intended on keeping all the large data on NAS drives.  I didn't realize  my /opt folder would get so large.  It is on the small SSD.  Is there a simple way for me to "remap" that folder so that i don't have to go make any changes in programs that may reference it, but so that it is now physically residing on my larger drive?  Sorry if this is a dumb Q.  I know a very narrow scope regarding Ubuntu :)

I dual boot Ubuntu 16.04 and Windows 8.1.  All of Ubuntu lives on an SSD, and the core Windows stuff lives there too, in a separate partition.  The main User folders for Windows (Documents, Downloads, etc.) live on a separate hard drive.  I'm running out of space in Ubuntu. I'd like to move /opt and /usr/local to the hard drive.  All the Q&A I've found about this, however, starts with the assumption that these folders are already mounted on a different partition, or that I can format the destination drive. Neither of these is true for me.  I don't remember exactly what I did when I set this computer up, but I do know the hard drive is accessible from Ubuntu (and is at /dev/sdb1, mounted at /media/steve/storage).  Is it possible to do what I'm asking?


I need to make grading system in jQuery ( I click on one circle and than that and previous circles become green).  If I click on the empty circle, that circle and previous ones become green.   If I write number of circles in input box and than click on "Update max value" button, than I get the desired number of circles, but if I click afterwards on one of those circles, they don't become green, even though they have a class rating-circle.  Why is that happening?  I put my code below.    $(function() {      //this function is drawing circles   var makingCircles = function(numberOfStars) {     $("#rating-container").empty();     for (let i = 0; i < numberOfStars; i++)       $('

').appendTo('#rating-container');   }    var chosenGrade = null;    var numberOfStars = $("#rating-container").attr("max-value");    makingCircles(numberOfStars); // this is for initial drawing of circles    $("#update-max-value").on("click", function() {     numberOfStars = $("#max-value").val();     makingCircles(numberOfStars);   });     $(".rating-circle").click( // this function is for rating     function() {       chosenGrade = $(this);       chosenGrade.addClass("rating-chosen");       chosenGrade.prevAll().addClass("rating-chosen");     }); }); body {   font-family: Verdana; }  h1, h2, h3 {   color: darkblue; }  .rating-circle {   height: 2em;   width: 2em;   border: .1em solid black;   border-radius: 1.1em;   display: inline-block;   margin: 0.3em;   padding: 0.1em; }  .rating-hover {   background-color: yellow; }  .rating-chosen {   background-color: green; }
Finding elements using jQuery

This session is about identifying elements using jQuery methods and selectors.

Rate this session

   Enter max value:   <input type="text" id="max-value" />   <button type="button" id="update-max-value">Update max value</button>

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I bought a copy of NCAA14 when I was in the US last year. Now I'm back home in the UK and can't get it to work because of the region code on my Xbox 360 at home, is there any way to solve this?

I just bought a  game (Forza 4) for my Xbox 360 (bought in the US). When I tried to play the game, it wouldn't load because of region issue. Is there a legal way to solve this (no crack)?


I'm relatively new to Google Calendar / Gmail. I've used it mainly for private mails/events. Since a couple of weeks I also added other emails to my Gmail account like my work email. This is great as I can manage all of my mail conversations from Gmail.  Now I'm wondering about the following. The web didn't get me any conclusive answer. I have multiple calendars on Google Calendar, e.g. Work and Private.  If I add an event to Work and would like to add guest getting invited is it possible to send the invite from my work email added to gmail which is a NON Google address?  I can write emails from my work and sending through Gmail so I was wondering if I could also send invites from a calendar event using it. This would be great as I would prefer clients to see my work email and not my private one.

I've seen a lot of questions around this topic but most of them are about receiving invitations to your alternate email.  I'm specifically looking for a way to send a calendar invite from my work email address which is not a Google account but is set up as a "Send mail as" option in my main Gmail account.  I've tried all the suggestions I've seen out there including:   adding my second email as an alternate email address. This still doesn't give me an option to create an event as the new account. changing the owner of the event to this second address, and then sending a subsequent invitation from it. The owner still comes through as my main Gmail account.   Any help greatly appreciated.


I have the following JS Problem. If i try to convert an array of strings using the parseInt function as a mapped function with the Array.map method, i experienced this strange result. What is wrong here?  console.log(['1','1'].map(parseInt))   Returns a strange Array containing the following:  [1, NaN]  Is parseInt not a regular function?

From the :  [1,4,9].map(Math.sqrt)   will yield:  [1,2,3]   Why then does this:  ['1','2','3'].map(parseInt)   yield this:  [1, NaN, NaN]   I have tested in Firefox 3.0.1 and Chrome 0.3 and just as a disclaimer, I know this is not cross-browser functionality (no IE).  I found out that the following will accomplish the desired effect. However, it still doesn’t explain the errant behavior of parseInt.  ['1','2','3'].map(function(i){return +i;}) // returns [1,2,3]


Related (but not duplicate):     Recently, I have been considering voting on site-specific meta discussions (not meta.SE or main sites). Anyone with the account association bonus can upvote on these discussions, regardless of how much they have contributed to the site. You could register a new account, vote, and never log into the main site.  It seems this misrepresents voting on meta sites. Drive by voting can be only be positive, which is problematic since site metas are where site policy and overall site opinion is generated and documented.  In my opinion, the goal of meta sites should be to get opinions from users who are invested in the site. Not just anyone on the network.  Anyone with an account association bonus can artificially impact this. This is not ideal because a site meta being used to determine site scope should be defined by users of the site: not by anyone.  My suggestion is to prevent the account association bonus from allowing voting on site metas. This will mean site metas better reflect the opinions and perspective of users who are actually invested in those sites.

Upvoting requires 15 reputation, but the association bonus is taken into account, so if you have at least 200 reputation on any site, you can upvote on all sites in the network.  This is a bit problematic when it comes to per-site metas. The votes there are used to gauge the opinion of the community, and they are often taken into account when implementing new policies.  What can happen is that a post from a per-site meta is linked in an unrelated high-traffic chat room, usually because there is some entertaining drama going on or because someone posted a particularly bad idea. This can lead to an influx of votes from external users that usually wouldn't visit or use the site, but currently still can vote on their meta due to the association bonus.  I think a very low minimum participation on the site should be required to vote on meta issues. This would make the votes on the per-site meta more robust and less easily skewed by being linked from outside.  Not counting the association bonus for the upvote privilege would be enough, then all users would have to earn 14 reputation on the site itself.


One thing that isn't mentioned in  is how environmental kills affect the Ultimate Meter. Specifically, does the HP of the hero being killed affect how much charge is gained? Is it better to boop a Roadhog off the map than a Tracer (as far as your ult meter is concerned)?

The information on the :     Ultimate abilities are powerful abilities only available to a hero   once their Ultimate Meter has filled. Progress towards an Ultimate   persists through death. The Ultimate Meter fills by killing/dealing   damage to enemy heroes, though Mercy gradually fills hers through   healing with her Caduceus Staff, and Torbjörn's turret generates   Ultimate progress for him. The amount of Ultimate gained appears to   vary between heroes, and kills seem to grant less Ultimate than   dealing damage.   Nowhere does it explain how quickly the meter is gained, and what % of meter corresponds to damage.  I know that in addition to that, meter is also passively gained for all heroes, albeit very slowly. What is the rate of that passive Ultimate meter? How does damage correspond to ultimate meter %?


I have figured out that $a \pmod{2} = b\pmod{2} =c \pmod{2} $ by making a few modulo tables and using that both sides of the equation must be divisible by $5$, and I have found the three solutions, I'm just at a loss as to how to prove that those are the only three. I struggle specifically with how to move from something being divisible by $5$ to something being a power of $5$. I have also tried to use the binomial expansion by noting that $5=2+3$, but I quickly ran out of ideas what to do with it.   Any help would be appreciated!

What are the positive integer solutions to  the equation     $$2^a + 3^b = 5^c$$    Of course $(1,\space 1, \space 1)$ is a solution.


I just copied a directory from a USB flash drive. I copied it from an NTFS drive and so all the files had execute permission.  I executed chmod -x * to undo the execute permission. Despite that, all the directories are showing with green background, which is normally only for executable files.  What could be the reason?  Attached image:

There are two directories shown by 'ls'.  Normally directories anywhere are blue on black background.  But the first one is blue on green and impossible to read.  Why is this?  How to make it blue on black, or at least something light on something dark?  This is on Ubuntu 12.04, using bash in Gnome Terminal.  In Konsole, the blue is slightly darker, and possible to read, though could be way better.


Question is to find discriminant of polynomial $x^n-1$  I consider $f(x)=x^n-1=(x-a_1)(x-a_2)(x-a_3)\cdots(x-a_n)$  Now, $$f'(x)=[(x-a_2)(x-a_3)\cdots(x-a_n)]+\cdots+[(x-a_1)(x-a_2)\cdots(x-a_{n-1})]$$  $f'(a_1)=(a_1-a_2)(a_1-a_3)\cdots(a_1-a_n)$  $f'(a_2)=(a_2-a_1)(a_2-a_3)\cdots(a_2-a_n)$  $f'(a_3)=(a_3-a_1)(a_3-a_2)\cdots (a_3-a_n)$  and so on.. Now i need to know how many sign changes do i need to get something which looks like discriminant  I would write this in a matrix form to get some idea... $$\begin{bmatrix}12&13&14&15&\cdots&1n\\21&23&24&25&\cdots&2n\\31&32&34&35&\cdots&3n\\\\n1&n2&n3&n4&\cdots&n(n-1) \end{bmatrix}$$   See that i first row every element is in correct position i mean of the form $ij$ for $i<j$  In second row only one element is odd of the form $ij$ with $i>j$ but i want $i<j$ in discriminant so i would change this.. So my count starts... change sign 1  In third row there are two elements which are not behaving properly... So, I should change them also.. So, Now another  two changes... On the whole $1+2$ changes...  In fourth row there would be $3$ misbehaving children so my count is $1+2+3$  In last row every body is behaving badly so i have to make $n-1$ changes in that..  On the whole i have to make $1+2+3+\cdots +n-1=\dfrac{n(n-1)}{2}$ changes..  So, $f'(a_1)f'(a_2)\cdots f'(a_n)=(-1)^{\dfrac{n(n-1)}{2}}(a_1-a_2)^2(a_1-a_3)^2\cdots (a_{n-1}-a_n)^2=(-1)^{\dfrac{n(n-1)}{2}} Disc(f)$  But then $f'(x)=nx^{n-1}$  This tells me that $f'(a_i)=n(a_i)^{n-1}$   So, $$Disc (f)=(-1)^{\dfrac{n(n-1)}{2}}  n^n(a_1a_2\cdots a_n)^{n-1}=(-1)^{\dfrac{n(n-1)}{2}}  n^n(-1)^{(n-1)^2}=(-1)^{\dfrac{n(n-1)}{2}+(n-1)^2}$$  As $(-1)^{n-1}=(-1)^{(n-1)^2}$ i would replace my $(-1)^{(n-1)^2}$ with $(-1)^{n-1}$  $$Disc (f)=(-1)^{\dfrac{n(n-1)}{2}}  n^n(a_1a_2\cdots a_n)^{n-1}=(-1)^{\dfrac{n(n-1)}{2}}  n^n(-1)^{n-1}=(-1)^{\dfrac{n(n-1)}{2}+n-1}n^n$$  i.e., $$Disc(x^n-1)=(-1)^{\dfrac{(n-1)(n+2)}{2}}n^n$$  As nobody was giving answer to my question i was trying my best and started editing this when ever i thought i find some thing and this is its final stage... This is fully solved now...  Thank you..  Any other ways of approaches would be appreciated..   Thank you :)

Let $1, \omega, \dots, \omega^{n-1}$ be the roots of the equation $z^n-1=0$, so that the roots form a regular $n$-gon in the complex plane. I would like to calculate $$ \prod_{j \ne k} (\omega^j - \omega^k)$$  where the product runs over all $j \ne k$ with $0 \le j,k < n$.    My attempt so far  Noting that if $k-j = d$ then $\omega^j - \omega^k = \omega^j(1-\omega^d)$, I can re-write the product as $$ \prod_{d=1}^{\lfloor n/2 \rfloor} \omega^{n(n-1)/2}(1-\omega^d)^n$$  I thought this would be useful but it hasn't led me anywhere.  Alternatively I could exploit the symmetry $\overline{1-\omega^d} = 1-\omega^{n-d}$ somehow, so that the terms in the product are of the form $|1-\omega^d|^2$. I tried this and ended up with a product which looked like $$\prod_{j=0}^{n-1} |1 - \omega^j|^n $$  (with awkward multiplicative powers of $-1$ left out). This appears to be useful, but calculating it explicitly is proving harder than I'd have thought.  The answer I'm expecting to find is something like $n^n$.    My motivation for this comes from Galois theory. I'm trying to calculate the discriminant of the polynomial $X^n+pX+q$. I know that it must be of the form $ap^n+bq^{n-1}$ for some $a,b \in \mathbb{Z}$, and putting $p=0,q=-1$, the polynomial becomes $X^n-1$. This has roots $1, \omega, \dots, \omega^{n-1}$, so that $(-1)^{n-1}b$ is (a multiple of) the product you see above. An expression for $a$ can be found similarly by setting $p=-1,q=0$.


Numbers with more than 4 divisors = multiples of numbers with exactly 4 divisors. This only applies to 4 (and 2, of course): e.g. numbers with more than 3 divisors != multiples of numbers with exactly 3 divisors. Numbers with more than 5 divisors = multiples of    My quick question is: are these two facts obvious and/or well-known?  I assume that the answer is "yes", but I know pretty much nothing about mathematics, so I wanted to ask this question. I would have asked it in the chat, but I have not enough reputation.  A simple yes/no answer is fine for me, but of course if you want to add an explanation, it's even better. :)  Edit: why I don't think this question was a duplicate. The answer is the same as the answer to  (I have no reason to doubt it, even though I still have to understand the answer to my question!). But, as far as I can understand, "duplicate" applies to questions, not to answers. Otherwise, the following statement  wouldn't make sense:     [...] we love (some) dupes. There are many ways to ask the same question, and a user might not be able to find the answer if they're asking it a different way.   Now, my question is not the same as "finding out the number of divisors", so it isn't a duplicate.

The number of divisors of 9600 including 1 and 9600 are??  Is there any other way of doing this rather than manually finding the divisors?


If $B$ is nilpotent and $B^{k} = 0$ (and B is square), how should I go around proving that $I + B $ is invertible? I tried searching for a formula - $I = (I + B^{k}) = (I + B)(???)$ But I didn't get anywhere :(

Possible Duplicate:          Given $A^{2012}=0$ prove that $A+I$ is invertible and find an expression for $(A+I)^{-1}$ in terms of $A$. ($I$ is the identity matrix).


the senario is that we want to be able to have a 3rd party supplier share post and info from their SF org with users on our internal SF org.   I woulld like to know more about the different options are to do this and the pros/cons of each.  many thanks


I'm working on my own math library, and I have a couple of non-member functions in the namespace I'm using for the library ("cml", like it matters much). Anyway, the library (which I'm building statically as a .a/.lib file) compiles just fine, but when I go to use the library in a test program, I get an error that the functions are undefined references.  This is header (func.h) file:  namespace cml {  template <typename T> T toRadians(T val); template <typename T> T toDegrees(T val);  template <typename T> T fastSqrt(T val); template <typename T> T fastInverseSqrt(T val);  }   And this is the func.cpp file:  #include <CML/func.h>  #include <cmath> #include <math.h> #include <limits> #include <cassert>  namespace cml {  template <typename T> T toRadians(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "toRadians() requires the template parameters to be floating points.");      return val * MATH_PI / 180; }  template <typename T> T toDegrees(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "toDegrees() requires the template parameters to be floating points.");      return val * 180 / MATH_PI; }  template <typename T> T fastSqrt(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "fastSqrt() requires the template parameters to be floating points.");      return T(1) / fastInverseSqrt(val); }  template <typename T> T fastInverseSqrt(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "fastInverseSqrt() requires the template parameters to be floating points.");      T tmp = val;     T half = val * T(0.5);     uint32* p = reinterpret_cast<uint32*>(const_cast<T*>(&val));     uint32 i = 0x5f3759df - (*p >> 1);     T* ptmp = reinterpret_cast<T*>(&i);     tmp = *ptmp;     tmp = tmp * (T(1.5) - half * tmp * tmp); #if defined(CML_ACCURATE_FUNC) // If more accuracy is requested, run Newton's Method one more time     tmp = tmp * (T(1.5) - half * tmp * tmp); #endif // defined     return tmp; }  }   I am getting the error for all four of the functions. I am using the latest version of Code::Blocks, with GCC on Windows8. I am compiling for Win32. I've tried different suggestions I've found like marking the functions extern, but it doesn't seem to fix it. I'm sure it's something simple I'm missing, and if that is the case a second pair of eyes might help.  The error exactly: undefined reference tofloat cml::toRadians(float)'`

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


Find a closed form for $$\sum_{k=0}^{k=1000} \frac{\binom{1000}{i}}{\binom{2000}{i}}$$   My attempt: First I used the definition of binomial coefficients(*) to expand out the quantity being summed over as shown below: $$ \frac{\binom{1000}{i}}{\binom{2000}{i}} = \frac{\frac{1000!}{i!(1000-i)!}}{\frac{2000!}{i!(2000-i)!}} = \frac{1000!}{2000!} \frac{(1000+i)!}{i!}$$ Now, I sum this quantity over 'i' which gives me the following: $$ \frac{1000!}{2000!} \sum_{k=0}^{k=1000}  \frac{(1000+i)!}{i!}$$ Now I'm not sure how to proceed...  Footnotes: $$*: \binom{n}{k} =  \frac{n!}{(n-k)!k!}$$

Prove that $\sum_{k=0}^{m}\dfrac{\binom{m}{k}}{\binom{n}{k}}=\dfrac{n+1}{n+1-m}$.  We know, n > m. From the right side. we have $\dfrac{n+1}{n+1-m}=\dfrac{1}{1-\dfrac{m}{n+1}}$. since n > m. $0<\dfrac{m}{n+1}<1$. Then $\dfrac{1}{1-\dfrac{m}{n+1}}=1+\dfrac{m}{n+1}+(\dfrac{m}{n+1})^2+...$ I don't know what to do next? Did I choose the right path?


I am familiar with the concept, but I simply can’t get my head over the intuition behind it. While being a derivative, it describes the rate of change for one unit. Simply put, we can say that it shows the “concentration” , therefore (where it dramatically rises and then drops) we can say that it’s more “sensible” to change. Am I right? I know that it can exceeds 1, therefore it’s not a probability.   I have read every ticket created here, but just want to make it clear besides any mathematical notations.

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?