Adding an option to the PDFLaTeX call from AUCTeX

In my .emacs I have  '(TeX-PDF-mode t)    set. So I'm using PDFLaTeX. I'm not sure why this is not the default these days. I had also set  '(LaTeX-command "latex -shell-escape")   In hindsight this was a bad idea, but I didn't realise it till  I was trying to get SyncTeX to work, but it wouldn't. I belatedly realized that because I had set LaTeX-command manually, I was overwriting the   --synctex=1   option that would normally have been there.  Which brings to my question.   Is LaTeX-command the right command to modify to add the -shell-escape option, and if so What is the right way to add an option to LaTeX-command?   @David Carlisle suggested   (setq LaTeX-command (concat LaTeX-command " -shell-escape"))   which seems to be in the right ballpark, but this gives the error:   Symbol's value as variable is void: LaTeX-command   NOTE: Evaluating LaTeX-command just gives "latex", so this may not be the right thing to append to.


Is it possible to submit a PhD thesis with two authors?

We are two students working in the same field under the supervision of the same professor within his chair and all of our publications are done together.  Hence I am curious: Is it generally possible in academia to submit a PhD thesis with two authors?


use as a single variable for GET and POST parameters

How to use as a single variable to access $_GET or $_POST params.  what I want exactly to do is to write less code in PHP, for example :  if ($_GET['hello']==="hello") echo "hello get"; else if($_POST['hello'] === "hello post") echo "hello post";   to covert to something like  if( $_SERVER['REQUEST_METHOD']['hello'] === "hello" ) echo "hello ".$_SERVER['REQUEST_METHOD'];


I am in pre-hardmode and I've heard that the hallow and corruption will consume a V-shaped part of the world. Any tips on how to stop this before hardmode starts and without using blocks at all.


Lookup field based CAML query returns the entire list instead of matching data

I m using O365 List called Employee with lookup field. When I query the list based on the lookup column it will returns all list Item instead the matching data. Could you please help me.  Using MVC asp.net.  Home controller   [HttpPost]         public JsonResult FillCity(int depid = 2)         {                         CamlQuery querySelectedDepartment = new CamlQuery();             querySelectedDepartment.ViewXml = "<Where><And><Eq><FieldRef Name='Department_x003a_ID' />< Value Type = 'Lookup' >" + depid + "</Value></Eq><FieldRef Name="ID"><Value Type="Integer">1</FieldRef></Eq></And></Where>";             var Departments = SharePointService.GetSelectedDepManagers(spContext, querySelectedDepartment).ToDictionary(x => x.UserId, x => x.ManagerName);             var j = JsonConvert.SerializeObject(Departments);             return Json(j, JsonRequestBehavior.AllowGet);         }   Sharepointservices.sc file  public static List<LocalLeaveAddinWeb.Models.Manager> GetSelectedDepManagers(LocalLeaveAddinWeb.SharePointContext spContext, CamlQuery camlQuery)         {             managers = new List<LocalLeaveAddinWeb.Models.Manager>();             using (var clientContext = spContext.CreateUserClientContextForSPHost())             {                 if (clientContext != null)                 {                     List lstDepartmentManagers = clientContext.Web.Lists.GetByTitle("EmployeeList");                     ListItemCollection lstDepartmentManagerItems = lstDepartmentManagers.GetItems(camlQuery);                     clientContext.Load(lstDepartmentManagerItems);                     clientContext.ExecuteQuery();                     if (lstDepartmentManagerItems != null)                     {                         foreach (var lstDepartmentItem in lstDepartmentManagerItems)                         {                             managers.Add(                             new LocalLeaveAddinWeb.Models.Manager                             {                                 ManagerName = lstDepartmentItem["Title"].ToString(),                                 UserId=Convert.ToInt32(lstDepartmentItem["EmployeeID"]),                              });                     }                 }             }         }             return managers;         }   SP List


When I run sudo apt update in Ubuntu 18.10 I get this error message:  E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory) E: Could not open file  - open (2: No such file or directory) E: Problem opening  E: The package lists or status file could not be parsed or opened.   After running sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status it's showing this error message:   cp: cannot stat '/var/lib/dpkg/status-old': No such file or directory


How to debug Drush command with xdebug in vscode?

I reviewed a lot of articles (including ) about debugging Drush commands in PHPStorm with settings xdebug.idekey. They suggested export XDEBUG_CONFIG="idekey=session_name" or set xdebug.idekey in the php configuration file. I can confirm that I have set xdebug.idekey in php.ini  The weird thing is that vscode  extension does not provide any setting for idekey. It is very different from other IDE. But I still can use the vscode to debug with Drupal site.  Any one knows how I can make xdebug working on Drush command?  Here is my xdebug configuration extracted by command php -i | grep xdebug. All these values are the same as the output from phpinfo()  /etc/php/5.6/cli/conf.d/20-xdebug.ini, xdebug xdebug support => enabled IDE Key => sublime.xdebug xdebug.auto_trace => Off => Off xdebug.cli_color => 0 => 0 xdebug.collect_assignments => Off => Off xdebug.collect_includes => On => On xdebug.collect_params => 0 => 0 xdebug.collect_return => Off => Off xdebug.collect_vars => Off => Off xdebug.coverage_enable => On => On xdebug.default_enable => On => On xdebug.dump.COOKIE => no value => no value xdebug.dump.ENV => no value => no value xdebug.dump.FILES => no value => no value xdebug.dump.GET => no value => no value xdebug.dump.POST => no value => no value xdebug.dump.REQUEST => no value => no value xdebug.dump.SERVER => no value => no value xdebug.dump.SESSION => no value => no value xdebug.dump_globals => On => On xdebug.dump_once => On => On xdebug.dump_undefined => Off => Off xdebug.extended_info => On => On xdebug.file_link_format => no value => no value xdebug.force_display_errors => Off => Off xdebug.force_error_reporting => 0 => 0 xdebug.halt_level => 0 => 0 xdebug.idekey => sublime.xdebug => sublime.xdebug xdebug.max_nesting_level => 256 => 256 xdebug.max_stack_frames => -1 => -1 xdebug.overload_var_dump => 2 => 2 xdebug.profiler_aggregate => Off => Off xdebug.profiler_append => Off => Off xdebug.profiler_enable => Off => Off xdebug.profiler_enable_trigger => Off => Off xdebug.profiler_enable_trigger_value => no value => no value xdebug.profiler_output_dir => /tmp => /tmp xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p xdebug.remote_addr_header => no value => no value xdebug.remote_autostart => Off => Off xdebug.remote_connect_back => On => On xdebug.remote_cookie_expire_time => 3600 => 3600 xdebug.remote_enable => On => On xdebug.remote_handler => dbgp => dbgp xdebug.remote_host => localhost => localhost xdebug.remote_log => /tmp/xdebug.log => /tmp/xdebug.log xdebug.remote_mode => req => req xdebug.remote_port => 9000 => 9000 xdebug.scream => Off => Off xdebug.show_error_trace => Off => Off xdebug.show_exception_trace => Off => Off xdebug.show_local_vars => Off => Off xdebug.show_mem_delta => Off => Off xdebug.trace_enable_trigger => Off => Off xdebug.trace_enable_trigger_value => no value => no value xdebug.trace_format => 0 => 0 xdebug.trace_options => 0 => 0 xdebug.trace_output_dir => /tmp => /tmp xdebug.trace_output_name => trace.%c => trace.%c xdebug.var_display_max_children => 128 => 128 xdebug.var_display_max_data => 512 => 512 xdebug.var_display_max_depth => 3 => 3   Settings value of PHP debug extension    {     "version": "0.2.0",     "configurations": [         {             "type": "php",             "name": "Listen for XDebug",             "request": "launch",             "localSourceRoot": "${workspaceRoot}/docroot",             "serverSourceRoot": "/var/www/Sites/independent01-dev/docroot",             "port": 9000         },     } }


Install / downgrade specific version of Node.js

I have this:  RUN curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - RUN apt-get install -y nodejs=11   but I get:     E: Version '11' for 'nodejs' was not found   I also tried:  RUN apt-get install -y nodejs=11*   does anyone know how I can find out which versions are available? The problem is that node version 12 is already installed on this machine and I want to downgrade the Node.js version here.


A generalization for Serret's integral $\int_0^a \frac{\ln(1+ax)}{1+x^2}dx$

The integral specified in the title appears in Gradshteyn & Ryzhik 4.291.18, also followed by its sister integral: $$\int_0^a \frac{\ln(1+ax)}{1+x^2}dx=\int_0^a \frac{a\arctan x}{1+ax}dx=\frac12 \arctan a\ln(1+a^2) \tag 1$$  Some application of the above gives us some nice results, such as: $$\int_0^1\frac{\arctan x}x\ln\left(\frac{(1+x^2)^3}{(1+x)^2}\right)dx=0$$ Above follows by converting $\int_0^1 \frac{\arctan x\ln(1+x^2)}{x}dx$ to a double integral using $(1)$ and then swapping the order of the integrals.  Or another one: $$\int_0^1 \frac{\arctan x\ln(1+x^2)}{x(1+x)}dx=\frac{\pi^3}{96}-\frac{\pi}{8}\ln^2 2$$    But the question here would be how to prove the result given in $(1)$?  I tried to differentiate under the integral sign with respect to $a$, but something nasty appeared. Are there any other ideas?


How come WMS can serve KML? Isn't WMS only meant to serve images?

If you go to GeoServer, layer preview, by clicking "KML" in the "Common formats" column you get a KML file that contains a URL that can be used to get all information for a layer. For example:    This is a WMS request (it contains service=WMS). I thought WMS requests only download images, but this request downloads the full data for the layer, including the coordinates of the lines (essentially the layer in vector format). I thought you'd need to use WFS for that.  The thing is that I want to permit a user to view the image of a layer (on a Leaflet map), but I don't want users to be able to download the data for the layer. I deactivated WFS for unauthorized users, but that isn't enough if they can get a KML with WMS.  What have I understood wrong? How can I fix this?


I have a div inside of a div and I want to position the div in the centre.

hi

     How do I make .messages centred to .dialogs-icon?    I want to make horizontally center positioning


Verbose logging was accidentally left on for one of our database ballooning our database MDF file from roughly 90GB to 192GB.  We've disabled verbose logging, truncated the logging table but now we want to shrink the MDF file to reclaim disk space as the drive the MDF file is on is only around 200GB. I don't have the luxury of increasing its size. Our disk space monitoring tool is alerting me that drive space is less than 8% over and over and over.  Given this is the first instance this has ever happened, we don't expect to ever need that extra 102GB of disk space again. We'd like to reclaim it.   I've tried to use the GUI to shrink the database and the files but it doesn't actually change in size. I've also tried using DBCC SHRINKFILE and DBCC ShrinkDatabase with NoTruncate and TruncateOnly. No matter what I do the file doesn't seem to budge.  One potential issue is that somehow the database initial size is 188GB. Deleting and re-creating the database isn't a very practical option for us so how can I shrink the MDF file and reclaim our disk space?  Running dbcc shrinkfile('My_Data'), I get the following results:  DBID: 5  Field: 1 CurrentSize:24030464 MinimumSize: 128 UsedPages: 17770472 EstimatedPages: 17770472   The database MDF file is still the same size (192,243,712 KB).  The table has a clustered index:  Name:TRACES ObjectID: 394588594 Type: Clustered Index/b-tree   The query:  SELECT     name,     size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS AvailableSpaceInMB FROM sys.database_files   ...for the database I am trying to shrink, returns:  Name: My_Data AvailableSpaceInMB: 48693.375000 Name: My_Log  AvailableSpaceInMB: 67028.437500   I've also tried shrinking in small chunks using a PowerShell script that shrinks in 20MB increments. That also doesn't change the size of the MDF file.  I've tried dbcc shrinkfile(My_Data) without any other options from SQL Management Studio. It runs for a long time, finishes, and the MDF file is still the same size. Specifying a target size, it runs for a good 30-40 minutes (finishes) and nothing changes file size wise.  I ran this: DBCC SHRINKFILE (N'My_Data' , 139045) and get the following results:  DbId: 5 Field: 1 CurrentSize: 24030464 MinimumSize: 128 UsedPages: 17808744 EstimatedPages: 17808744


It appears that ConTeXt is more structured than LaTeX2e in terms of naming scheme, key-value naming, macros, etc. However I haven't seen any guide or so that explains how this structure works.  Where should I look? How do I start learning?  What does ! used in macros mean? E.g., \v!foo, \v!bar. What does _ used in macros mean? (I suppose this is just to add clarity) And @? And ?? What is the meaning of \unexpanded\def\foo…? Where do all of those \setupfoo come from? I don't see where they are defined. How are all of those key=value defined?    This is just what came to my mind after reading a few lines of a small .mkiv file. I don't need the answer to all of this, I'm just trying to understand conventions rather than explicit problems. That's just an example of what might come to your mind after reading a little bit about the core of ConTeXt… and I'm not sure the answer to that is easily reachable on the web.  Most important, is there a way to learn that? Is it written somewhere?


Proof for any positive integer n the following equality hold

$$\sum_{k=1}^n (-1)^{k+1} \binom {n}{k} \frac{1}{k}= 1 + \frac{1}{2} + ...  + \frac{1}{n}$$  How do I prove this by induction?   My attempt: let $n = 1$, then $(-1)^2 \binom{1}{k} =1=\frac{1}{1}$  Assuming $n$ is true, how do I prove the $n + 1$ case?


Recently I tried to use apt on Ubuntu server 18.04 but it was not working.  When I tried to run some command, for example, nmap, I saw the suggestion to install it with:  sudo apt install nmap   But when I try to install using the above command, I get this error message:  E: Unable to locate package nmap    and this is for any package I try. I installed Ubuntu server 19 and got the same problem. When I run apt list I get only installed packages.  I tried all apt cache cleaning methods but didn't get any result. However apt update command works fine.  I'm using Ubuntu server x64 with qemu on Windows x64 with hax acceleration and with user network backend.


$3$ guys, each with $\$10$ a piece, go to a hotel hoping to get a room to stay in for the night. A room costs $\$60$. The men go in, and ask to rent a room, only having $\$30$ between them. The mater deen says he can give them a broom closet to sleep in for the night. One of the men asks if they can keep a few dollars to get coffee and breakfast in the morning. Mater deen says no, and has a bellboy take them to the closet. Downstairs, the mater deen feels bad, and gives the bell boy $\$5$ to give back to them. The bellboy pockets $2$ of the $5$, and gives each guy a dollar back. IF the men, then, spent $\$9$ each for the closet, and $3\times9 = 27$. The bell boy pocketed $2$, so $27+2=29$. what happened to the $30$th dollar?


Twice in the books Daenerys has been in situations where it is reasonable to expect that she would have been burned to death, or at least seriously injured, yet has come out unharmed.  The first time was when she stepped into the funeral pyre of Khal Drogo, which resulted in her dragon eggs hatching.  The second time is in A Dance with Dragons, when she is exposed to Drogon's fire.  In both instances, all that happens to her is her hair is burned away.  I can't be certain, but I believe there may have been references in the first book to her touching burning coals and other hot materials, as well.  Is this a trait shared by other Targaryens?  Her brother certainly wasn't immune to molten gold, and while a number of Targaryens were fascinated with fire (Aerion Targaryen died from drinking wildfire, believing it would turn him into a dragon), I don't recall seeing mention of any Targaryen shrugging off fire.  Is Daenerys' apparent immunity explained anywhere?


Example of infinite field $(F,+,.)$ such that $(F^*, . )$ is a cyclic group ?

It is known that  any infinite cyclic group can never be a vector space , from this we can derive that if $(F,+,.)$ is an infinite field then $(F,+)$ cannot be cyclic . I am asking , is there any infinite field $(F,+,.)$ such that $(F^*, . )$ is a cyclic group ? (, where $F^*:=F$\ $\{0_F\}$ )


Suppose that $f$ is analytic on a close curve γ. Prove or disprove $\int_\gamma \overline{f(z)}f'(z)dz$ is purely imagine.

Suppose that $f$ is analytic on a close curve γ. Prove or disprove   $$\int_\gamma \overline{f(z)}f'(z)dz$$  is purely imagine.  I know that $f$ is analytic on a close curve, then   $$\int_\gamma f(z) dz=0$$  I tried an example with $\gamma =e^{it}$ with $0\leq t\leq 2\pi$, I often get the real part of the integral equal zero.  I tried let $f=u+iv$ so $f'=u_x+iv_x$. Since $f=u+iv$, $\overline{f}=u-iv$  $$\overline{f(z)}f'(z)=uu_x+vv_x+i(uv_x-vu_x)$$  But this doesn't get me anywhere. Any help would be greatly appreciated.


How to Install Three.js Exporter in Blender 2.72b

Does anyone know how to add on the Three.js File exporter in blender 2.72b I can not for the life of me get it installed.     ~Thanks.


Trying to understand how the Algebraic Bethe Ansatz works, I'm actually reading some papers and trying to apply for XXZ or XYZ model. But my problem is that I don't know how to find the R-matrix describing the considered model without using vertex models (their classical equivalent). I know that it is somehow related to quantum groups, but this is a little bit confusing, can someone tell me if starting from the Hamiltonian of XYZ/XXZ spin chain I can get the corresponding R-matrix?


Could I reapply UK visit visa after four times refusal?

I have been refused UK visit visa 4 times. First time is 2015 Jan, they refuse visa because I applied wrong visa type and second time is 2015 Dec they refused again due to my bank statement.   Third time  May 2019, I am planning to go UK to attend my graduation but they refused again bank statement and economic social ties. And then I reapply again after 5days later, they refused again due to bank statement n they want to know originated fund as per photo.   If I explain all my financial details, do I have chance to approve it? Please advise me should I reapply again?   Thanks


When should "only" come before a verb phrase?

I’m really struggling to understand when and how to use “only” as an adverb — and how its use is impacted by verb phrases. The following post on English StackExchange doesn’t really clarify it for me: . I understand that placing “only” in different places modifies the meaning of the sentence, but when should you use the word to modify a verb phrase?  In a Quick and Dirty Tips , the writer states that the stress can be a deciding factor but that “…it’s still better to put ‘only’ as close to the word or phrase that it modifies…” My confusion arises from the phrase part. For instance:   Gary realized that he was wrong only after he had left.   Gary only realized that he was wrong after he had left. (“Only” before verb phrase)   In other words, Gary thought he was right about something, but realized at a later stage that he was actually wrong.  Which of the two sentences conveys the correct meaning? Can both be correct? English isn’t my first language, and this type of construction is really difficult for me to understand.


What to do if cited papers are not freely available while reviewing a manuscript?

Recently I was reviewing a manuscript. I found that few cited papers of this manuscript are not freely available to my institute. So what should I do? Should I ask those papers to the editor?


I'd like to press, for example, the Menu key and the output be as if I pressed Ctrl+R or another combination of keys. In other words, I'd like to set aliases for combos using the same graphical user interface (System Settings/Keyboard menu) provided by Ubuntu 16.04 to set/change keyboard shortcuts. Thanks in advance!  LE: I do not want to install Autokey, I want a builtin functionality as I already mentioned above. In plus, Ctrl+R does one thing inside a browser window and another thing inside a terminal window. I just want, for example, to press Menu key and Ubuntu to think I pressed Ctrl+R. That's all. I hope I was clear enough. Just a suggestion.


Strategies to overcome "academic-apathy" in the final stages of the PhD?

Background - I am doing my PhD in atmospheric physics/photobiology.  Here is a scenario:   The experiments are complete - the results are far better than expected  Successfully got the computer program to work properly and have developed another Papers are published Much of the thesis is drafted   The light at the end of the tunnel is most definitely no longer an oncoming train.  But, at this stage, you just don't feel like working on the thesis, you do other things like cleaning, reading, watching movies - procrastination gets worse, and worse despite the submission deadline coming closer.     The procrastination resulting in more apathy towards the project, despite being fully aware of how much work has been put into the project, how much has been achieved and how little, comparatively, needs to be done.  What strategies are there to overcome this academic-apathy, particularly in this late stage of the thesis?


Trying to migrate from P values to CI... how to know when to reject null hypothesis?

So, I know that if we get a p<= 0.05 (95% CI), I know that the null hypothesis can be rejected. Now my question is how do I do that with CI?  Eg. in the table below A17S group has a CI of (27.835-31.865) whereas the A17T group has a CI of (31.36-34.972).   I know I am a bit wrong when thinking that only CI's that do not overlap are significant. Indeed the same data when performing a t-test gives me significance (p=0.02).   So my question is this:  If I have two confidence intervals, how do I decide that the difference is statistically significant at say 95% CI?


Simulate Geometric Brownian Motion Path with Fixed Starting AND Ending Points

It is straightforward to simulate GBM path from a set starting value, but what if I also want it to arrive at a certain value in the end? Any ideas on how to do it are highly appreciated.


Centering div so content of it will always be in middel

I'm trying to center the div{class="informationbox"} so that the div's inside will always be centered in the page, No matter how many divs there is inside.    .informationbox{   left: 0;   right: 0;   margin: 0 auto;   display:block;   position: absolute; }

Something

Wall of Text

Something

Wall of Text

Something

Wall of Text


I would like to print computed values in a side bar using a Google Earth Engine app.  Currently the output is a dictionary for example if I want the feature name that has been clicked on:  var computeValues = function (coords) {    // select built-up area from map   var point = ee.Geometry.Point(coords.lon, coords.lat);    // select the polygon and colour red   var selected = bu.filterBounds(point);   var id = ee.String(selected.first().get('bua11cd'));    // display in side panel   bu_name.setValue(['location:', id]);  // Create panels to print values. var inspectorPanel = ui.Panel({style: {width: '30%'}}); var bu_name = ui.Label(); inspectorPanel.add(ui.Panel([bu_name], ui.Panel.Layout.flow('vertical')));   Returns this is the side panel:     location:,ee.String({ "type": "Invocation", "arguments": { "input": {   "type": "Invocation", "arguments": { "object": { "type": "Invocation",   "arguments": { "collection": { "type": "Invocation", "arguments": {   "collection": { "type": "Invocation", "arguments": { "tableId":   "users/philtown81/Builtup_Areas" }, "functionName":   "Collection.loadTable" }, "filter": { "type": "Invocation",   "arguments": { "leftField": ".all", "rightValue": { "type":   "Invocation", "arguments": { "geometry": { "type": "Point",   "coordinates": [ -0.4458729125976788, 51.7557470078457 ] } },   "functionName": "Feature" } }, "functionName": "Filter.intersects" }   }, "functionName": "Collection.filter" } }, "functionName":   "Collection.first" }, "property": "bua11cd" }, "functionName":   "Element.get" } }, "functionName": "String" })    is a link to a working example.


What school of magic does weapon/shield/armor enhancement fall under?

I recently had cause to look up what school of magic the enhancement of an weapon/shield/armor falls under for Arcane Sight and Mythic Anti-Magic Field, but I can't find anything.  The closest I can find is similar spells:   The spell Magic Weapon is Transmutation. The spell Magic Vestment is Transmutation. The spell Mage Armor is Conjuration. The spell Shield is Abjuration.   So by looking at these spells it seems like the basic +X stuff you craft with the Craft Magical Arms and Armor feat should all be pure Transmutation. (I am not counting weapon properties which are based on spells and stuff, just the enhancement bonus).  Is this correct, or is there an authoritative statement or list that I've missed?    “” is the same but for D&D 3.5e.


Calculate the series $\sum_{n=1}^{\infty} \frac{x^n}{(3n)!}$

I can't find the series $$\sum_{n=1}^{\infty} \frac{x^n}{(3n)!}$$  But I have no idea how to find.  Thanks for any hints or solutions.


Can you tell me what's wrong with my MySql syntax?  $sql  = "INSERT INTO :submissionTable (project_id) VALUES (:projectId)"; $sql2 = "INSERT INTO ".static::$_mSubmissionTableName." (project_id)           VALUES ('".$values[0]."')";  $database = DatabaseFactory::getFactory()->getConnection(); $query = $database->prepare($sql);         $result = $query->execute(array(   ':submissionTable' => static::$_mSubmissionTableName,    ':projectId' => $values[0] ));   Once I run this with $sql I get this error:  Warning: PDOStatement::execute():  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;  check the manual that corresponds to your MySQL server version for the right syntax to use near  ''submission' (project_id) VALUES ('1')' at line 1 in /app/model/ProjectModel.php on line 54   If I run the query with $sql2 and without parameters it executes and inserts desired values. What's wrong with the $sql query?


What's the total rep cap limit on Suggested Edits?

According to  the limit is 1,000.      When a suggested edit is approved, the user who suggested it gets +2 reputation. The regular daily reputation cap applies, and the total cap is 1,000.    However at least one user has exceeded 1000 points earned from suggested edits.   On these days  earned rep from suggested edits   9/16 144 9/15 200 9/14 200 9/13 194 9/12 2 9/11 200 9/10 200   totaling 1,140 (he earned +2 on other days as well but I stopped looking after it was > 1000)


How to strip single quotes from a varchar variable

I have an application that passes data to an sql variable called @inputvar. The application passes the data as a string. The stored procedure declares the variable @inputvar as varchar. The problem is, the data is of the format '12,13,15'. because of a where clause in the stored procedure, i am getting an error saying that conversion failed when converting the varchar value to datatype int  The where cause is:  select *  from table  where ID in (@inputvar)   I have tried stripping the quotes: replace(@inputvar,'''','') and I have tried converting the variable to an int: cast(@inputvar as int), but both attempts failed


Rolling back a transaction will still increment the primary key in spring boot and hibernate

I am using spring boot with hibernate to build our application. for transaction management i am using @transaction on serviceImpl class it work properly. Transaction data rollback properly but GenerationType.IDENTITY or strategy=GenerationType.SEQUENCE value not roll back. For example if  last insert row in table  is 10 and lets assume next insert row value is 11 and this time because of some issue transaction is rollback after. but if we insert again it take next row value is 12 not 11. why this happens why next column value is not 11. Is there any way to take previous value.


typedef struct list {         int value;         list *next;     }list_t;      void init(list_t *head) {         head->next = NULL;     }   Can you explain me that what difference  between list and list_t? I know declaration struct list list_t, but if I will declarate parametr list_t parametr, patametr.[...] I think this is the same effect as list parametr, parametr.[....] I don't understand what mean list *next it's the same like list_t *next ?


How to set the thousands place separator in pandas read_csv?

I'm reading a csv file like this:  import pandas as pd  arq_pedido = pd.read_csv('Pedido.csv',delimiter=";", encoding = "ISO-8859-1")   I have a ID column (this column is supposed to be an INT column, but in Brazil (Portuguese), thousand's numbers is represented like this: 1.000 instead of 1000. So, my ID column is dfloat64 at the moment.  I have one ID who is 1.908 (1908), and this number shows 1.9080000000000001. How can I transform dfloat64 to int? Or, how can I replace dots (.) for comma (,), to turned that numbers in thousands ones?


Undergrad-level combinatorics texts easier than Stanley's Enumerative Combinatorics?

I am an undergrad, math major, and I had basic combinatorics class before (undergrad level.) Currently reading Stanley's Enumerative Combinatorics with other math folks. We have found this book somewhat challenging~ Do you have any suggestions on other books to read? or books to help going thru Enumerative combinatorics?


I enjoy creating presentations a lot and I think I have an eye for nice design, however, I tend to always have the same layout/colour scheme/etc. and I'd like to try something new for my defence.  So I've been googling great presentations for hours, and there are heaps of innovative designs but usually these are from outside academia. I still want to convey information in a serious manner. But when looking at websites that intend to give advice for scientific presentations I find the examples horrible and very much 1990s (bullet points...)   So, in short, can you think of any scientific presentations with unpretentious but great design, which can be found somewhere online?  Edit Thank you for your comments, which definitely include heaps of helpful advice, however, I was less looking for "basic" presentation guidelines but more for design elements, which do not distract the audience but which make the presentation a bit more interesting. For instance, a colleague of mine recently gave a presentation and before each section she'd have a slide with just the title of the section and a photo (e.g. "Methods" and a picture of her lab equipment). I liked that because it structures the presentation and is a nice break from charts, diagrams and (in the worst case) bullet points. So, yes, I am really more looking for inspiration on fonts, colours, using white space, ...


Importing photos finds all image files, not just camera pictures, with windows 7

Importing files with windows7 will detect all phone photo files and not just those under camera/DCIM directory , want to use windows so can change files names same way as when importing from camera, I know there are other programs, thanks, would appreciated tips how to do it importing with windows 7 resident program.


htaccess to Allow Downloads from Specific User agent and HTTP Referrer

i want to allow some files to be downloaded if only the user agent or referrer match the following  These are the user agents uTorrent Bittorrent Transmission  This is the http referrer www.niresh12495.com  I'm trying the following code but shows Error 500  RewriteCond %{HTTP_USER_AGENT} !^(*uTorrent*|*BitTorrent*|*Transmission*) [NC,OR] RewriteCond %{HTTP_REFERER} !^http://niresh12495.com/.*$      [NC,OR] RewriteCond %{HTTP_REFERER} !^http://niresh12495.com$ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://www.niresh12495.com/.*$ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://www.niresh12495.com$  [NC,OR] RewriteRule ^*\.(dmg|torrent|pkg|rar|exe|zip|jpeg|jpg|gif|png|bmp|mp3|flv|swf|png|css|pdf|mpg|mp4|mov|wav|wmv|swf|css|js|iso)$ http://www.niresh12495.com [R,F,NC]   Where am i wrong ?


I don't have cortana, how can I activate it?

I only have "search in windows" option and I don't see any configuration to activate cortana:    I've seen that a lot of people have problems with their region, but that doesn't seem to be my problem, I don't even get that message. How can I activate cortana? I used to have it. I don't know if it dissapeared with some kind of update or maybe I stopped some kind of service... How can I activate it?  Edit: I know it's only available in some regions and countries, but I also know it is available in Spain. The only part important there is that on the left pic it says "Search in Windows" instead of something related with cortana and on the right pic I have no options to modify anything cortana's related.^  I'm using Windows 10 Education 1607


Performance : Between in FROM or in WHERE?

I ask myself what is the more performance method when you join table and use JOIN in clause FROM and when you need to use BETWEEN :   Use Between in the FROM   or   Use between in the WHERE   Exemple :  SELECT * FROM Tab1 a inner join Tab2 b  on (a.pk=b.fk_1 AND a.date between b.date1 and b.date2)    Versus  SELECT * FROM Tab1 a inner join Tab2 b  on a.pk=b.fk_1   WHERE a.date between b.date1 and b.date2   Which one is the best?  Thank  P.S : sorry for my bad english


A word for a person who hates and wishes bad when someone tries to achieve or do something new

Here is an example: I suddenly think about coding (programming) something (I'm a new coder) that I believe I could finish but the other person accidently shows his/her hate and wishes that I fail. The person I'm talking about is not a coder (programmer).. Just that he/her shows the hate accidently. Is there a word for such a person?   I'm sure there is but I can't find it.


When to use bash ANSI C style escape, e.g. $'\n'

I don't use bash often but I recall in the past to pass a tab or newline on the command line I would have to escape the character using the special $ character before a single quoted string. Like $'\t', $'\n', etc. I had read about   What I want to know is when it's appropriate to use an ANSI C style escape. For example I was working with a regex in grep and it appeared I needed an ANSI C style escape for a newline. Then I switched to perl and it seemed I didn't.  Take for example  about a perl regex that didn't work. Here's the regex I was using:   echo -e -n "ab\r\ncd" | perl -w -e $'binmode STDIN;undef $/;$_ = <>;if(/ab\r\ncd/){print "test"}'   It turns out that is actually incorrect because I gave the string ANSI C style escape by using $. I just don't understand when I'm supposed to prepend the dollar sign and when I'm not.


I'm using Ubuntu Gnome 16.04.1 and want to resize the icons in the dash. Therefore I wanted to edit the file /usr/share/gnome-shell/themes/gnome-shell.css  This file does not exist, but rather the file "gnome-shell.css.save", which I can't open. Any ideas?  And is this even the right file to change the icon size? I am not talking about the desktop icons, but the icons the the dash.  I know there have been lots of similar questions, but I googled all night and couldnt find the right answer.  Thanks a lot.


This morning while I was doing a bit of work on my production server, when I accidentally executed the following command: sudo rm -r /*   Sadly, the server no longer accept my public key or password for any user via SSH. And files were hosted on /home directory instead of /var/www is there any way to restore the files? And after this incident happen I took AWS Snapshot of AWS EC2. Then Relaunch it by taking new server. Although I lost the all my files and project. But I discovered that I still have database. As I've also hosted another application under /var/www directory it seems to running fine. Would it possible to recover the mysql database from Secondary Image on server? I tried running executing previous mysql_user and mysql_password on my new server it is not authenticating.


I am trying deserialize data that come out of a LM98640 into 14 bits words:  Attached you can find a figure of the signals out of the LM98640.  (Figure 24 page 31)  I need to deserialize the signals TXOUT1 and TXOUT2:  A differential clock (TXCLK) is also output with transitions aligned with the center of the data eye. Data rates range from 80Mbps up to 640 Mbps.  (TXOUT1 and TXOUT2 changes as fast as a 640 MHz clock)  What kind of FPGA should i use to work at these rates?  Can i use flip flops to capture the data and a 14 bit wide shift register to pack this into words of 14 bits wide?  Or is it more complex at these rates? Am i going to face metastability problems since i assume a will be facing crossing time domains between the clock sampling the DATA out of the LM98640 and the clock of the FPGA.  The data deserialized is going to be provided to a NI DAQ or stored in a RAM.  What kind of xilinx FPGA should i use?  Thank you for your help


A pyramid $ABCDS$ in which all edges have different lengths and $|AS|+|CS|=|BS|+|DS|$

I'm working on problems from the Polish XI Olimpiada Matematyczna Gimnazjalistów (question 7 from . The deadline of 12 October 2015 has passed.     Prove, that there exist a pyramid $ABCDS$ ($ABCD$ is a rectangle) in which each pair of edges have different lengths and $|AS|+|CS|=|BS|+|DS|$.   I can solve this exercise analytically but I don't know how to solve it in a synthetically.


Is the commutator subgroup of the commutator subgroup still a normal subgroup?

Suppose that $G$ is any group, let $G_1:=[G,G]$ and $G_2:=[G_1,G_1]$. Is it true that $G_2$ is still a normal subgroup of $G$ or are there exceptions? I've tried coming up with a homomorphism with kernel $G_2$, but I couldn't really get anything started. Does anyone know if this is true or not?


Loosing my Win 8 loosing my Ubuntu this is the problem!

I have installed Ubuntu with Win 8 but at first step it blocked my Win8! Unfortunately I had to reinstall my Win8 & all of my program.  I've search your site so it seems the problem is because of GRUB! So I've used these codes which I found in your site:   sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update  and after that these sudo apt-get install -y boot-repair && (sudo boot-repair &)   and then boot & repair which unfortunately I've lost my Win 8 again!!!! So I've reinstall my Win but there is no boot menu at starting my PC to choose Ubuntu or Win 8 and my PC runs with Win 8!!!  So please help me to use lovely Ubuntu with my Win 8 together without loosing anything!   Additionally I am Beginner with Ubuntu.  Thank you.


Group in the context of elliptic curve crypto

I understand that the discrete log problem is defined as  $G^y \bmod p = x$  Speaking generally, $G$ here is a generator for the group zp*, where $G$ is able to generate each element in the group for a given prime modulus.  My question is, in the context of elliptic curve cryptography, is the group the entire set of points that lies on the curve being used?  Assuming this is correct, does the prime used for the modulus have to be larger or smaller than this group of points, or even reside in it?


I don't understand restrictions in terms of directories nesting. For example, /var/www/folder/index.html directories. What permissions, owner, group should every directory and file have? Is there such a thing as inheritance here? I mean, do outer's directory permissions, owner, group affect its inner directories and files?  All answers here explain permissions only in terms of one separate directory and a file in it. Nobody pays attention to inheritance.  For example, I want to set up an Nginx server to serve /var/www/folder directory and all its sub-directories and files. How should I think about permissions, owners, groups?  /var - what permissions? what are owner and group?  /var/www - what permissions? what are owner and group?  /var/www/folder1 - what permissions? what are owner and group?  /var/www/folder/folder2/ - what permissions? what are owner and group?  /var/www/folder/folder2/index.html - what permissions? what are owner and group?


how do I download and install from the web to a Windows XP system

I have spent hours downloading Ubuntu and "installing", I don't know what!  Could you kindly suggest a web site and choices (if this is possible).


The Ubuntu One service is :     Additionally, we continue to believe in the Ubuntu One file services,   the quality of the code, and the user experience, so will release the   code as open source software to give others an opportunity to build on   this code to create an open source file syncing platform.   How can I self-host the server and set up my Ubuntu One clients to use this server?  I looked at the Launchpad , but it seems that all the server-side code is still hidden.


Finding the number of digits of a given integer.

I know that a way to do this is by using log to the base 10. Or more specifically;  $$n=\lfloor\log_{10}x\rfloor + 1\tag{1}\label{1}$$  Where "$\lfloor{z}\rfloor$", rounds the value of $z$. This works really well, but when it comes to values like $x=9999$, we get $n=5$ when using the standard Eq. 1. This is because $9999\approx10000$ and $\lfloor\log_{10}{10000}\rfloor+1=5$. So is there an formula which can take in any value of $x$ and give the number of digits?


Please tell me what "would" means in this sentence.     In AmE, the phrase "go to hospital' would be not correct. One of the articles, a or the, would be necessary.


feedback on my solution regarding eqivalence relations.

For all $x, y \in \mathbb{R}$ define that $x \equiv y$ if $x^2 = y^2$. Then $\equiv$ is an equivalence relation on $\mathbb{R}$, there are infinitely many equivalence classes, one of them consists of one element and the rest consist of two elements.  Answer:  True.  Reflectivity:  To show that $\mathbb{R}$ is reflexive we need to show that  $\forall x \in \mathbb{R} : x \equiv x$. Let $x \in \mathbb{R}$, $x \equiv x$ if $x^2 = x^2$, which is obvious.  Symmetry: Let $x,y \in \mathbb{R}$ with $x \equiv y$, so we have $x^2=y^2$ and trivially we get $y^2=x^2$, hence $y \equiv x.$  Transitivity: Let $x,y,z \in \mathbb{R}$ with $x \equiv y$ and $y \equiv z$. We now show that $x \equiv z$: Since $x^2=y^2$ and $y^2=z^2$ we get by transitivity of equality $x^2=z^2$ and therefore $x \equiv z.$  Is the answer to the question correct?  And please tell me how I can prove that there are infinitely many equivalence classes one of them consists of one element and the rest consist of two elements. If it's not correct then please provide the correct answer.


I have a linear system $$A x = b $$ with $A$ being an $m \times n$ matrix ($m < n $) and $b $ being an $n $ vector, both over $\mathbb R_{\geq 0} $ (non-negative real numbers).  The system is guaranteed to have at least one non-negative solution (not known to us). I want to find the set of all non-negative solutions of the system.


I'm trying to do a presentation in spanish using beamer and so far my source looks like this:  \documentclass{beamer}  \usetheme{AnnArbor}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage{amssymb} \usepackage{amsthm} \usepackage{placeins} \usepackage{amsmath} \usepackage{amscd} \usepackage{graphicx}  \title{The Title} \author{Carlos Márquez} \institute{My Institution} \date{\today}  \begin{document}  \begin{frame}{Introduction} bla bla bla \end{frame}  \end{document}   But when I compile I get the following error message: !Package inputenc Error: Unicode char \u8:árq not set up for use with LaTeX. But I followed the instructions in , so I don't know what is wrong. I would appreciate some help to overcome this issue. Thanks.


are there any way to find the true package which I want to uninstall on Ubuntu?

Uninstalling using the method:  dpkg --list sudo apt-get remove “package-name” sudo apt-get purge “package-name” sudo apt-get autoremove   is a beautiful way, but the problem is in searching for the package which I really need to uninstall inside all of this long dpkg --list , and this is not the fatigue, you will get enough fatigue when looking for the true name of the true package which you want to remove.  -are there any way much easier than this? -are there any software like Iobit uninstaller which is on Windows? mean: software for uninstalling programs on Ubuntu? -are there any way to get the true name of the package which we want to remove?


How to lower down the volume more than by default?

When receiving calls, I sometime use the default headphone but the sound is too high for me.  I set the volume to the lower, but it's still too high.  How can I define the volume lower than the limited default from android, and if yes, how ?  Info : I don't have a volume parameter on my headphone Info 2 : It's a HTC One S (not One, One S !)  Thanks for your help.


changing notification emails from WordPress @mydomain.net to something else

How do I change notification emails address from WordPress @mydomain.net to something else.  I want to do this because WordPress @mydomain.net ends up getting flagged as junk mail.  Thanks  Daniel


Why is it considered less precise to state that the chain rule using Leibniz's notation as opposed to Lagrange's notation?

I have often read that it is less precise to state the chain rule using Leibniz's notation as opposed to Lagrange's notation. I don't understand this claim because it seems to me that the two statements are identical, and, if anything, Leibniz's formulation is 'cleaner'. If $y=f(u)$, and $u=g(x)$ (and $f$ is differentiable at $u$, and $g$ differentiable at $x$), then $$ \frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx} $$ Equally, we could write $$ (f \circ g)'(x) = (f' \circ g)(x)g'(x) $$ It seems simple to show that these two statements mean the same thing: $$ \frac{dy}{dx}\equiv(f \circ g)'(x) $$ because they both refer to the change in $y$ (where $y=(f \circ g)(x)$) divided by the change in $x$. More formally, they both refer to the same limit expression: $$ \lim_{\Delta x \to 0}\frac{f(g(x+\Delta x))-f(g(x))}{\Delta x} $$ We can also verify that $\frac{dy}{du}\equiv(f' \circ g)(x)$ and that $\frac{du}{dx} \equiv g'(x)$. However, the fact that the two notations refer to the same statement does not mean that we can't prefer one over the other. So what dangers are there in using Leibniz's notation for the chain rule? I have always found it to be simpler and more intuitive, but perhaps there are things which make Leibniz's notation misleading.


Your last flag was declined - no it wasn't

I went to flag something, and in the flag dialog I got the message  "Your last flag was declined - please review it before flagging this post!"    That's all well and good, but when I went to review my flags, the statement is not accurate.  My last 5 flags were all marked 'helpful'.  The 6th down the list is marked 'declined', but that wasn't my last flag.  The message should probably be modified to correspond to the actual condition that triggers it.  Perhaps it should say     One of your flags was recently declined - please review it before flagging this post!   I'm going to guess that this message is triggered if, of all the flags of mine that have been handled by a moderator, the one that was most recently handled was declined. This isn't necessarily the last flag that I raised (the one I raised most recently), as moderators might handle them in a different order than I raised them, and it's not necessarily the flag at the top of the list.  Thus, calling it my "last" flag seems like it could cause confusion.  Yes, I realize this is extremely minor.


In Harry Potter and the Chamber of Secrets, Uncle Vernon says:     We even let you have Dudley's second bedroom purely out of the goodness of our hearts.   There is plenty of evidence that there's no "goodness in their hearts" when it comes to Harry. They had no problem with him living under the stairs for almost 11 years. Why did that change?  Did someone in the wizarding world force them?  Did they decide to use the cupboard under the stairs for something else?  Or (much less likely), did they develop a tiny bit of sympathy for Harry?


Why does my procedure run slowly until I update statistics?

I am using a SQL 2008 database (not R2 sadly but have also tested this on an R2 database server) and have an ELT process running.  Data is extracted from source and loaded to staging tables in the destination DB, and then the transform processes are run.  On Tuesday (26 Nov) for no known reason, the procedure which 'shreds' the staging data for providers into the relational tables went from running approx 9 per second to one every 5½ minutes.  No parts of the database, ELT process (not a typo!), database server etc were changed.  With around 800 records every night (and up to several thousand) this single step of the process has gone from taking just over a minute to potentially taking just over 3 days (this doesn't happen in practise of course because we notice and stop the long running job).  This happens even if I manually run the code which is within the procedure rather than letting it run as part of SSIS, and the same happens if I run through the code for just one record rather than letting the loop go through.  By sheer chance I happened to discover that if I ran the following code against the provider staging table and the provider destination relational table, suddenly my ELT process runs as normal again and zips through everything:  update statistics tblProviderStaging with fullscan update statistics tblProvider with fullscan   My question (sorry for the journey to get here) is why would I have to run this manually every morning?  I can't even run it before the ELT as it makes no difference - only affects the process if I run it while the process is slowly churning through.  Presently I am running this at 7am every morning (SSIS kicks off at 6:30).  Auto Update Statistics and Auto Create Statistics are both set to 'True'.  I have never, in my limited experience, come across a scenario where I have to manually run this every morning?  And the fact that I can't just run it either but have to run it while the ELT is still running?  We have tried running the SSIS package from a different server, against a different destination database server (restored the DB to another DBS), have checked all indexes, I/O performance is running as normal, there is no undue server load happening while this runs (it was running about 18% capacity and nothing to speak of on any of the performance metrics).  The staging table in question has just over 12million rows and uses up just over 1.5GB of space (including index size).  The destination table in question has 430k rows and uses around 140 MB of space (including index size).  This has not changed significantly.  If there is any more information I need to provide please let me know but I'm shooting into the dark here so I don't know what is helpful and what is just in the way.  If anyone has any ideas of places and things to check to see why I am having to do this please shout!


Is there a foreach in MATLAB? If so, how does it behave if the underlying data changes?

Is there a foreach structure in MATLAB?  If so, what happens if the underlying data changes (i.e. if objects are added to the set)?


Examples of non-isomorphic fields with isomorphic group of units and additive group structure

YACP mentions in a  that:     There are examples of non-isomorphic fields $K$ and $L$ with $(K,+)\cong  (L,+)$ and $(K^{\times} ,\cdot)\cong (L^{\times},\cdot)$   Can someone provide an example?  I have found the following . But there, the underlying structure is a ring. Hence, an answer to the current question is automatically an answer to the old question as well. EDIT: Sorry, the other question asks for finite commutative ring, and this won't be possible in the case of fields…


What are the biggest differences between Reversal Rings, Extension Tubes and Macro Lenses?

As far as I understand all three options help you do macro photography but are their other reasons for having the three different items? I figured reversal rings and extension tubes were just for the low cost but with additional more expensive features being added to the two options it seems there may be certain situations for each type? What are their biggest differences and advantages over each other?   Are there situations where you would have one over the other? Do all three options have the same "wafer thin" depth of field?  Do they all suffer from the same light loss? Do any of them affect your photos more negatively than the others? Can I achieve the same magnification with rings and tubes that I can with proper lenses? Would you ever combine these options together or would there be no need for that?   I ask because I recently bought a cheap extension tube and reversal ring and I'm trying to get a better overall understanding of each. I tend to use the extension tube a lot more, because I can put it on my 70-200 and have a workable distance between subject and lens.  This photo was taken with 49mm of extension tube on the 70-200 I believe which may be greater than 1:1. Would it be sharper with a macro lens?       on 500px


Why does optical media have different refractive indices?

Optical density is a measure of the refracting power of a medium. In other words, the higher the optical density, the more the light will be refracted or slowed down as it moves through the medium. Optical density is related to refractive index in that materials with a high refractive index will also have a high optical density. Light will travel slower through a medium with a high refractive index and high optical density and faster through a medium which has a low refractive index and a low optical density. So to restate the question, why do optical media have different refractive indices?


If $\lambda\neq0$ is a limit ordinal, then $1+\lambda=\lambda$?

For example if $\lambda=\omega$ then $1+\omega=\omega$  If this is true, how to prove it formally? if not, could you make a counterexample?


When i'm trying to populate database numbers to jcombobox it shows nullponterexception what is the reason?

i'm using simple statement for this and one resultset object also, but When i trying to populate the values to jcombobox it raises nullpointerException even though i checked for !=null also...WHAT is the reason can any one tell me..   public void myInit() {     try     {       //register driver       Class.forName("oracle.jdbc.driver.OracleDriver");       //establish the connection       con1 = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","virat");       if(con1!=null)       {       //create statement        st = con1.createStatement();       }       if(st!=null)       {       //execute login to get values to combobox       rs1 = st.executeQuery("select empid from employee");       }       if(rs1!=null)       {       while(rs1.next())       {           comboBox.addItem(rs1.getString(1));       }       }     }     catch(ClassNotFoundException cnf)     {         JOptionPane.showMessageDialog(null, cnf);     }     catch(SQLException se)     {         JOptionPane.showMessageDialog(null, se);                 }  }


The Chinese remainder theorem as stated in my textbook: If $a,b \in \Bbb Z $ such that $\gcd(a,b) = 1$ then for arbitrary $c,d \in \Bbb Z$ there exists an $x \in \Bbb Z $ with $x \equiv c\bmod a$  and $x \equiv d \bmod  b$. It then gives a proof (which I understand) showing that by taking $p,q \in \Bbb Z$ such that $pa + qb = 1$ that $x \equiv pad + qbc \bmod  ab$. What I do not understand is the $\bmod  ab $ part of this equation? Can anyone shed some light on where this came from?


How to install new Skype in Ubuntu 17.10 and later

Microsoft just release the new Skype client. I downloaded it from   The compressed folder has a usr folder with a lot of other files in it. How do I install it ?   sindre@selite:~/Install$ tree usr  usr ├── bin │   └── skypeforlinux └── share     ├── applications     │   └── skypeforlinux.desktop     ├── doc     │   └── skypeforlinux     │       └── third-party_attributions.html     ├── icons     │   └── hicolor     │       ├── 1024x1024     │       │   └── apps     │       │       └── skypeforlinux.png     │       ├── 16x16     │       │   └── apps     │       │       └── skypeforlinux.png     │       ├── 256x256     │       │   └── apps     │       │       └── skypeforlinux.png     │       ├── 32x32     │       │   └── apps     │       │       └── skypeforlinux.png     │       └── 512x512     │           └── apps     │               └── skypeforlinux.png     ├── pixmaps     │   └── skypeforlinux.png     └── skypeforlinux         ├── blink_image_resources_200_percent.pak         ├── content_resources_200_percent.pak         ├── content_shell.pak         ├── icudtl.dat         ├── libffmpeg.so         ├── libnode.so         ├── LICENSES.chromium.html         ├── locales         │   ├── am.pak         │   ├── ar.pak         │   ├── bg.pak         │   ├── bn.pak         │   ├── ca.pak         │   ├── cs.pak         │   ├── da.pak         │   ├── de.pak         │   ├── el.pak         │   ├── en-GB.pak         │   ├── en-US.pak         │   ├── es-419.pak         │   ├── es.pak         │   ├── et.pak         │   ├── fake-bidi.pak         │   ├── fa.pak         │   ├── fil.pak         │   ├── fi.pak         │   ├── fr.pak         │   ├── gu.pak         │   ├── he.pak         │   ├── hi.pak         │   ├── hr.pak         │   ├── hu.pak         │   ├── id.pak         │   ├── it.pak         │   ├── ja.pak         │   ├── kn.pak         │   ├── ko.pak         │   ├── lt.pak         │   ├── lv.pak         │   ├── ml.pak         │   ├── mr.pak         │   ├── ms.pak         │   ├── nb.pak         │   ├── nl.pak         │   ├── pl.pak         │   ├── pt-BR.pak         │   ├── pt-PT.pak         │   ├── ro.pak         │   ├── ru.pak         │   ├── sk.pak         │   ├── sl.pak         │   ├── sr.pak         │   ├── sv.pak         │   ├── sw.pak         │   ├── ta.pak         │   ├── te.pak         │   ├── th.pak         │   ├── tr.pak         │   ├── uk.pak         │   ├── vi.pak         │   ├── zh-CN.pak         │   └── zh-TW.pak         ├── natives_blob.bin         ├── pdf_viewer_resources.pak         ├── resources         │   ├── app.asar         │   ├── app.asar.unpacked         │   │   └── node_modules         │   │       ├── keyboard-layout         │   │       │   └── build         │   │       │       └── Release         │   │       │           └── keyboard-layout-manager.node         │   │       ├── keytar         │   │       │   └── build         │   │       │       └── Release         │   │       │           └── keytar.node         │   │       ├── @paulcbetts         │   │       │   ├── cld         │   │       │   │   └── build         │   │       │   │       └── Release         │   │       │   │           └── cld.node         │   │       │   └── spellchecker         │   │       │       └── build         │   │       │           └── Release         │   │       │               └── spellchecker.node         │   │       ├── slimcore         │   │       │   └── bin         │   │       │       ├── sharing-indicator.node         │   │       │       └── slimcore.node         │   │       └── sqlite3         │   │           └── lib         │   │               └── binding         │   │                   └── node_sqlite3.node         │   ├── default_app.asar         │   └── electron.asar         ├── skypeforlinux         ├── snapshot_blob.bin         ├── ui_resources_200_percent.pak         ├── version         └── views_resources_200_percent.pak  41 directories, 87 files   (Question is for new Skype for Ubuntu 17.10. Old answers does not help.)


Let $V$ be a finite dimensional vector space over $k$ and $A = \text{End}_k V$. How do I see that $V$ is a simple $A$-module?


When to use GlueList over ArrayList or LinkedList?

I came across new list implementation which called   I want to know when i should use over ArrayList or LinkedList.


I really enjoy using this app, but the back button or the phone back button is broken. As in example, if I open the main menu, click on the Stack Overflow top menu select tags, click on php in example, click on any topic, click on back ... I should see the topics, but instead I see the tags.


I know that for an object to be transparent, visible light must go through it undisturbed.  In other words, if the light energy is sufficiently high to excite one of the electrons in the material, then it will be absorbed, and thus, the object will not be transparent.  On the other hand, if the energy of the light is not sufficient to excite one of the electrons in the material, then it will pass through the material without being absorbed, and thus, the object will appear transparent.  My question is: For a non-transparent object like a brick, when the light is absorbed by an electron, it will eventually be re-emitted. When the light is re-emitted won't the object appear transparent since the light will have essentially gone through the object?


Modify global variable from async function in python

I'm making a Discord bot in Python using discord.py. I'd like to set/modify a global variable from an async thread.  message = ""  @bot.command() async def test(ctx, msg):     message = msg   However this doesn't work. How can I achieve something that does this?


How to upgrade directly to 12.10 from 10.04?

How to upgrade directly to 12.10 (or latest) from 10.04. When i try to upgrade to 10.10, it gets following error.  Failed to fetch Fetching the upgrade failed. There may be a network problem   I'm just a beginner in Ubuntu. I have already installed win 7 and i don't want to format my computer. I'm hoping for a quick, easily applied solution.


I am trying to make a gui that takes a number and returns the sum and avg. I have tried to make it work but it returns 4 errors when useing the java StatClacGui in cmd. Here is the code:  import java.awt.*; import java.awt.event.*; import javax.swing.*;  public class StatCalcGUI extends JPanel implements ActionListener {     double sumt = 0;     double avg;     int count =0;      public static void main(String[] args) {         JFrame window = new JFrame("Stat Calc");         StatCalcGUI content = new StatCalcGUI();         window.setContentPane(content);         window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         window.setLocation(120,70);         window.setSize(450,350);         window.setVisible(true);     }      private JTextField tekst;     private JLabel entry;     private JLabel sum;     private JLabel average;     private JLabel stddev;       private JButton clearButton;     private JButton enterButton;      private JLabel titel;      private StatCalcGUI stats;      public StatCalcGUI(){         setBackground(Color.BLACK);         setLayout(new GridLayout(6,1));         clearButton = new JButton("Clear");         clearButton.addActionListener(this);         enterButton = new JButton("Enter");         enterButton.addActionListener(this);         JPanel ip = new JPanel();         ip.setLayout(new GridLayout(1,3));         ip.add(tekst);         ip.add(enterButton);         ip.add(clearButton);          titel =    makeLabel(" Enter a number in field");         entry =    makeLabel(" Number of entries   "+ count);         sum =      makeLabel(" Sum                 " + sumt);         average =  makeLabel(" Average             " + avg);         stddev =   makeLabel(" Standard Deviation  ");          add(titel);         add(ip);         add(entry);         add(sum);         add(average);         add(stddev);     }      public void actionPerformed(ActionEvent evt) {         if (evt.getSource() == enterButton) {             double add = Double.parseDouble(tekst.getText());             sumt = sumt + add;             count ++;             avg =(double) sumt/count;          }else if (evt.getSource() == clearButton) {             sumt = 0;             avg = 0;             count = 0;         }      }     private JLabel makeLabel(String teskt){         JLabel label = new JLabel(teskt);         label.setBackground(Color.RED );         label.setForeground(Color.BLUE );         label.setFont(new Font("Monospaced", Font.PLAIN, 12));         label.setOpaque(true);         return label;     } }   And the error code is:  Exception in thread "main" java.lang.NullPointerException         at java.awt.Container.addImpl(Unknown Source)         at java.awt.Container.add(Unknown Source)         at StatCalcGUI.<init>(StatCalcGUI.java:43)         at StatCalcGUI.main(StatCalcGUI.java:12)   I Dont really understand the error, can anybody help?


I only have access to the review queues on the Raspberry Pi Stack Exchange and Ask Ubuntu, but on the First Posts queue, the No Action Needed button has a grammatical issue on the tooltip.   I can't grab a screenshot right now, but on the Ask Ubuntu and RPi SE the tooltip says this answers seems to be valid and it should be, at least to be grammatically correct, This answer seems to be valid.  Just a heads up, not a huge issue, just something grammar freaks  might notice and freak out on.


how to avoid "CALL16 reloc not against global symbol" for function defined in assembly with gcc on mips

This code:  __asm__ (   "f_asm:\n"   "jr $ra\n"   "nop\n" );  void f(void) __asm__("f_asm");  int main(void) {   f();   return 0; }   Yields this error when compiled with mips-linux-gnu-gcc on Debian x64 host:  /usr/lib/gcc-cross/mips-linux-gnu/6/../../../../mips-linux-gnu/bin/ld: /tmp/ccjejLxv.o: CALL16 reloc at 0x2c not against global symbol /tmp/ccjejLxv.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status   It works if I add .globl f_asm ... but why is this necessary? Can't one have local functions on mips ABIs?


In zsh, when I type ls, it lists the files in the directory, as I would expect it to. However, when I type sl zsh does not ASK whether I want a steam locomotive to roll across my screen. It simply autocorrects to ls with no way to actually run the program sl. This is very annoying, how do I tell zsh that sl really means sl?  It's worth noting that zsh does NOT ask if I want it corrected (unlike the usual auto-correct), it seems to be an alias. However, I can't figure out where the alias is. (which file)


Cross-thread operation not valid when Thread start

I have a method      public void splitXmlFile()     {         string[] line = Regex.Split(inputText.Text, "\n+");         progressStt.Maximum = line.Length;         progressStt.Step = 1;         foreach (string q in line)         {             progressStt.performStep();             if (Regex.IsMatch(q, "<[^>]*>"))             {                 if (Regex.IsMatch(Regex.Split(q, "<[^>]*>")[0], @"\s"))                 {                 }                 string[] gettag = Regex.Split(q, "(<.*?>)|(.+?(?=<|$))");                 foreach (var gettag1 in gettag)                 {                     if (Regex.IsMatch(gettag1, "<[^>]*>"))                     {                     }                     else                     {                         if (Regex.IsMatch(gettag1, @"\w"))                             listXml.Add(gettag1);                     }                 }             }             else             {                 if (Regex.IsMatch(q, @"\w"))                     listXml.Add(q);             }         }         progressStt.Value = 0;     }   Create new thread:     Thread t1= new Thread(new ThreadStart(splitXmlFile)); t1.Start();   But when i start i had i exception in line:  string[] line = Regex.Split(inputText.Text, "\n+");   I think it can come in:  progressStt.Maximum = line.Length;             progressStt.Step = 1; progressStt.performStep(); progressStt.Value = 0;   I can't fix it's, What should i do??


What is the number of triangles with integer sides, given the length of the longest side?

Suppose $a,b,c \in\mathbb N$, and the value of $c$ is known and fixed, while $a$ and $b$ are unknown and are both smaller than $c$. What is the total number of unique triangles possible with $a, b$ and $c$ as its sides?


Should awakened mind be considered an action? I need to know because in combat I want to use it to talk to my team without alerting enemies to our presence.


Is it possible to detect a player consuming food items?

The idea is that a certain number of random people on the server are identified to have a food allergy - let's pick wheat for an example. Then, when those players eat any item that contains wheat (bread, cake, and cookie in vanilla MC), they will get the poison effect for a certain amount of time.  This seems to be three steps:   using /scoreboard teams add wheatAllergy to make a team named wheatAllergy, using /scoreboard teams join wheatAllergy @r[limit=X] to specify X random players and place them on team wheatAllergy, and somehow identifying when players on wheatAllergy eat any food that contains wheat and applying a poison effect to them.   I assume I would need one command block for each bread, cake, and cookie, but I'm unsure on what those commands would be, exactly. Any ideas?  For bonus points: Same as above, but for contact allergies: i.e., when players on, say, team eggAllergy are hit by a thrown egg, or when players on team dogAllergy touch wolves, tamed or untamed. I feel like contact should be easier than eating, but I'm still unsure of what the command would be.


I hope this kind of question will qualify for the purpose of this website. What is the purpose of alternate levels in BIT.TRIP. Runner 2 ? By alternate levels I mean those levels that stray from the "main path" on the world map and you have to "pay" some gold to play them.  It seems to me that the quantity of gold demanded is not so big and you can easily play them normally, also they are not more difficult (like the vault ones) or special in any other way.  EDIT: It looks to me that I was not so clear on my question. I was not talking about the alternate exits, I was talking about the levels on the WORLD MAP that are  "locked" and you have to pay gold to get to play them.


How come gravity is $\mathcal{N}=8$? Why is graviton spin 2

I never understood why  $\mathcal N=8$, nor why the spin of a  is 2.  I've been reading around but I still don't have a back-of-the-envolope understanding.


Custom regex validation for mobile phones issue in PHP

I am trying to build my regex to validate phone numbers. These are the rules:   Telephones should not contain any characters except numbers and +  Other strings which doesn't start with 06 or +316 or 0316 or 00316 are invalid.   This is what I tried: $telephone = preg_replace('/[^0-9+]/','', $telephone);  removes all characters except + and numbers . Here still I need to check if the + is the first character or not. For example 466116+ or 21323+3122 are invalid.  preg_match('/^(06|+316)/i', $telephone) . I am trying here to add the starting conditions , but it doesn't work . Could you please help me out?  I am lost with regex :| Thank you


Can I put my desktop pc into checked in luggage?

My PC case is heavy, so I will only bring the following: -Motherboard -RAM sticks -Video Card -3 HDDs (Planning to put this on handcarry) -Power Supply -AIO Cooler (water cooler) -Keyboard and Mouse (can go to hand carry too)  New Monitor and case will be bought from destination.  They will all be disassembled and put into boxes (Thinking it could fit into the original Motherboard and PSU boxes).  I'm going to US and I really don't mind it being checked by TSA as long as it won't get broken. :)


Why does inherting from object in Python, change they type of the __dict__ when not specifying a parent does not?

I have a simple piece of code that tries to give a convenience to file in Python.  class File:     def __init__(this, *args):         this._file = file(*args)      def __del__(this):         this._file.close()  def createCallForwarder(method):     return lambda obj,*args: method(obj._file, *args)  _dict = file.__dict__ for (k,v) in zip(_dict.keys(), _dict.values()):     if not (k.startswith('__') and k.endswith('__')):         if v.__class__.__name__ == 'method_descriptor':             File.__dict__[k] = createCallForwarder(v)  # get the repr method File.__repr__ = createCallForwarder(dict_proxy['__repr__'])   If i change File to inherit from object, it does not let me assign the methods.   Why is it different?


I have some questions regarding this system that is supposed to take in an input signal and move the load according to this signal. The current load position is feedback to the CT, which compares the current position to the desired position and produces an error signal that is amplified by the amplifier. I understand the processes involving the CT being connected with the CX and comparing it to produce an error signal but am unsure about other things. CX is a control transmitter and CT is a control transformer 1.What type of feedback inductive position sensor component is used and how does it work? Or is the CT THE feedback component  How exactly does the amplifier amplify the error signal that makes the load move to the correct position. Quite unclear about this  Any help is appreciated thanks


How did Hagrid know about Quirrell if the job is cursed? Surely it would have meant he wasn't a teacher yet?

It's been a while since I've read the first Harry Potter book but I can't help noticing that it is generally accepted that the DADA job is cursed and no teacher lasts longer than one year. In fact, Dumbledore confirms that in The Half-Blood Prince when viewing the memory of Tom Riddle asking for the DADA job, suggesting that after he was rejected, he immediately cursed the position and from then on, no professor has lasted longer than one year.  If so, not only why has nothing been done about it- because hey all books have plot holes, but more importantly, when Harry meets Quirrell in the Leaky Cauldron with Hagrid, Hagrid says that Quirrell took a year off to get some first hand experience, but that implies that he was the previous DADA teacher.  Hagrid also mentions that he is 'always trembling' and is 'scared of the students, scared of his own subject' but if he went to the Black Forest and was possessed by Voldemort in 1990 and has come back to teach in 1991 when Harry joins Hogwarts, then there hasn't been any time for him to be faced with any students or any opportunities for anyone, least of all Hagrid, who has no reason to be in the castle at all, to see how he interacts with his subject.  This suggests Quirrell's attitude predates his 1991, which can't be true since there is only a small window between the end of his sabbatical and the beginning of term. This also fails to answer how Quirrell has miraculously survived the curse for at least two years.  I have read of Harry Potter Wiki that Quirrell was the old Muggle Studies teacher but then switched to DADA upon his return from sabbatical. But that also doesn't explain why he would take a sabbatical to 'get some first hand experience' in the Black Forest if he was a Muggle Studies professor.  So my question is, how was Hagrid able to provide such a comprehensive description of Quirrell, if he had only begun his DADA job, and if he had been a teacher for longer- how did he avoid the curse?


I have server on 2 ssd disks connected by Raid 1  Today I got 500 internal error on opening website. I have requested server management to reboot the computer.  After reboot to my surprise all my directories, files, sql databases after July 2013 went missing. So effectively all data from July 2013-May 2014 can't be seen.  Please suggest what are my options, do you think my data is wiped out and if there are ways to recover it.


How do you judge the quality of a journal?

A colleague and I recently submitted a paper to a journal with an impressive-sounding name, the "International Journal of Artificial Intelligence and Computational Research". According to ,      IJAICR is a referred [sic] journal in the field of computer science, artificial intelligence and soft computing methods.   It was accepted two days after we submitted it. That's too fast. We were suspicious. Although the journal said that all papers are peer-reviewed, we could not see how that was done in two days. Plus, we received no comments from the reviewers. Also, the submission guidelines didn't ask for a "blind" copy (without our names or any references to who we were).   But wait, there's more.  The acceptance letter asked us to send them US$300 to publish it. We did not. We've withdrawn our submission and will submit a new version of the paper to a more reputable journal in the coming months.  How might we make a better choice of respectable journals before we submit next time?


How to put right brace to group cases without using math mode?

I want do put right brace to group two cases (mixed normal and math mode) but when I try something, it says that I can do it only in math mode. Can someone help me, please?


Search ranking for important keywords has gone down drastically

Firstly, we are a small entrepreneurial team of 3 persons and I am more like an amateur webmaster of the company's website as we cannot really afford a technical guy/department right now.   A few weeks earlier, our website traffic and rankings for most keywords decreased overnight. I did a lot of reading henceforth and learned about Penguin 2.1 which people said is the reason for the drop. Something like this had never happened before. Now, I have gone through the entire Google webmaster help section. It says there that if a manual penalty is taken against us, we would notice a message in Manual Actions page. So far, we haven't received any notice from Google for web spam.  Some SEO guys I contacted said they found spam links in our backlink profile. I do believe I had mistakenly purchased a cheap link/SEO scheme when I was yet very new to SEO. This was more than a year back but since then we have been legitimate. Moreover, how do I find out which is a spam link and which is not? Our content is all original, refreshing and the best you will find in our niche. We also have a blog but on a different domain (wordpress.com) from where we send out anchored links to our business website. Is this a good thing to do?  Now, how should we proceed and recover our traffic/rankings. I tried searching in webmasters for a way to reach google and ask them why the traffic has decreased suddenly, but I couldn't find a contact form or something.  Can someone please go through our website and help in making things more clear regarding the reason for the drop, along with a solution.  Will really appreciate this as I can't get to figure this out and its taking a lot of time.  Vaivhav


"Waiter's paradox" - what's wrong with this reasoning?

Here's a puzzle I just heard and while I know that this reasoning is fundamentally wrong, I can't explain why:   Three people bought a dish for, say, 25\$ and paid 30\$ The waiter didn't want to divide 5 by 3, so he took 2\$ for himself and gave 1$ to each of the clients Each of them seems to have spent 9\$, but 9\$ x 3 = 27\$, not 28. What happened to this one dollar?


How to remove an entry from Chrome's Remembered URLs from the url bar?

I've got a URL in Chrome "local.mysite.com" that autopopulates when I start typing "local.my" into the URL bar.  Note that this URL DOES NOT EXIST in my browser history (at chrome://history/#e=1&p=0) because it isn't a real site and therefore couldn't ever be successfully visited and therefore never shows up in my history.   The URL I want is "local.mysite.com/subdir/". That URL is 3 down in the suggested results because I keep accidentally hitting "enter" when it auto-suggests the unwanted first URL thus reinforcing its assumption that that is the one I want.   How do I get rid of the "local.mysite.com" entry in Chrome's memory?


Let $a,b,c,d \in \mathbb{Z}$. If $\gcd(ac,bd)=1$, then $\gcd(a,b)=\gcd(c,d)=1$? Couldn't find any counterexample for that affirmation, all I can find is examples of it working. Like we having: $$\gcd(24,35)=1 \text{ and } \gcd(4,5)=\gcd(6,7)=1 $$ How can I prove it?


Let $f:[0,1]\to \mathbb{R}$ be defined by  $f(x)=\frac{1}{q},\; \;\; x=\frac{p}{q}\in[0,1], p,q \in \mathbb{Z}^+$ and   $f(x)=0,\;\;\; otherwise.$  Find the points of continuity and discontinuity.   Answer to the above question is:      $f$ is continuous at every irrational number in $[0,1]$ and $0$ but discontinuous at all rationals except $0$.   I know that if we can find two sequences $\{a_n\},\{b_n\} \in [0,1]$ such that $\{a_n\},\{b_n\}$ converges to $\alpha$ but $f(a_n),f(b_n)$ converges to different limits. Then $f$ is not continuous at $x=\alpha$.  I am unable to solve this. How to solve such question? Thanks.


I see that I can run:   notify-send -u low -i terminal "yo"   and   notify-send -u low -i error "yo"   But I couldn't find any mentions of the icon names "terminal" and "error" in the man page. How can I find out what are the other possible icon names? What are they?


Creating Python Scripts from within ArcGIS?

I used to use SAGA GIS and automated simple tasks by dragging and dropping (or clicking something and copy and paste - don't recall sorry) to create a simple script that I could then run.  I've used this for example to mosaik a bunch of files and save as a new file.  I can then just update the list of files I want to mosaik and run the script.  I am working with a team who uses ArcGIS and was hoping that there was a simple way to automate simple tasks.  I know that you can use Python with ArcGIS, and I'm looking for an easy way to help them get started along the Python path.  I don't have access to ArcGIS itself yet, so can't just play and see.  I've checked out quite a few sites on this, but they focus on more advanced tasks.  I am somewhat guessing at the version being used - but it's a new system so I presume the most recent.


Play Store Downloading of Updates Stuck part way through download

I have a Samsung Galaxy S3 & I have 3 updates in the Play Store.  When I click on them they start to download but part way through between 40%-60% they will just stop downloading.  The phone looks like it is still trying to download but nothing is happening.  Started happening yesterday.  I have tried force stop, clear data and clear cache from the Google Play Store and Google's account manager.  Also, tried uninstalling Google Play Store.  I have also cleared the Cache from the Recovery start up (Up arrow, Home, Power button).    Nothing seems to work.  Phone works fine outside of unable to download from Play Store.  Checked system updates and ran Lookout for viruses and everything is fine.  Please help.  Thanks


Bash script callable from home but not scripts directory

I'm having a very weird error when trying to make a script callable. I have a scripts directory in /srv/projectname/scripts where I store you know scripts to be called as cron jobs for different projects. I'm trying at add a new one and seeing very weird behavior. In debugging I reproduce it using this set of commands  from /srv/projectname/scripts create a file create a file  vi helloworld.sh   insert text exactly:  #!/usr/bin/env bash  echo "Hello World!"   Make the script executable and try to call it:  chmod +x helloworld.sh ./helloworld.sh   Which gives:  -bash: ./helloworld.sh: Permission denied   Make sure there isn't a code error:  bash helloworld.sh   Which gives:  Hello World!   Copy the script to home and call it:  cp helloworld.sh ~/helloword.sh ~/helloword.sh   Which gives:  Hello World!   I have no idea what is going on. I have tried a lot of variants where I give the full path, same error, or if I sudo which gives no error, but also doesn't print "Hello World!".  Other details: Running on: Ubuntu 12.04.4 LTS I have also noticed that I can't tab-complete to the full name of a script that gives me this error, but I can once I have moved it. The directory /srv/projectname is a git repo but this script hasn't been added to it yet, I because I usually only do that once its working yet.  ls -l lines for the script and scripts directory are  -rwxrwxr-x 1 ubuntu ubuntu     41 Apr 21 20:25 helloworld.sh drwxrwxr-x 3 ubuntu ubuntu 4096 Apr 21 20:25 scripts   respectively   Any help would be awesome.  EDIT: Gilles had the answer. To save anyone else who has this problem a google search.  sudo mount /srv/projectname/ -o remount   reloads the edited fstab, and everything works again.


How can I start a Q&A site that does not yet exist?

Is there is a Q&A site that doesn't exist yet which Stack Exchange is a good format for. How can I make that site?


$p$ is prime and $a\in \mathbb Z$ Prove that this set is a complete residue system $\bmod p$

if $p$ is prime and $a\in \mathbb Z$ such that $p\nmid a$, Show that the set $$ R=\{0,a,2a,3a,...,(p-1)a\}$$ Is a complete residue system modulo $p$. This problem is from my textbook. My attempt: I think that the best way to prove it it's by contradiction, so let $x,y \in R$ such that : $$x\ne y, x\equiv y \pmod p$$ and we gonna prove that it's impossible that $x,y\in R$ and $x\equiv y \pmod p$... But I don't know how to do it.


NVIDIA SHIELD tablet, how do I return to 4.4 KitKat from Lollipop?

I mistakenly installed 5.0 Lollipop on my NVIDIA SHIELD tablet, and I hate it. Is there a way to revert back to KitKat? I've tried finding a way, but no luck so far.     This was the original post:   StackExchange doesn't let me comment or reply to this question because I don't have enough reputation... so I am forced to create a duplicate.


Difficult to reorder sites on Android App

When editing the "Your Sites" list on the Android app, the handles on the left are extremely difficult to drag, which is necessary to reorder them. They send to be further right than I would expect, basically centered on the left edge of my screen.  Unless I touch the perfect area I find that it ends up getting interpreted as sliding the left navigation drawer.  I am encountering this issue on a Droid MAXX with Android version 4.4.4.  Edit: here's a screenshot of what I'm seeing.


Why do NFL AFC teams play against NFC during season

KC Chiefs played against TB Buccaneers (NFC) months before the Super Bowl :  I was wondering how come an AFC team plays against a NFC one before they reached the play offs


How do I use Arial in math mode alongside the default font settings?

I want some symbols/text in math mode to be Arial? This cannot ve done by changing the settings for various kinds of text in math mode like the default italic text or the default bold text. Put another way, I want something like \arial{text} the same there is stuff like \mathbb{text} and \mathcal{text}. How do I do this?


While , I came across a post with duplicate answers (auto).      All three answer(, , ) are very similar posted by same user.    I'm interested in knowing how this works.  Does this work for copied answers of different users?  Is something that can be be shared to us on how it works or detected?


I was surprised to discover yesterday that various summary statistics can be calculated on dates. Googling has found lots on syntax required to calculate summary statistics on dates, but very little on how calculations are done. How are summary statistics (mean, sd etc) calculated on dates?  Example R code:  myDates <- as.Date(paste0(sample(1:28, 100, replace=T), '/',                            sample(1:12, 100, replace=T), '/',                            2013),                     '%d/%m/%Y')  mean(myDates) median(myDates) sd(myDates) var(myDates)


Faithful representation of a finite group over reals

Suppose $\pi :G \rightarrow SL_2(\mathbb{R})$ is a faithful representation of a finite group $G$, then I want to prove that $G$ must be cyclic.  I knew that every finite subgroup of $GL_2(\mathbb{R})$ is conjugate to a subgroup of the orthogonal group $O_2(\mathbb{R})$ and that $G \cong \pi (G) \leq SL_2(\mathbb{R})$ but I don't know how to proceed.


proof limit not exist using delta-epsilon

i'm watching  . and the answers and they're all fine but there is something that bugging me about "rounding down" i attach it below  "for $x < 0$ but sufficiently close to $0$ (e.g., $x = -0.1$), $\lfloor \sin x \rfloor$ is no longer zero, but $-1$, because you are "rounding down."  Therefore, $f(x) = x/(x+1)$"  and unfortunately people who answer this is no longer active , so can someone help me how that $rounding down" work ?


let $f(x,y)$ continuous in $[a,b] \times [c,d]$ and $\frac{\partial f}{\partial y} $ continuous in $[a,b] \times [c,d]$, define $$F(y) = \int_a^b f(x,y)dx$$   then $$F'(y) = \int_a^b \frac{\partial f}{\partial y}(x,y) dx$$   Can you explain the intuition behind this rule, in terms of geometry for example, or how did Leibniz  came up with this rule?


No matter which of the basemaps I use in QGIS (Open Map, Google Maps, Google Hybrid, Google Terrain & Streets) when I export as image or pdf the basemap is so faint that all the features are unreadable, even though in looks perfect in Layout View. Just want to get WYSIWYG.


Backprop working on output layer but not hidden layer

I wrote a program to classify MNIST with a vanilla neural net using sigmoid activation and back-propagation training. I tried to work through the math myself (because I want to understand things ), and the formula I ended up getting was   $dE/(dW_{ab})=$ \begin{cases} 2∗O_a∗O_b∗(1−O_b)∗(O_b−exp),  & \text{if node b is an output node} \\ Oa∗Ob∗(1−Ob)∗∑_L(dE/(dO_L)∗dO_L/dx∗W_{bL}), & \text{if node b is a hidden node} \end{cases}  Where $L$ is the next layer, and $∑_L$ is the sum across that layer. This looked similar to what I saw elsewhere so I assumed it was correct. Having implemented the Neural net and trying to train it over MNIST, I found that It wasn't forking at all (effectively random results). To test it, I tried unit testing pieces individually, and I found that if I only adjust weights in the final layer I had a successful classification rate of 88% after just one epoch.   So clearly there is something wrong with the way I calculate the weight adjustments for non-output layers. The only reasons I could think of this being true are that my formula is wrong or that since the expected outputs are vectors of 9 0's and a 1, the algorithm is minimizing error by just making everything zero, and just ignoring the 1. (although I don't think either of these things are very likely).  Here is the Java code of the training algorithm. I think that variable names make enough sense that this segment is understandable without the rest of the program, but if you need to see something else, just ask.       for(int ii = 0; ii < outputLayer.size(); ii++)      {         Node n = outputLayer.get(ii);         for(Connection c : n.connections)         {            c.origin.adjustSum += c.destination.value * (1-c.destination.value) * (c.destination.value - expected[ii])*c.weight;            c.weight -= learningRate * c.origin.value * c.destination.value * (1-c.destination.value) * (c.destination.value - expected[ii]);         }      }      for(Node n : hiddenLayer)      {         for(Connection c : n.connections)         {            c.weight -= learningRate * c.origin.value * c.destination.value * (1-c.destination.value) * n.adjustSum;         }      }   I am a high-school student new to stack exchange (and computer Science), so If I have done something wrong with this question just let me know in the comments and I'll try to fix it.


In debian the default configuration for installing recommendations in apt is set to true.  If you edit   /etc/apt/apt.conf   and add the line  apt::install-recommends "false";   recommendations are not installed by default anymore.  You can also achieve this by adding the option  apt-get install --no-install-recommends ...   Why is this default set to true?


What spell did Dolohov use on Hermione in Order of the Phoenix?

What was the spell with purple flame used by Dolohov on Hermione during the Battle at the Department of Mysteries in Order of the Phoenix? If Dolohov hadn't been silenced, would it have killed her?


Really struggling with a question on coursera robotics perception:     Find the projective transformation $A$ which will keep the points   $\boldsymbol{p}_{1}=(0,0,1)$ and $\boldsymbol{p}_{2} = (1,1,1)$ fixed and will map point $\boldsymbol{p}_{3} = (1,0,1)$ to $\boldsymbol{p}_{3}'=(1,0,0)$ and point $\boldsymbol{p}_{4} = (0,1,1)$ to $\boldsymbol{p}_{4}' = (0,1,0)$?   The answer is the matrix: \begin{bmatrix}-1&0&0\\0&-1&0\\-1&-1&1\end{bmatrix}  The idea from my lectures is to take 4 points (3 of which are not collinear) and use that to solve the  equation:  $$\alpha \boldsymbol{a} + \beta \boldsymbol{b} + \gamma \boldsymbol{c} = \boldsymbol{d}$$  where $\boldsymbol{a}, \boldsymbol{b}, \boldsymbol{c}$ and $\boldsymbol{d}$ are the vector coordinates of 4 points.   If I pick $\boldsymbol{p}_{1}'$, $\boldsymbol{p}_{3}'$, $\boldsymbol{p}_{4}'$ and $\boldsymbol{p}_{2}'$  as $\boldsymbol{a}, \boldsymbol{b}, \boldsymbol{c}$ and $\boldsymbol{d}$ respectively I get the incorrect matrix. As far as I can see the point $\boldsymbol{p}_{1}'$, $\boldsymbol{p}_{3}'$, and $\boldsymbol{p}_{4}'$ are not collinear.  The actual solution uses $\boldsymbol{p}_{1}$, $\boldsymbol{p}_{3}$, $\boldsymbol{p}_{4}$ and $\boldsymbol{p}_{2}$  as $\boldsymbol{a}, \boldsymbol{b}, \boldsymbol{c}$ and $\boldsymbol{d}$ respectively and calculates the matrix the other way round.   Essentially gets the matrix that maps from $\boldsymbol{p}'$ to $\boldsymbol{p}$ and then inverts it.  I have no idea why that works (Gives a better estimate to exact)  Completely confused as to how one choses the correspondence points.  The answer here gives an estimate that is way off:


Is there a faster way to restart macOS Sierra into the bootcamp partition?

When I'm in windows under bootcamp all I need to do to restart into macOS is   Right click the bootcamp icon in the task bar Select "reboot into macOS"   When I'm in macOS and I want to switch to windows I need to   Click the apple in the upper left Select "System Preferences" Select "Startup Disk" Click the lock  Enter administrator password Select "BOOTCAMP Windows" Click "Restart..."   Am I missing some obvious shortcut to reboot into windows, or is this really the best that Apple can do to support restarting into bootcamp?  If apple doesn't provide an easier way is there an app, script, or something that I can use to make the process of switching from macOS into windows a two click operation?  Note about duplicate:  Please be aware that this is an ongoing issue with macOS, and that over the years Apple has changed things so solutions that worked in the past no longer work now.  The duplicate question  does have one answer that may work for macOS Sierra, but it's buried, the selected and most other answers do NOT work on this version of macOS.  I've edited the question title to clarify which version of macOS this question targets, and I expect we will need to have a question for each version of macOS so people can find the answer for their particular system, rather than digging through a long question and trying several "solutions" until the real solution for their setup is found.   - macOS Sierra 10.12.6 & Windows 7 Pro 64bit bootcamp on MacBook Pro (17-inch, Early 2011)


How do I install Ubuntu Server (step-by-step)?

I'd like to install Ubuntu server on my machine, is there a step-by-step instructions on how to accomplish that or a guide that will just go through the basic steps of installing Ubuntu Server from beginning to end.  Instructions originally for 13.04.


Can't 'apt-get install' because of 'unmet dependencies'

I am trying to install picocom on my Ubuntu 16.04, using command  sudo apt-get install picocom. That's, what I received:  Reading package lists... Done Building dependency tree   Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: python3.6-tk-dbg : Depends: python3.6-tk (= 3.6.8-1+xenial1) E: Unmet dependencies. Try 'apt-get -f install' with no packages  (or specify a solution).   I've tried sudo apt-get -f install, then received:  Reading package lists... Done Building dependency tree   Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   python3.6-tk Suggested packages: tix The following NEW packages will be installed: python3.6-tk 0 upgraded, 1 newly installed, 0 to remove and 226 not upgraded. 1 not fully installed or removed. Need to get 0 B/74,8 kB of archives. After this operation, 165 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 463507 files and directories currently installed.) Preparing to unpack .../python3.6-tk_3.6.8-1+xenial1_amd64.deb ... Unpacking python3.6-tk:amd64 (3.6.8-1+xenial1) ... dpkg: error processing archive /var/cache/apt/archives/python3.6- tk_3.6.8-1+xenial1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib-dynload/_tkinter.cpython-36m- x86_64-linux-gnu.so', which is also in package python3-tk:amd64 3.6.5-3~16.04.york4 Errors were encountered while processing: /var/cache/apt/archives/python3.6-tk_3.6.8-1+xenial1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried also sudo apt-get clean, sudo apt-get autoclean, apt-get update but it also didn't help. I'm afraid of doing something blindly, to not accidentally break something. Can someone help me somehow? Thank you for your response


Facebook connect vs existing account - How to link those two?

Since we have introduced FB connect to our web page, we have noticed that users became confused a lot and a significant number of users began to have multiple accounts.  After they log in somehow (via FB or casual mail login) we used to show a page that asks them to connect their accounts. It is easy when they logged in via e-mail. We simply ask them to connect with FB.  I am quite confused how to handle those logged in with FB and have an existing (e-mail) account.  Do you have any suggestions or comments?


Is the /tools/post-feedback page removed?

It's mentioned in  that the /tools/post-feedback page is removed for 10k users.  And it doesn't show up in Links:    However, the page seems to be still up and running when navigated there manually.