I have some issues with the bibliography, it was working on my document, until one day it disappeared actually I had a problem with the numbering the mentionning was not in the right order, I wanted to fix this and I end up with nothing xD. So this is how I do I begin with these lines \usepackage[backend=biber,maxnames=12,style=numeric,sorting=ydnt,defernumbers=true]{biblatex} \addbibresource{lib.bib}  of course lib.bib is in the same folder and to print the bib I simply use \printbibliography.

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


Note: despite the linked duplicate not being a duplicate (it explicitly asks about casting to int and float separately) I still mark it as duplicate because it contains wonderful information about the subject (and an answer similar to my solution) Summary: I am looking for a pythonic way to convert a string into a number (an integer or a float). I currently use a waterfall function but while it works, it is not particularly aesthetically pleasant: def convert_to_int_or_float(a):     # maybe an integer     try:         return int(a)     except ValueError:         # nope - so can be a float or a str         try:             return float(a)         except ValueError:             # must be a str             return a  for s in ["0", "12", "-13", "14.7", "-14.7", "hello"]:     print(s, type(convert_to_int_or_float(s)))  # outputs  # 0 <class 'int'> # 12 <class 'int'> # -13 <class 'int'> # 14.7 <class 'float'> # -14.7 <class 'float'> # hello <class 'str'>  Is there a better way to do that? (ideally though a module) I had  look at math but did not find anything there.

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to an integer, 31?  I just want to know how to parse a float str to a float, and (separately) an int str to an int.


I hope your answer for this question will help me understand a lot of things. Thank you guys.

$dx$ appears in differential equations, such us derivatives and integrals.  For example, a function $f(x)$ its first derivative is $\dfrac{d}{dx}f(x)$ and its integral $\displaystyle\int f(x)dx$. But I don't really understand what $dx$ is.


Is there any rule to understand when a shot is an "unforced error" or a "winner" in a objective meaning?

The tennis statistics at the end of a set always show the number of winners and unforced errors of the players. But when does a point count as a winner and when as unforced error?


Is there a mathematical way to know the answer? (or you can do it only by trial and error). Could you prove that it is possible or impossible mathematically?

In the 70's I had a stack of old Amateur Radio magazines (50s-60s), and for a long time I saved an article about using the  to combine a number of resistors to achieve a specific value. Does anyone recall and have a copy of this article, or know how the Euclidean algorithm is applied to solve this problem?


I want to use a particle system to fill a container. The particles are solid objects and not liquid. I just want a container to look like it was filled naturally, and not like a grid. It would be quicker to set up a particle system to do this than to manipulate tons of separate meshes individually. I'm not sure if this can be done in blender, but any help with this would be nice. I also need this to work with the cycles rendering engine.

I am trying to create a natural arrangement of rubber thimbles in a jar.  What is the easiest method of doing this?   I've tried various settings with the jar being passive and using the various collision types like box, cylinder and mesh but none seem to work.   I tried dropping the thimbles into the jar but they either stop early and spill over or go through the jar! Is it better to use some sort of particle distribution? Thanks.


On Chrome's and Node's console, I assigned the property of an object to have the value of undefined.  const foo = {   bar: undefined };   When I evaluate foo again, I expected it to give me an empty object ({}), but it returns with:  {   bar: undefined }   Are there any differences between { bar: undefined } and {}?  The reason I am asking is that this difference is failing my tests - I am expecting the result to be {}, but it's failing because the actual response is { bar: undefined }.  If it was { bar: null } I'd understand, since null is an actual value. But my understanding is that undefined means the property is undefined and thus not even a value.

Say I create an object as follows: let myObject = {   "ircEvent": "PRIVMSG",   "method": "newURI",   "regex": "^http://.*" };  How should I remove the property regex to end up with new myObject as follows? let myObject = {   "ircEvent": "PRIVMSG",   "method": "newURI" };


The complex valued function $f(z) = z^n$ has an analytic antiderivative on $\mathbb{C} \setminus \{0 \}$ for every $n$ except for $n=-1$. What is so special about $-1$?   To show why this is such an anomaly, imagine if $z^n$ had an analytic antiderivative on $\mathbb{C} \setminus \{0 \}$ for every $n$ except for $n=3456$. People would demand to know what is so special about $3456$. However, it seems like no one feels the need to explain the anomaly at $n = -1$. What is going on at $-1$?

Let $\Omega \subseteq \mathbb{C}$ be open and $\gamma:[\alpha,\beta]\rightarrow \Omega$ be a piecewise continuously differentiable and closed path. Why does $z^{-1}$ have no antiderivative on $\mathbb{C}\setminus0$? Why is $\int\limits_\gamma z^{-1} dz = 2\pi i \cdot \text{ind}_\gamma (0)$, where $\text{ind}_\gamma$ denotes the winding number.


I have dictionary_type and dictionary_value tables. Value is connected with type. I would like to create sequence which will set the id of values according to type id.   Expected dictionary_type:   id       type      ----     ----  1        type1        2        type2              Expected dictionary_value:   id       type_id     value -------  -------  ------- 100      1         value1 200      2         value2 101      1         value3 102      1         value4 201      2         value5   So baiscly I would like to make it like: nextval(sequence(type_id * 100)). How can I do it in postgresql?  Have a nice day!


Trying to run Ubuntu using Virtualbox, but get the following error:     Failed to start the virtual machine UBUNTU2.      Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).      VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).      Result Code: E_FAIL (0x80004005)   Component: ConsoleWrap   Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}   What is the cause of this and how do I fix it?

So I am trying to run Ubuntu in a virtualbox but on installing 12.10 from the .iso I was greeted by a warning telling me that audio wouldn't work then I pressed next and this popped up:  Failed to open a session for the virtual machine Tux 3 VT-x features locked or unavailable in MSR (VERR_VMX_MSR_LOCKED_OR_DISABLED) Details  Result Code:  E_FAIL (0x80004005) Component:  Console Interface:  IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}   And then it doesn't work.  I assigned 4GB of my 8GB to Ubuntu, 100 dynamically allocated GB of space, and 12MB of graphics memory. I'm running an Asus p8z77 V LX mobo with an Intel i5 3550 processor.   Downloaded 12.04.2 on my PC and tried again. Still getting the same message.


When I connect to my company VPN, I cannot browse internet normally i.e. even open google.com  So I need to turn on and off that VPN connection very often and currently I have to go to the connection page and toggle it.  What is the fastest way to do this? I hope to have a toggle button or shortcut so that I can toggle VPN connection - similar feature for using proxy server is

How can I change my VPN connection settings in Windows 7 from the command line?  I know how to do it using the GUI but I really need to do it from the console.  I need to change the user, password and internet address and then restart the connection. It doesn't matter if I have to install some third-party software in order to do this (from the command line).


After installing all updates on Ubuntu 20.04 LTS, I got this issue on monitoring. One of the systemd services is still failing, and I can't disable it. ● netplan-ovs-cleanup.service - OpenVSwitch configuration for cleanup  Loaded: loaded (/run/systemd/system/netplan-ovs-cleanup.service; enabled-runtime; vendor preset: enabled)  Active: inactive (dead)  Condition: start condition failed at Fri 2021-02-12 09:03:23 CET; 2h 22min ago          └─ ConditionFileIsExecutable=/usr/bin/ovs-vsctl was not met  Feb 12 08:54:55 hostname systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped. Feb 12 09:03:23 hostname systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.  I was looking for some .deb packages to uninstall, but dpkg doesn't have any.

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them.  The first method I found is update-rc.d to add new services to startup, which aims on the /etc/init.d folder and its contents.  The other one I found is to edit .conf files in the /etc/init folder.  What's the recommended way to enable / disable / add services and why?  Could you please give a short bulletproof step by step example on how to add a service in Ubuntu and enable and disable it?


One number is removed from a set of integers from 1 to n,the average of the remaining numbers is $\large{\frac{163}{4}}$. Which number was removed? I tried to find the mean of $$\frac{1+2+....+n-1}{n-1}=\frac{163}{4}$$ but I can`t find the value from there.

A number is removed from the set of integers from $1$ to $n$. Now, the average of remaining numbers turns out to be $40.75$. Which integer was removed?  By some brute force, I got $61$. I want to know if there's any analytic approach?


I use QGIS 2.14. I have one layer for the points and one layer with many polygons. I'm having trouble finding the polygons that overlapped with the points. Is there a way to do this? I'm not asking for how many points are within the polygon, but the vice versa. How many polygons overlapped a certain point. Hopefully, I could have an attribute table with the points that has the overlapping corresponding polygon/s.  Here's a screenshot of what I'm working on.

I'm using QGIS 1.8 with a PostGIS database and I have three PostGIS-layers in QGIS a lines layer, a points layer and a polygon layer.  What I'm trying to do is to select a polygon in the polygon layer and mark all points within this polygon.   For me the only way to do this is to use the button "Select by Polygon" but in this way, I cannot use an existing polygon for selection.


I have this array:   Integer[] originalItems = itemsArray.stream()             .distinct()             .sorted()             .toArray(Integer[]::new);   I would like to return it as int[] rather than as Integer[].  I have tried to call .toArray(int[]::new) but I get this error:     no instance(s) of type variable(s) A exist so that int[] conforms to A[]

If you have an array of Java objects which have a primitive type (for example Byte, Integer, Char, etc).  Is there a neat way I can convert it into an array of the primitive type?  In particular can this be done without having to create a new array and loop through the contents.  So for example, given  Integer[] array   what is the neatest way to convert this into  int[] intArray   Unfortunately, this is something we have to do quite frequently when interfacing between Hibernate and some third party libraries over which we have no control.  It seems this would be a quite common operation so I would be surprised if there's no shortcut.  Thanks for your help!


Is there a way to avoid iterating through a query in sqlalchemy to do a simple update? As is seems this method is over processing for something that the DB should handle.  E.g. could this be avoided?  items = db_session.query(Item).filter_by(category_id=category.id).all() for item in items:     item.category_id = new_category_id     db_session.add(item) db_session.commit()   I'm looking for something like:  items = db_session.query(Item).filter_by(category_id=category.id).all() items.update(category_id=new_category_id) db_session.commit()   Thanks for any help on this.

I'm starting a new application and looking at using an ORM -- in particular, SQLAlchemy.  Say I've got a column 'foo' in my database and I want to increment it.  In straight sqlite, this is easy:  db = sqlite3.connect('mydata.sqlitedb') cur = db.cursor() cur.execute('update table stuff set foo = foo + 1')   I figured out the SQLAlchemy SQL-builder equivalent:  engine = sqlalchemy.create_engine('sqlite:///mydata.sqlitedb') md = sqlalchemy.MetaData(engine) table = sqlalchemy.Table('stuff', md, autoload=True) upd = table.update(values={table.c.foo:table.c.foo+1}) engine.execute(upd)   This is slightly slower, but there's not much in it.  Here's my best guess for a SQLAlchemy ORM approach:  # snip definition of Stuff class made using declarative_base # snip creation of session object for c in session.query(Stuff):     c.foo = c.foo + 1 session.flush() session.commit()   This does the right thing, but it takes just under fifty times as long as the other two approaches.  I presume that's because it has to bring all the data into memory before it can work with it.  Is there any way to generate the efficient SQL using SQLAlchemy's ORM?  Or using any other python ORM?  Or should I just go back to writing the SQL by hand?


I am 28, single (with no lady in sight), and I earn a high salary in a tech job.  After moving to a new job, I have a 401k account from my previous employer (through Principal, employed for 2yrs) sitting on ~$30k that I have not rolled over into my new 401k account (through Fidelity).  Which strategy makes more sense:  A: Rollover the cash from the previous account into the new one  I have no 'retirement' plans because I enjoy working and have plans to start a company, and essentially will be happy working until I die :)  I am maxing out my contributions to my current plan, and I already have a decent amount in there as well. I don't see this option favorably because I believe I can make better use of this money now, seeing as I am in a very good spot in my career.  B: Pull the money out and apply it towards my mortgage  I understand that pulling money from a 401k will reduce the quantity I receive, but as far as I see it this is not such a bad deal because it is like paying taxes on income. (Principal says I will lose up to 30%)  My mortgage:    1 year old 3.875% fixed rate Started at $405k, owe ~$380k Initial downpayment was 5% when I signed, but at the time I only had about $15-20k saved up and was faced with the decision between moving/paying high rent or trying to get my own place. As a result of being under 20%, I am paying mortgage insurance of about $300/mo.   I've read many articles/questions about paying more towards your principal, and how it will shorten the length of the loan. I am unsure if paying a big chunk at once has the same effect as paying more over time.  BONUS! C: Pull the money out and use it as capital for investment purposes  I am wise with my money for the most part and I have no credit card debt. I will research other investments if this makes financial sense.  A personal Note  I come from a poor family and I am okay living a 'simple' life. If the world were to collapse I would be able to find happiness flipping burgers. My ultimate goal and dream, however, would be to help my parents pay off their house (FHB ~4 years ago) so they could finally have a retirement. I currently send $1000/mo to my mom for this very purpose.  I know it's naïve but I sometimes imagine walking in with a suitcase full of money and a stupid smile and being able to say 'hey guys, you can stop working now' :D  anyway. That's where I'm at. Wisdom?

We are retired, I'm 62 and my husband is 58. We have $150,000 in savings, a 401K at $105,000 and another 401K of $75,000.  The home mortgage has a balance of $160,000 with 18 years left on a 20 year mortgage at 3.85%.    Should we invest in annuity or pay off the mortgage? The annuity has a 5% guaranteed with 3% fee.  I have ss 1525.00 and pension 1275.00 he has 2300.00 pension. We live in New York.  Should I use my 401. $105000 monthly or use cash saving till I reach 65. Thank You


I have a very simple layout that I am trying to achieve in CSS, but I am not having any luck.  All I want to do is (horizontally) center a div that contains a link.  The size of the div should be based on the size of its content.  I have tried a bunch of combinations of auto margins, text alignments, and display types, but can't seem to figure it out (I am a CSS noob).  I have cooked up a very simple case (and the best I can do)  HTML:
         google.com
     CSS:  .myDiv {     background:lightblue;     text-align:center;     margin-left:auto;     margin-right:auto; }  .myDiv a {      text-decoration:none; }   I have made a  as well.  Is this type of layout possible without complicated HTML/CSS /hacks?

How can I horizontally center a
 within another
 using CSS?

Foo foo


i am trying to get posts by multiple posts slugs, i can do this by passing post ids but I do not want to pass post ids i am looking for posts slug  Here is my code   $option = array( 'posts_per_page' => -1, 'post_type' => 'post', 'name' => 'berlin, frankfurt, munich, augsburg' );  $new_query = new WP_Query($option); if ($new_query->have_posts()) { while ($new_query->have_posts()) { $new_query->the_post(); /* my html stuff */ } }   but it does not display anything but when i pass only "berlin" then queyr gives me correct results. it mean i only need to use post ids to get selected multiple posts ?

I want to display the pages 'famous' and 'mschief'.  Using this code, WP_query() doesn't return any result:  $args = array( 'post_type' => 'page', 'pagename' => 'famous,mschief', 'posts_per_page' => 3 );   This code returns one of the 2 pages:  $args = array( 'post_type' => 'page', 'pagename=famous,mschief', );   And this code returns the 2 pages correctly:  $args = array( 'post_type' => 'page', 'pagename=famous,mschief', 'posts_per_page' => 3 );   Why does the first piece of code (the only correct one to me) doesn't work? And why the two others produce these results?


Is there anyway I can install the latest Unity (used in Ubuntu 13.04) in Ubuntu 12.04? I do not want to upgrade my super stable 12.04 just to get the Unity.

Is it possible to get the latest Unity without upgrading to 12.10 on my Ubuntu 12.04 PC or will this be backported?


I have a text file :  //IT IS A PRIVATE FILE // First Name : // Last Name : ///////////   I receive first name and last name from a php form which based on POST method. After that I want to write first name in front of First Name : and last name in front of Last Name : but I can't do that ! please help. by the way this script must be in php.  <form action="page2.php" method="POST"> <input type="text" name="fname"> <input type="text" name="lname"> </form>   If you want more details please ask and I will tell you.

I have:  <?php  $file=fopen(date("Y-m-d").".txt","r+") or exit("Unable to open file!");  if ($_POST["lastname"] <> "") {    fwrite($file,$_POST["lastname"]."\n"); }  fclose($file);  ?>   but it overwrites the beginning of the file.  How do I make it insert?


I am making a 2D mobile game that includes cars and weapons (like GTA let's say). I am using real car and weapons designs to make 2D images, however, I use made-up names for the both cars and the weapons. Is it still copyrighted?  For example; Traffic Racer and Traffic Rider. In the games, the car models are exactly the same as the real ones, but there is no logo nor name in Traffic Racer. In Traffic Rider, you can clearly see BMW in the game (both the design and the logo). Because of these examples, I think, my situation should be okay since the game is not even 3D.

We are small team which working on car racing game but we don't know about licensing process for branded cars like Nissan, Lamborghini, Chevrolet and etc.   Do we need to buy any licence for using real car brand names, models, logos,... or we can use them for free?  Second option we think about using not real brand with real models is it possible? If someone have experience with that, fell free to share it.  Any information about that is welcome.


I have prepared a series of queries which work.  Now I am in the process of securing these queries against injection.  I can do it fine when I have one variable in the query but have not been able to find how to do it for more with trial and error.   This is what I am doing (See $sql and $handle->execute()):  <?php    $sql = "SELECT FORMAT (z.PriceMultiplier * p.BasicTicketPrice,2)  AS totalPrice  FROM Zone z JOIN Production p  WHERE p.Title = :n AND z.Name = :n"; $handle = $conn->prepare($sql);  $zone = "$_POST[Zone]"; $prod = "$_POST[Production]"; $handle->execute(array(":n"=> $zone, $prod))     $conn = null; $res = $handle->fetchAll();      foreach($res as $row) {        echo "<input name='Price' type='text' readonly='readonly' value=£".$row['totalPrice']."><br>";                  }            ?>   How do I assign the variables $zone and $prod to the statement in handle->execute()?  Thank you in advance.  [edit1: SOLUTION: Use ? instead of :n p.Title = ? AND z.Name = ? and just do $handle->execute(array($zone, $prod))]  [edit2: I do not believe this is a duplicate - the question is not how to prevent an injection attack... it is how to deal with multiple variables in doing so.]

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


If i have resistance against a damage type and if i get a success on that damage types saving throw, does the damage halved twice? I checked the players handbooks for this but i couldn't find any spesific explanation

Let's say a player has to make a saving throw or take 20 cold damage. If they succeed on the save, they take half damage (10).  Resistance also halves damage. What happens if they have cold resistance and succeed on said saving throw? Do they take half damage (10) or quarter damage (5)?


I always define my math operators by using \DeclareMathOperator from the  package amsmath. The problem is that let say I use my operator already defined as \Op then when I write the instruction $\Op x^2$ it looks something like this:    But I want something like this:    Note: At first this doesn't look like a big deal because I can always write something like $\Op(X^2)$, but there are also times in which I'd like to simplify things like when I'm writhing something like:    In this last case I'd like to write something like $\Op a_n$ instead of the full thing $\langle a_n\rangle_{n=0}^\infty$.   Also, so sorry if there's already an answer to this, I just couldn't find it.

I'd like to have an easy way to declare an operator that brackets its argument with a particular delimiter. As an example I'd like to be able to write  \Pr{X}   to mean the same as  \operatorname{Pr}\left[X\right]   FYI I know how to do  \newcommand{\Pr}[1]{\operatorname{Pr}\left[#1\right]}   but I thought I once saw a package that provided some command like  \DeclareBracketedOperator{\Pr}{Pr}{[}{]}   sort of a combination of \DeclarePairedDelimiter and \DeclareMathOperator and I think it also defined a starred version of the operator that didn't take any argument and didn't produce the delimiters.


I am trying to use 'source ~/.bash_profile' command from a shell script. But this doesn't work. My script is like this:  test.sh  #!/bin/bash source ~/.bash_profile   I use many ways to run the script ./test.sh, bash test.sh and sh test.sh. if run with . /test.sh it is work. This is the running the script? This is the right way to run the installation script?  btw I also test by changing script with . ~/.bash_profile, bash ~/.bash_profile, sh ~/.bash_profile, bash -c '~/.bash_profile'. What is the 'source' problem in shell script. Please explain me what is the right way? How can i source .bash_profile in the script. Thank to everyone!!

I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell.  setenv FOO foo   in csh/tcsh, or  export FOO=foo   in sh/bash only set it during the script's execution.  I already know that   source myscript   will run the commands of the script rather than launching a new shell, and that can result in setting the "caller's" environment.  But here's the rub:  I want this script to be callable from either bash or csh.  In other words, I want users of either shell to be able to run my script and have their shell's environment changed.  So 'source' won't work for me, since a user running csh can't source a bash script, and a user running bash can't source a csh script.  Is there any reasonable solution that doesn't involve having to write and maintain TWO versions on the script?


I'm using macOS High Sierra. It has a feature to automatically clear items in Trash after they are deleted for 30 days. But I want to clear items in a week. Is it possible?

I am using a Mac. How can I use a command to delete all files in ~/Downloads whose dates added are greater than 1 year?


I'm a bit confused over the difference between hashing and encryption. Could someone help explain this to me in simple and concise, yet comprehensive layman's terms?   I'm not asking for any specifics in how they work, but rather how the essential concept of each work in layman's terms

There is a lot of confusion between hash- and encryption algorithms; I would like to understand:   When do we use a hash algorithm and when do we use an encryption algorithm (a cipher)? How difficult it is to reverse hash- and encryption algorithms? From the theoretical/mathematical perspective, what differentiates a hash- and encryption algorithm?


div1 is in the centre of screen and I want div2 in the centre of div1

   css:   #div1{       top:0;      left:0;      right:0;      bottom:0;      margin:auto;      position:fixed;      width:595px;      height:842px;      background-color:#F0F0F0;  }  #div2{  }

How can I horizontally center a
 within another
 using CSS?

Foo foo


I am trying to automate a few things for Salesforce using Python. I am using OAuth for Rest API for other processes like creating or updating records. I need to figure out how to create Apex Trigger/Classes through API calls. I have tried the below API and it works for development instance. https://[instance].salesforce.com/services/data/v51.0/sobjects/ApexTrigger But I see this message in the .  Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to create or update them using the API. Instead, use the Ant Migration Tool, the Salesforce user interface, or the Salesforce Extensions for Visual Studio Code to create or update Apex classes or triggers.  Is this warning applicable to the Production environment? If so, then what method we can use which will work for both development & production using Python? PS: I tried looking up Metadata API but it looks like Force WSC which is required for it is only available for Java.   To run the samples, first download the latest force-wsc JAR file and its dependencies from mvnrepository.com/artifact/com.force.api/force-wsc/.  Edit:  This question does not answer whether this will work in production instance or not.  suggests that it will not.

How do I use the Tooling API to create a new Apex Trigger (rather than update an existing one)?  According to the  I need to specify the ContentEntityId as an existing Trigger Id. But in my case I don't have an Id because I've trying to create a new sObject.  If I omit the ContentEntityId I get an error back in the SaveResult:     Status Code: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY   Message: "insufficient access rights on cross-reference id"   The following is more or less a test case in C# that attempts to use the SOAP tooling API to create the new trigger.  SforceService toolingService = //... Get instance of the Tooling API  MetadataContainer container = new MetadataContainer(); container.Name = "Test" + DateTime.Now.Ticks;  SaveResult[] saveResult = toolingService.create(new sObject[] { container }); string metaDataContainerId = saveResult[0].id;  ApexTriggerMember apexTriggerMember = new ApexTriggerMember(); apexTriggerMember.MetadataContainerId = metaDataContainerId; apexTriggerMember.Body = "trigger TestOpportunityBeforeUpdate on Opportunity (before update) {\n//Horray\n}";     // Adding this will successfuly update the existing trigger //apexTriggerMember.ContentEntityId = "01q70000000GuzP";  SaveResult[] triggerSaveResults = toolingService.create(new sObject[] { apexTriggerMember }); Assert.AreEqual(1, triggerSaveResults.Length); SaveResult triggerSaveResult = triggerSaveResults[0]; if (!triggerSaveResult.success) {     Assert.Fail(triggerSaveResult.errors[0].message); } Assert.IsTrue(triggerSaveResult.success);  ContainerAsyncRequest containerRequest = new ContainerAsyncRequest(); containerRequest.MetadataContainerId = metaDataContainerId; containerRequest.IsCheckOnly = false;  SaveResult[] containerResults = toolingService.create(new sObject[] { containerRequest });


I was given this formular, and am now tasked to use double counting to prove it:  $\sum_{k=1}^{n} k \binom{n}{k} = n \cdot 2^{n-1}$  Quite frankly, I have no clue on how to work this out. Of course, you could start out by looking at the numbers this produces:  n     result 1     1 2     4 3     12 4     32 5     80 6     192 7     448 8     1024 9     2304 10    5120   As far as I've understood double counting, there's two ways you can use it.   The first way is to imagine a matrix where you either put a tick into a field, or you leave it empty. Then counting the ticks in the rows and the columns individually must lead to the same result. Unfortunately, I see no way to apply this concept to this particular task.  The second way is to look for an intuitional problem that can be solved by either of the two ways shown in the equation. Again, I fail to come up with anything that makes sense; especially with the fact, that the sum in the left term makes everything even more complicated.  Do you have any ideas on how to solve this problem?

Can someone explain how combinatorial proofs work?  I've included an example questions that's been giving me a hard time.  Any insight on the topic would be great.  $$\sum_{k=1}^{n}k{n \choose k} = n2^{n-1}$$  Another one:  $${2n \choose 2} = 2{n \choose 2} + n^2$$  The solution says:  LHS: Pick two people from a pool of n men and n women. RHS: Pick two women, pick two men, and pick one of each.  But I don't see how this applies.  How does $n^2$ show that we're picking "one of each?"  Thanks for the help :)


I installed Ubuntu and it isn't working properly. I have tried everything to fix the issues such as not playing dvds or running windows software through Playonlinux. I tried to reinstall windows from a windows disk and it keeps giving me an error that I don't have enough space on my hard drive to install. I have tried booting from the disk as well with no success. I really just want to reinstall Windows so I can have piece of mind that my laptop will run properly. If anyone out there can help me it would be much appreciated.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I have a C# program called data-1 that I run on Mac OS  Where I run this I use:  > dotnet data-1.dll   How can I change the main so that I can enter something like  > dotnet data-1.dll 10, 20   and pass into the code the numbers 10 and 20?  static void Main(string[] args) {

When building console applications that take parameters, you can use the arguments passed to Main(string[] args).   In the past I've simply indexed/looped that array and done a few regular expressions to extract the values. However, when the commands get more complicated, the parsing can get pretty ugly.    So I'm interested in:   Libraries that you use Patterns that you use   Assume the commands always adhere to common standards such as .


From a purely mathematical point of view, as far as I'm aware, there is no difference between rotating a singular point by a phase phi, using its own location as the centre, or rotating all but the point around this particular point with phase -phi.   Yet in physics, this is not the case. Although particles are rotationally symmetric, they are very "aware" which particle is rotating and which one is not. If there were to be 2 particles, one rotating around the other particle which is stationary, changing the point of view will also switch the observation. Similarly, one could be spinning around its own point as mentioned before and the other one would be stationary, yet the observation still holds (from the right point of perspective). one could perhaps argue that there will be a force applied to only 1 particle, the one which is being rotated but can you observe that? Or am I just making a paradox for myself which by having insufficient perspective on the matter?   I'd love to hear your thoughts on the matter!   PS: I wonder if you can actually mathematically rotate a point, but since vector-fields are a thing (although in this instance discontinues), I see no big problems, although scepticism would be appropriate when dealing with 3-dimensional Dirac-delta like behaviour.

I am constructing a thought experiment about a spinning object that is floating in intergalactic space.  I assume that this object is about the size of a planet so that it will have enough gravity so that a Foucault pendulum will work, although I'm not sure that this is necessary for the thought experiment.    I can easily determine that this object is spinning if I stand on the object and observe the galaxies around me rise and set.  Similarly, I can determine the axis of rotation.    For simplicity, I go to one of the poles of my object, and I set up my Foucault pendulum.  What will I see?  And why will I see it?  I assume that in intergalactic space, the gravity is very small (galaxies are very far away, and the mass of my object is very small compared to the mass of a galaxy) so that there will be little coupling between the gravitational field of my object and the gravitational field of the galaxies around me.


I've just passed the threshold for being able to vote to close on another SE site. Some of the questions I flagged prior to having this privilege are still in the review queue because not enough votes have been cast to close them yet (it's a much smaller site than SO).  It seems that once you have the close vote privilege, . However, it's not clear whether this is retroactive and applies to the still-open flags I raised before getting this privilege.  When I go to the close vote review queue, these questions are still visible in the queue. Then when I click on "close" to agree with the close vote it says "You already flagged this question for closure". Searching on meta reveals that this (IMO very confusing) wording is because once you have privileges .   However, it's still not clear whether the old flags are converted to close votes. This is quite confusing.  So here's my suggestion.    If the flag that I cast when I did not have privileges to vote to close has not been retroactively converted to a close vote (which seems more likely) then I should be allowed to cast a close vote. If my previous flag does now count as a vote, I think this should be worded more clearly: You already voted to close this question (as opposed to You already flagged this question for closure) and/or make it not appear in my close vote queue to begin with (since I've already voted and it won't let me vote again).

Back in April, I flagged a post as "not a real question".  The post was subsequently closed and reopened, then closed again and finally just reopened a 2nd time a short time ago.  I still firmly believe the post is not acceptable for SO, so I went to use my recently acquired close vote privilege and was greeted with the following messsage:    I specifically clicked close and not flag (and figuring I just clicked in error, I tried again and got the same message).  I do understand that, in the new closing system, flagging for closure is treated very much like a close vote (since it throws it to the close vote queue) except no vote is actually recorded.  My issue is why should by flag be counted as a close vote when I never actually voted to close.


Thanks for reading, i have an HP mini 110-1030LA, it had Windows XP, tottaly functional, a little slow but funtional, i decided to install kubuntu saucy (32 bits), everythings seems to be better, the speed increased sustantialy, but it couldn't detect neither wireless nor wired networks. I decided to try (not installing) ubuntu  12.04 (32 bits) on a live usb disk, but the problem prevails.

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


Is there a way to frame "which is better" and "which is the best" type questions so that they are not tagged as non-constructive, overly broad, or inviting nothing but opinion?

In questions that are asking:    "Which is better option A or option B?"  It seems that several close reasons immediately come to mind:   Primarily Opinion Based.  In many cases the choice between A and B is simply a personal preference, a "6 vs. half dozen", either approach will work just as well and answers to this type of question will be almost entirely opinion based. Too Broad.  In some cases A is better and in others B is better, to go through every possible use case would lead to too many possible answers or one answer that reads like a short text book. Off-topic, Minimal Understanding, include attempted solutions.  This is perhaps the the most important one. If the OP needs to know "Which is better", they should probably have tried both and decided which is better, based on a practical trial.   Yet another option would be to downvote and/or comment with a "Try it and find out".  So...  Are there cases when these questions are permissible?   Could we add some more specific guidance in the help center?  Or should we continue to handle these case by case and just downvote/close appropriately when they pop up?  Strongly related, but hopefully not a duplicate of:   "Which is faster" isn't the only case where these pop up.


Is $f(x)=e^x$ the only solution to $f(f'(x))=f'(f(x))$?   In particular I'm interested in the qualitative properties of the such solutions.

I am wondering whether or not there is a reasonable characterization of differentiable functions $f: \mathbb{R}\to \mathbb{R}$ such that $f'(f(x))=f(f'(x))$ for each $x\in\mathbb{R}$. (Or, if you like the composition sign, $f'\circ f=f\circ f'$).   I could only come up with trivial examples of such functions: $f(x)=0$ and $f(x)=e^{x}$.   This reminds me of a recent Putnam problem (2010), which asked whether or not there exists a strictly increasing function $f:\mathbb{R}\to\mathbb{R}$ satisfying $f'(x)=f(f(x))$. (The answer is: No).    Note: I see that a question of similar type has been asked .


Let $G=Z_n$. How can I show that the number of generators $G$ is $\varphi(n)$ whereas $\varphi$ is Euler's totient function?  I know That I need to show here a start of a solution but all my edges had diverged.

How many generators does a cyclic group of order $n$ have? I know that a cyclic group can be generated by just one element while using the operation of the group.  I am having trouble coming up with the generators of a group of order $n$.  Any help would be great!  Thanks!


The tool bar on the far right of my blender editor is gone. It is not the properties bar (toggled with n) or the tool shelf (toggled with t). What I am missing is the bar in which I can add modifiers and materials. I can't figure out how to get it back, please help.

I accidentally opened too many menus (or windows) and I want to reset them to default.  It is really annoying, and effecting my animation.  Thanks


I've just noticed that the ordering of answers on questions has changed. Apparently you can now order answers by various criteria, which is fine.  But who the hell set "Active" as the default? It should clearly be votes. If voting people doesn't make their answer bubble to the top by default, this defeats the point of voting.

For me at least,  has answers that are not sorted by score:    Is this normal?  I've tried refreshing the page a few times, but the order doesn't change...


Will Ubuntu 14.04 support WUBI? Or will another alternate Windows Installer be available? I work on a lab network with PC Devices which ETH and USB hardware has been removed, and we use a different bus technology. Wubi was the only way to install Ubuntu, so we are waiting for Wubi to be updated for the next LTS release.  We appreciate your advice and thank you for your help. -Bran

Is there any Windows installer (wubi) for Ubuntu 14.04 LTS?  When I mount the .iso file with Daemon Tools and run wubi.exe, it just asks me if I want to reboot (I think that's useful only when the .iso  is burned on CD), so is there no "real" installation?


What spell was used by      Molly Weasley   to defeat this death eater?      Bellatrix Lestrange   It must have been something very powerful because it completely incinerated them.

It seems that the only officially known way to instantly kill someone with a curse was "Avada Kedavra".   So, (spoilers):      considering that was definitely NOT what Molly Weasley used to kill Bellatrix Lestrange at the end of Battle for Hogwarts, how did she kill Bellatrix?


How does one calculate  $$\lim_{n\to\infty}e^{-n}\sum_{k=0}^{n-1}\frac{n^k}{k!}?$$ Numerically it is somewhat close to $\frac12$. But to prove that I am going around a circle! Thanks for any help.

I'm supposed to calculate: $$\lim_{n\to\infty} e^{-n} \sum_{k=0}^{n} \frac{n^k}{k!}$$ By using WolframAlpha, I might guess that the limit is $\frac{1}{2}$, which is a pretty interesting and nice result. I wonder in which ways we may approach it.


I want to allow one more tag in Filter html Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>.   I want to add <table> in this list. How can I edit this and in which hook I can modify this.  Anyone can help me?

The full html setting is only allowing certain tags to go through. How do I turn this off and allow all tags?     Full HTML   Allowed HTML tags: <a> <blockquote> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>


A circle is cut into 8 parts, each part has the angle 45 degrees from an arbitrary point. how to prove that the white area is the same as the Gray area?   I just want any hint for solving this question. how can I prove this?

Through a random point inside the circle, we draw $4$ lines with $45$ degrees between each other. Prove, that the total area of odd pieces, equals total area of even pieces.    I suppose there is a solution using integrals, but maybe there is geometric solution as well.


I am going to be traveling with pastries that will be served the next day. I will not have a good way to keep them cold. I was wondering if ham and/or bacon are okay at room temperature (for 24 hours) if they are cooked then baked inside a pastry?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


What does the sudo -i command do and in which situations would it be used. read it using the man sudo command but i'm looking for a more diluted discription to help me understand better.

I already read it from manual but I can't see difference..  su - change user ID or become superuser  sudo -s [command]   The -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified in passwd(5).  If a                    command is specified, it is passed to the shell for execution.  Otherwise, an interactive shell is executed.  sudo -i disappear description in manual


I want to make a wagon that follows a person. I have considered GPS with a differential but I don't think the resolution (10 meters at best) is adequate. IR would be confused by reflections an sunlight, as this would be an outside device. Ultrasonic would maybe work but would need to be specific to one person, not just "blob" detection. The best I have thought of so far is a transmitter (433 MHz) followed by a pair of receivers triangulating on signal strength. Any thoughts? I want to control things with a Pi or Arduino, or both.

I am trying to create a small robot toy car with the ability to follow a person around, with a range of about 50 m.  Ideally the person will be provided with a small transmitter of some kind, and the car will have a receiver which will allow it to determine the direction to the transmitter so that the car can follow the person holding it.  However,  I understand that systems such as infrared require line of sight to operate, while others like WiFi are too omnidirectional to pinpoint the transmitter direction.  Is there any recommended method or system that would meet my requirement?    Added:  Notes:  To elaborate, it is more for remote photo taking. A person would hold a remote tag and trigger a command; after which the robot would seek out the person, and position itself in the same direction to take a shot. Unfortunately GPS not not a solution as for this application is mostly for indoors. I understand RFID tags may work although i am not sure if it has sufficient directionality


Yet another question about passing parameters when compiling. I thought I had a good (for me) solution, by compiling with different jobnames and do conditional compilation on the basis of the jobname, using etoolbox and \ifdefstring; but it does not work. What's wrong with the following code? It seems that the \ifdefstring always evaluate to false.  % % Save this file as A.tex % compile it with 'latex A.tex' % compile it again with 'latex -jobname B A.tex' % you end up with A.dvi and B.dvi. % \documentclass{article} \usepackage{etoolbox}  \begin{document} The current jobname is: \jobname  \ifdefstring{\jobname}{A}{This file should be named A.dvi}% {This file should be named B.dvi}  \end{document}   EDIT: Actually I did not understand the proposed answer (and I tried it unsuccesfully): I should say I am not a TeXpert, only a LaTeX user. I would like to get an answer in terms of the usage of the package etoolbox, which, as far as I understand, is the implementation bit of such affairs whithin LaTeX3. I wrote the above bit of code using the instructions of etoolbox, which says that \ifdefstring{<command>}{<string>}{<true>}{<false>} executes true or false according to wether the command matches the string. I guessed that the problem was that \jobname is not a command in the sense of LaTeX, and I tried to define \newcommand{\Jobname}{\jobname} to "commandify" it, but it did not work. I think that, since LaTeX users which are not TeXperts browse this forum, it would be nice to have a full LaTeX solution if possible. Thank you all (and sorry for making this required edit so late, I was offline for a couple of days).

I am preparing a LaTeX beamer presentation for students. I am looking for a simple way to create two versions of my presentation.  One version for the Students, which just contains the text of the tasks they get for homework and an other one for me which also contains the solution.  So I have created a macro that is intended to check if the file name contains "student". If it does, the macro outputs nothing, and if it does not, the argument is passed:  \newcommand{\hausaufgabenLoesung}[1]{%     \IfSubStringInString{student}{\jobname}{}{#1}% }   But this does not work as intended. No matter how I name the file, the conditional always goes to the false-expression. I think the \jobname macro returns something which can not be processed by \IfSubStringInString but I have no other idea how I could approach this.  If I replace the \jobname macro in the conditional with a fixed string, it works as intended but this would render it fairly useless.  I used \jobname to avoid including the currfile-package, but with the currfile-macros I get the same behaviour. I am using texlive 2014 pdflatex on Linux and Windows.  Anyone here got a hint for that?  Here is a minimal complete example:  \documentclass[ngerman]{beamer}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel}  \usepackage{ifthen} \usepackage{substr}  \newcommand{\hausaufgabenLoesung}[1]{%     \IfSubStringInString{student}{\jobname}{}{#1}% }  \begin{document}  \begin{frame}{Title}{Subtitle}     \begin{itemize}         \item \jobname         \item Visible in both files         \hausaufgabenLoesung{\item Solution not in the student file}     \end{itemize} \end{frame}  \end{document}


I'm trying to merge to old partitions into one which will result 2.75TB. I tried using the default disk utility in Ubuntu 20.04 but can't seem to make one partition. I also tried Gparted but same result.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


How do I summon arrows from the sky in a random position but at the same time to be inside the coordinates that I want?  For example, if I use the following, will that summon an arrow in that position?  /summon Arrow x y z   I want it to be summoned in a random X, Y, Z but at the same time within a specific position of four points:  {x1,y1,z1} & {x2,y2,z2} & {x3,y3,z3} & {x4,y4,z4}   How could I do this?

I was wondering if it is possible for you to make a command block spawn hostile mobs in random places in a specified area?   I need the mobs spawned on different Y coordinates too because you need to fight your way up a tower to the top and I want the mobs to vary on each level to have specialty to each floor every time you play the mini game.


If a set is a member of itself, then it is called an Abnormal set. One such example would be: Let S be a set such that S contains all sets. Then S itself is a member of S. Is this the only example of an abnormal set? Are there other sets that are abnormal?

I am trying to understand   How can a set contain itself? Can you show example of set which is not a set of all sets and it contains itself.


If there is some continuous function in $\mathbb{R}$ that satisfies $f(x)\notin \mathbb{Q}$ for every x. Is f then a constant function? How would I show this?

Let $f\colon[0,1]\to\mathbb{R}$ be continuous such that $f(x)\in\mathbb{Q}$ for any $x\in[0,1]$. Intuitively I feel that $f$ is constant, since $\mathbb{Q}$ is dense in $\mathbb{R}$.  How can I formally write this down?


Prove $1+x$ is a unit in $R: \text{commutative ring}$ where $x$ is nilpotent  do I need to make use of a Taylor series expansion for this?  $(1+x)(1+x)^{-1} = 1 \implies (1+x)^{-1} = \displaystyle\frac{1}{1+x}$  and $x$ being nilpotent then for some positive integer n, $x^n=0$ I need to make use of this.   Or is there another way to do it?

If $ua = au$, where $u$ is a unit and $a$ is a nilpotent, show that $u+a$ is a unit.   I've been working on this problem for an hour that I tried to construct an element $x \in R$ such that $x(u+a) = 1 = (u+a)x$. After tried several elements and manipulated $ua = au$, I still couldn't find any clue. Can anybody give me a hint?


What is a function which differs when differentiated with respect to $x$ and then with $y$ to function differentiated with respect to $y$ and then $x$? Even if it differs at one particular point.

Consider a function: $$f:\mathbb R ^2\to\mathbb R $$ when does $$\dfrac {\partial f(x,t)}{\partial t\partial x}=\dfrac {\partial f(x,t)}{\partial x\partial t}$$  Thinking about it in terms of the limit definition of derivative,  and thinking about it as taking slices of surfaces and measuring the slope on the edge, seems to be giving me the feeling that answer is always.  However I have some memories of there being requirements like piecewise continuous, and smooth.   What is the full set of conditions?


I am (attempting) to make a hacking game like Hack Run or Hacknet. But only the terminal. I get this error when I try to print the variable 'currentip' at line 86 ("print("You are currently at " + currentip + ".")"):  UnboundLocalError: local variable 'currentip' referenced before assignment   This looks like a simple error but I cannot figure it out. I have assigned it. Multiple times. Maybe I am reading the order execution wrong but I can't find any info that says I am doing it wrong...  Any ideas for cleaning up and making it neater/better is also very much appreciated.  import os import random from time import sleep os.system("cls")  save = {} ips = {"1337.1337.1337.1337": "Cheater's Stash"} shells = [] storyips = ["Bitwise Test PC"] currentip = "1.1.1.1" homeip = "1.1.1.1"  def resetip():   ip1 = random.randint(1, 999)   ip2 = random.randint(1, 999)   ip3 = random.randint(1, 999)   ip4 = random.randint(1, 999)   homeip = str(ip1) + "." + str(ip2) + "." + str(ip3) + "." + str(ip4)   if homeip in ips:     resetip()   else:     ips[homeip] = "Your Computer"     currentip = homeip  def storyreset():   for x in storyips:     ip = (0, 0, 0, 0)     ip1 = random.randint(1, 999)     ip2 = random.randint(1, 999)     ip3 = random.randint(1, 999)     ip4 = random.randint(1, 999)     ip = str(ip1) + "." + str(ip2) + "." + str(ip3) + "." + str(ip4)     if ip in ips:       storyreset()     else:       ips[ip] = x  def start():   os.system("cls")   print("Python 3.5, HackSim 1.1")   print("")   print("Loading modules...")   print("")   sleep(1)   print("OS Loaded.")   sleep(0.5)   print("HELP Loaded.")   sleep(0.5)   print("FILE USE Loaded.")   sleep(1)   print("CONNECTIONS Loaded.")   sleep(0.5)   print("UTILS Loaded.")   sleep(0.5)   print("HACKS Loaded.")   print("")   sleep(1)   print("Initiating command line...")   sleep(1)   commandline()  def usecommand(c):   if c == "reboot":     print("Rebooting...")     sleep(3)     start()   elif c == "clear":     os.system("cls")   elif c == "quit":     quit()   elif c == "forkbomb":     del ips[currentip]     if homeip in ips:       currentip = "Your Computer"     else:       resetip()       currentip = "Your Computer"   elif "connect " in c:     if c[8:] in ips:       connectip = ips[c[8:]]       print("Connecting to ", connectip, " ", c[8:], "...")       currentip = connectip     else:       print("This ip does not exist.")   elif c == "connect":     print("You are currently at " + currentip + ".")     print("The syntax of this command is: connect <ip>.")   else:     print("Invalid command. Either the command does not exist or check the required syntax.")  def commandline():   while True:     command = input("> ")     usecommand(command)  storyreset() resetip() start()   Thanks!

The following code works as expected in both Python 2.5 and 3.0:  a, b, c = (1, 2, 3)  print(a, b, c)  def test():     print(a)     print(b)     print(c)    # (A)     #c+=1       # (B) test()   However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons:   Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error?   The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists.  Could someone please explain this behavior?


I have asked to replace so many SSD I don't feel like asking it again. But if the SSD is indeed broken, just one time server down will cost me $500 or something.  So, how do I make sure that the SSD is indeed broken?  Can I just reformat hard disk like in windows? The disk is mounted.  Before a loose pin make the server reboot too many times. It seems that it damaged all SSD there.  /bin/ls: cannot access cache-zch-5666-cache.txt: Input/output error /bin/ls: cannot access cache-zch-4970-cache.txt: Input/output error /bin/ls: cannot access cache-zch-4782-cache.txt: Input/output error ./   cache-zch-4782-cache.txt  cache-zch-5666-cache.txt ../  cache-zch-4970-cache.txt root@host [/home2/investgr1/public_html/hello/cache/zch]# rm * rm: cannot remove `cache-zch-4782-cache.txt': Input/output error rm: cannot remove `cache-zch-4970-cache.txt': Input/output error rm: cannot remove `cache-zch-5666-cache.txt': Input/output error root@host [/home2/investgr1/public_html/hello/cache/zch]#

Today, on my Centos server I tried to add a user but got the following error:  -bash: /usr/sbin/useradd: Input/output error   How do I fix it?


I'm trying to make a grill railing for a spiral staircase. I have it almost figured out but the top of the railing rotates all the way to horizontal as it goes down the stairs. I don't want that I want the top to stay on top.

I have attempting to make a fin tube for two days and it is killing me.  Fin tubes are pipes that have a tight spiral of flat fins sticking out all around them. The spiral wraps around the circumference of the pipe. They are used in heat reclaimers among other places.  I made a spiral using the extra shapes add-on and scales pretty tight. And then I set the scale.  I made the fin shape and set its scale. I added the curve modifier and it jumped around a bit. I set its origin point to one end face and finally got it going the right way off the beginning of the curve.  Then I added the array modifier and moved it to the top  of the stack. It all looked good for the first loop, then the fins started to tip. The outside edge aimed upward steadily as the inside edge seemed to continue to be oriented at the center base of the curve.  How can I keep the darned things at 90 degrees to the z axis? Or should I be using a particle system? I haven't learned that one yet, sigh.


I'm searching for a list of ALL python exit codes, for learning reasons, and just from interest and curiosity, but it seems I can't find any list that contains all the exit codes... Thanks I know that Zero means a successful exit. I don't have a question about a specific one... just for general knowledge I want to know some (and a list of all) the exit codes  answer: there is no such list.

I got a message saying script xyz.py returned exit code 0. What does this mean?  What do the exit codes in Python mean? How many are there? Which ones are important?


I accidently seem to have deleted my kernel (not sure how I did it) but I noticed before I rebooted the machine and have tried to reinstall it. I just want to be sure I'm ok before I do a reboot. uname --kernel-release gave (and still gives) 4.4.0-104-generic.  How I got in the situation:  I had no room on my boot folder to update so I removed the defunct image files  I can't find the exact command, but it was something like:  sudo apt-get remove linux-image-4.4.0.{6*, 7*, 8*, 9*, 101, 102, 103}   I'm not sure how, but after when I checked with   dpkg -l linux-image-\* | grep ii   the list was empty and the image 4.4.104 had been removed. I assume I must have made a typo in my previous command.  Steps to resolve  I have yet to reboot the machine, but I did   sudo apt-get install linux-image-4.4.0-104-generic sudo apt-get install linux-image-4.4.0-108-generic grub-set-default Ubuntu\,\ with\ Linux\ 4.4.0-108-generic   (sudo apt-get install linux-image-4.4.0-109-generic resulted in a 503 error (see below))  dpkg -l linux-image-\* | grep ii   Now shows   ii  linux-image-4.4.0-104-generic                         4.4.0-104.127~14.04.1                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-108-generic                         4.4.0-108.131~14.04.1                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP   If this is sufficient I will reboot, but I would like to confirm that before I do.  Further issues:  When I try   sudo apt-get upgrade   or to install linux-image-4.4.0.109-generic  I get a list of errors along the lines of   Err http://security.ubuntu.com/ubuntu/ trusty-security/main libruby1.9.1 amd64 1.9.3.484-2ubuntu1.7   503  OUT OF DISK SPACE   And nothing gets upgraded.

Hello I upgraded all packages on my Ubuntu, and kernel also. But in upgrading process kernel upgrade failed, and I must always after grub load select older kernel. It is a terminal command to reinstall latest kernel?


I'm novice in RAW processing.  I know what a RAW file actually is but what are typical steps I need to do for RAW processing and getting output JPG file manually?  Update: I want to get advices what pipeline steps are exist and in what order I should do them to do conversion into JPEG. Proposed 'duplicate' link has only common info about advantages of RAW shooting which I already know.

Having read about the benefits of shooting in RAW as opposed to JPEG (for example ), I'd like to have a go with it myself. However, I'm not really sure how to go about it.  I can turn RAW mode on in my camera (that's easy!), but what do I do with the files when I get them on to my computer? I presume I need to process them to get the RAW data into something that I can work with, but do I need a specific tool for my camera (a Finepix S5100), or will something like the GIMP do what I want? I'm also a little confused about how I then take advantage of the abilities that RAW gives me when I'm processing it on the computer — do RAW processing tools have more processing options than standard tools?


Hello this is my first time asking a question.  I am very new to Javascript and would like to know if it is possible to open a site in a new tab and then change the title of that tab.  The company I work for supports phone systems that are accessible through a web management console.  I got tired of looking up the URL, username, and password for each phone system whenever a client called so I consolidated all of it into a web page with links to the individual phone systems that open in new tabs.  That works great but the new tabs all have the same title.  I always go to the new tab and change the title to whichever client that phone system belongs to using document.title = "";, but I want to share this page with some of my co-workers and I don't want to have to teach them all how to change the title of a web page.  I would prefer to have a script that runs on the new tab after it loads that will change the title.  Is this even possible to do, and if so how?

I have a webpage that implements a set of tabs each showing different content. The tab clicks do not refresh the page but hide/unhide contents at the client side.  Now there is a requirement to change the page title according to the tab selected on the page ( for SEO reasons ). Is this possible? Can someone suggest a solution to dynamically alter the page title via javascript without reloading the page?


I am currently playing around with the Catmull-Clark part of the subdivision modifier and I'm starting to get the hang of it. However, I have one edge that does just weird things:    I want to have a smooth rounding here, but somehow the edges and vertices of this region don't seem to cooperate (other parts of the same mesh are fine).  I tried rebuilding this section from scratch and checked for hidden/inside faces or edges (didn't find anything). I joined adjacent vertices and am pretty sure there are no double vertices, edges, anything. There is a mirror modifier in front of it, but it doesn't interact with this particular region. I'm currently out of ideas and welcome input.  File (Has been cut down to the tricky part.):

I have a simple skull model, to which I applied the subdivision modifier. For the most part everything works as expected, except I keep getting these weird sharp vertices and I can't seem to figure out how to flatten them.    I'm using Blender 2.8. Is this some kind of feature I can disable/enable for particular vertices? The distance between the sharp vertices and the gray outline differ.    Any suggestions please? Thank you!  EDIT: I also tried selecting as both - vertexes and edges and then applied Edge->Clear Sharp, but nothing changed.


I'm new to bit operations and trying to experiment little bit.   let's say I have a 32 bit register which is constructed as follows:  Bit 31:12 RESERVED Bit 11    CONFIG1 Bit 10    CONFIG2 Bit 9:0   DATA   There exists already a Function to write data into the register:   #define WR_REG_32(address, value)    (*((volatile u32 *)(address)) = (value))   I would like to write the value 0x0 at Bit 10 (CONFIG2). The value should be in the format like for example:  0x00005000    So, how to know what hex value to use in order to write to Bit 10 the value 0x0 without touching the other bits?  Also, what is the easiest way to read from the 32 bit register only the values from bit 0 - 9 ?

How do you set, clear, and toggle a bit?


I'm trying to send a 2D array (int arr[5][5], initialized with numbers) to a function, the prototype of the function is:  int function(int **arr, int size, int *pi, int *pj);   so I type in main():  size=function(arr, 5, &i, &j);   (i and j are not initialized)  I'm getting an error "Access violation reading location" which tells me it can't read from the array, because it isn't pointing anywhere.  The prototype cannot be changed, how can I fix it?

In C can I pass a multidimensional array to a function as a single argument when I don't know what the dimensions of the array are going to be?  Besides, my multidimensional array may contain types other than strings.


I suddenly got this error. I was compiling just fine before, everything worked, then suddenly bibtex provides me this error? I added another entry to the library unrelated to the one which provides the error, and it's the exact same format as all my other entries(C/P'ed from google scholar). What's up with this?  I attempted to comment out the citation which gave the error. Now it just moves the error around to other lines?  Tried deleting the .aux file associated with the .tex file, no dice.   Wait, i'm provided the following error: arning--to sort, need author or key in forbes2012 Warning--empty year in forbes2012 Warning--empty journal in banea2008bootstrapping Warning--empty journal in fisher2011social (There was 1 error message) - but, these are all entered with authopr and key? Empty year quite frankly isn't true, there is year={20xx} in all of them? Why?

I have a basic tex file and a bibliography which is exported from Mendeley  However, when I want to cite in the author-year style, I get the error:   Package natbib Error: Bibliography not compatible with author-year citations. (natbib) Press <return> to continue in numerical citation style.  Any clue what's wrong?  Minimum working example:  \documentclass[letterpaper, 10pt]{article}  \usepackage[authoryear]{natbib} \usepackage{lipsum}  \begin{document}  \lipsum[1-4] \nocite{*}  \bibliographystyle{apalike} \bibliography{articles}  \end{document}    A snippet of my .bib library:  @article{shortcode, author = {Lastname, Firstname}, file = {:/path/to/file.pdf:pdf}, journal = {Journal name}, number = {xx}, pages = {x--xx}, title = {Title}, volume = {xx}, year = {xxxx}     }


Is there a way to emulate a Windows CMD in Linux. What i need is full functionality as if I use the real CMD running in Windows. I want to be able to practice tutorials about WIN CMD, using my Linux PC.  Searching the Internet didn't help a lot.  Thanks for your help :-)  Edit:  Thank you for all your answers. I really appreciated your time spending. I mostly wanted to practice WMIC commandline using my main computer running under Ubuntu. I tried most of the solutions proposed but what worked better was virtualBox ;-)

I have a setup.bat file which install some applications and i want to execute it.  This is content of .bat file :  @echo off cls Rip_7z.exe x Rip0.7z cls del Rip0.7z cls Rip_7z.exe x Rip1.7z cls del Rip1.7z   I think the Rip_7z.exe file extracts the Rip0.7z and Rip1.7z files and builds the app.   How can I do this in the Ubuntu 11.04 Terminal?


I am trying to access my Windows laptop from my Mac. I am using Filezilla and FTP/SFTP. I am not sure if Filezilla only works with remote servers. Right now I am using the username, password, public IP address, and port 22 with Filezilla, but it is failing. Should I use the private IP address since I am on the same network (i.e 192.168.1.5)?

I’m looking for the best way to transfer files from my computer to another person’s computer.  We both use Windows and I can use some external programs like TeamViewer for file transfers but I found the speed lacking. So I tried to find some other means of transferring the data. On Linux this is so simple since you have scp and ftp and all that. But on Windows, there’s no such support; at least not natively.  So I tried  (but slow speeds), then there’s  but we would need to set up a server of some sort (ssh daemon?).   doesn't work either, it just gives me the error:     local to local transfer not supported.   FTP needs an FTP server too.  What other options are there? What’s a preferred method of transferring files?  I guess I could use BitTorrent technology but I would need tracker addresses. Of course, these aren’t that hard to find but is there really an equivalent for the Linux way of transferring files using command line options or something that allows client to client transfer of data easily and fast?


I'm trying to understand the need to unpack the arguments using * when the input to zip is a 2D list.  The  state,     [zip] Returns an iterator of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables.   So, regarding the second print statement below, I expected it to be just like the ones before and after it.  I am having trouble connecting the description of zip to this result.  MWE:                                                                   x = [1, 2, 3] y = [4, 5, 6]  print zip(x, y) print zip([x, y])  # don't understand this result print zip(*[x, y])   Result:  [(1, 4), (2, 5), (3, 6)] [([1, 2, 3],), ([4, 5, 6],)] [(1, 4), (2, 5), (3, 6)]

I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item.  For example:  original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] # and I want to become... result = (['a', 'b', 'c', 'd'], [1, 2, 3, 4])   Is there a builtin function that does that?


Some goofball has been serial upvoting me for the past two days, and while I've sent out hunting parties to find the miscreant and taze him bro until he quits, I did notice an extreme oddity:  When the serial upvoting was reversed, instead of losing the 90-100 rep I was expecting to lose, I lost zero.    I know that I didn't actually lose any rep, since before "Serial upvoting reversed" I had 40,119 reputation, and now I have 40,179 reputation after having had six answers upvoted afterward.

I just noticed that I lost a bunch of points from my reputation score, and I used the "reputation" tab on my user profile page to try and track down the cause.  During my investigation, I noticed there was an unusual event of type "reversal". In the normal place of a question title, it says "voting corrected".     What does this mean, and what caused it?  Did I do something wrong? Why did I lose all of that reputation? Is the system punishing me for leaving too many good answers?  Is there any way to earn it back?


Since we have already found out , why not take a stab at how again should be enunciated?  Obviously, there are some words where both of two pronunciations are valid. Take the, for example. The word is usually pronounced /ðə/, but becomes /ði/ if it precedes a vowel or vowel sound.  What about /əˈɡɛn/ versus /əˈɡeɪn/? Is one more valid? Are both valid, but in different circumstances?

Most dictionaries provide the US pronunciation of “again” as /əˈɡɛn/ (uh-gen) with the DRESS vowel. This is the most common pronunciation in the USA. However, I think I might have also come across /əˈɡeɪn/ (uh-gain) with the FACE vowel. This sounds like the word “gain” with an “a” at the beginning. Is there a US accent where “again” is pronounced this way?


One of my questions was recently  by the SE Bot.  How does StackBot pick questions to tweet? Its not the first time one of my questions was tweeted and I'm curious what the criteria ar.

I heard that there was a twitter bot which automatically posted questions and asked for answers for specific questions on every site. How do they work? Is there an algorithm for doing this or is it purely random? I know that it doesn't tweet closed questions, but that's it.


I'm running a windows service in a server and I now I want it to restart it from a local machine by a software tool I developed by C#.  I tried using "sc" but it says "The service is not installed" and I think it is because it is actually not a windows default service but a custom one.  Could anyone help me out with how to do it?  P.S. sc also said I don't have enough privilege because the service is running under administrative privilege in the server.  Thanks in advance!

I want to write a console or Click Once WinForms app that will programmatically stop and/or start a windows service on a remote box.  Both boxes are running .NET 3.5 - what .NET API's are available to accomplish this?


I have a custom post type 'events' which has two extra fields. start_date and end_date.  Start date must be set but end date is optional. I want to show events that are upcoming (after today's date) or currently running (so today's date would be past the start_date but still before the end date)  I want to order the results by the start date. I have something like:  $args = array(      'post_type'        => 'events',     'posts_per_page'   => 100,     'meta_key'       => 'start_event',     'meta_value'     => date("Y-m-d"),     'meta_compare'   => '>=',     'meta_type'     => 'DATE',     'orderby'        => 'meta_value',     'order'          => 'ASC',      'meta_query' => array(         'relation' => 'OR',                array(                'key' => 'end_event',                'value' => date("Y-m-d"),                'compare' => '>=',                'type' => 'DATE'             ),          )     );  $the_query = new WP_Query($args);   This does not seem to take into account the meta query and only shows events with a start_date >= today and does not include events with end_date >= today if the start date has passed.  What is the best way to achieve this?

I am building a WP site with an events feature. The events page was made with custom post types.  I want to make it possible for people to search/ filter events by dates. For example, they can search for all events happening between 2nd December, 2011 and 1st March, 2012 and get results from events that have their dates between the months of December and March (ie. december, january, february and march).  I want to know the best way to go about this. Any ideas?  You can see an example of what I want to achieve by looking at the "Search events by date" feature on this page   If that won't be possible, is there any way I can get them to search for events happening between certain months, say December and February(excluding the days)?  Thanks in advance.


I have a shapefile with few points, I would like to export in separately shapefiles for each point.  I am using ArcGIS 10.1 and the split tool in ArcToolBox only works for polygons, but not for points.   Any help?

I have a feature class with over 2,000 features, and I need to make them all individual feature classes based on a field.   Is there a way to do this?


This is a more granular/specific installation requirements for a specific laptop/software.  Linux NOOB here...  Ubuntu 18.04 LTS states minimum as:   2 GHz dual core processor or better 2 GB system memory 25 GB of free hard drive space Either a DVD drive or a USB port for the installer media Internet access is helpful   I have purchased an Acer Aspire One 532h Netbook which has    Intel Atom N450 / 1.66 GHz processor 2 GB DDR2 PC2-6400 memory (I will be upgrading to) 250GB SSD (I will be upgrading to) Wireless Internet/Wired Ethernet   Hoping performance will be descent. Any thoughts? If this is "too much" for it to handle, any suggestions on best Linux? I want to install and run:   Visual Studio Code GIMP Inkscape Scribus OpenShot Synfig Darktable Natron Ardour Master PDF LibreOffice Notepad++ Chrome Firefox MonoDevelop Hearthstone

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


Related to    On  I used ```makefile and it is "working" the highlighting:     However, on , I am also using ```makefile and it is not working the highlighting:       Where is the list of language names supported by the markdown fenced code blocks? Is makefile one of them? Perhaps it is called Makefile? makemake? toktok?   The documentation on  does not say it either.

I noticed that sometimes my code gets highlighted in different colors when rendered.   What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug or request a new language? How do I use syntax highlighting? What languages are currently available on Stack Exchange?


How to prove   $$ \int_{0}^{\pi/2}\ln\left(\,x^{2} + \ln^{2}\left(\,\cos\left(\,x\,\right)\,\right) \,\right)\,{\rm d}x\ =\ \pi\ln\left(\,\ln\left(\, 2\,\right)\,\right) $$   I don't know how to answer it.  When I asked this integral to my brother, after less than half hours he said it has a nice closed-form involving $\pi$ and $\ln\left(2\right)$ but, as always, he didn't tell me the closed-form and how to obtain it ( I didn't believe him and I think he tried to mess around with me ).  I have also searched the similar question here but it looks like nothing is similar or related.  Could anyone here please help me to obtain the closed form of the integral preferably with elementary ways ( high school methods )?. Any help would be greatly appreciated. Thank you.    Edit:  He is being a little bit nice to me today, he said the closed form is $\pi\ln\ln2$ and it's numerically correct.  This is not a duplicate problem, I am looking for a proof without using complex analysis.

I encountered a strange integral with a strange result.  $$\int_0^{\frac{\pi}{2}}\log \left( x^2+\log^2(\cos x)\right)dx = \pi \log \left(\log (2) \right)$$  Believe it or not, the result agrees numerically.   How can we prove this result?   Please help me. I feel very curious to know how this can proved.


I've found Landau's book General Physics for a first course in physics (available from the Internet Archive as  ); the book is freely and legally available, but it's from 1967. Is that OK, or is this material outdated?   More generally, what's the most recommended first course in physics? Which such books (or other resources) provide the best intuition, rigour, etc.?

Every once in a while, we get a question asking for a book or other educational reference on a particular topic at a particular level. This is a meta-question that collects all those links together. If you're looking for book recommendations, this is probably the place to start.  All the questions linked below, as well as others which deal with more specialized books, can be found under the tag  (formerly ).  If you have a question to add, please edit it in. However, make sure of a few things first:   The question should be tagged  It should be of the form "What are good books to learn/study [subject] at [level]?" It shouldn't duplicate a topic and level that's already on the list   Related Meta:


I believe there is a certain word used to describe the recount or unraveling of information to solve a mystery. Typically, in murder-mystery movies, towards the end - the climax of the movie - the actor will give a monologue describing in detail, “How it was done”. What is the word used to describe that monologue. It’s very specific but I can’t think of it! Thanks

A massive cliché in action movies (especially James Bond), but is there actually a word for that moment when the evil villain reveals their deadly plot to the action hero before (usually attempting and failing at) killing them? If there is no word for this, is there a phrase for the "reason that this was done" i.e. if you asked the villain why they did it (apart from probably for personal satisfaction). In a similar (but un-deadly scenario), is there a word/phrase/motive for the reason someone might feel like they wanted to tell someone (they wouldn't see again) why they had acted in a certain way prior to the final parting (i.e. telling them about past events during their final encounter)? e.g. "I acted like that because I really liked you and what you did made me feel bad at the time, and I felt like I needed to tell you because..." (is this even a good idea haha)


everybody,  i want to "build" a new computer for myself. Blender benefits from several cores. How many does Blender support and how many do actually make sense?  Greetings  Ralf

I wanted to get a 12 core CPU (Threadripper 1920X) and I wanted to know the max amount of cores Blender can use?


This is kind of a sequel to the other post I made, 'Scoreboard/Cloning Help' and someone said maybe I could clone stuff relative to an entity's coordinates, I thought it was an amazing idea, but he didn't post any command to go with it.     If you guys could help my find how to do that, that would be awesome.

I am trying to make a map where you have to make a village from scratch, and I need help. I'm trying to make a /clone command happen relative to where a mob that's named house is, and I cant figure it out. Any help?


So the page I'm creating has a button which will add input fields as needed. It looks like  <!DOCTYPE html>        <meta charset="UTF-8">     <title>Document</title>        <input type="text" placeholder="Name">     <button id="add-name" type="button">+</button>

       Then there's some jquery to make the button add a new input field, and for any values in the input fields to be reflected in the preview div.  $(document).ready(function () {      $("#add-name").click(function () {         $(this).before("<input type='text' placeholder='Name'>");     });      $("input").keyup(function () {         $("#preview").html($(this).val());     });  }   When I add another input via the button, that input doesn't trigger the keyup event when I type into it. Why is this, and what can I do about it? Thanks!  Also, this is a heavily oversimplified example I wrote for this question. I know this doesn't look too pretty but it's simple to help me understand what's happening.

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


All danish characters (æøå etc.) are replaced by questionmarks on my page. It's a classic  Everything (host, database, table) is set to utf8_unicode_ci in phpmyadmin  Every column in the table is set to utf8_unicode_ci  My webpage file is made and saved in UTF-8, and has the php header + meta:  header('Content-type: text/html; charset=utf-8'); <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   Then I run a mysql charset test in php:  var_dump($conn->get_charset());   The result?  ["charset"]=> string(6) "latin1" ["collation"]=> string(17) "latin1_swedish_ci".. (trimmed vardump)  Why? And how can I fix this?

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


Regardless of what viewport mode I'm in, everything is completely invisible. For the record I am using Blender 2.80 and this started after a graphics driver update. I've tried reinstalling blender 2.8 and it didn't help. However, 2.9 does not have this problem. But, there is an addon that has not been updated to 2.9 that I am in need of for my current project. Edit: 2.9 no longer works either

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


Can anyone explain to me the following error and possible fixes?  I am using QGIS 2.12.3 to connect to a PostgreSQL 9.5 database.    What confuses me is that I was able to add a feature and save, but then the second feature I tried to add threw this error.  I've had this happen on previous days, only with QGIS 2.12.  When I use 2.8 I do not get this problem (but some other issues with default values arise with 2.8 so I would prefer to use 2.12)  Any clues as to what's going on?  Update for more detail: I have a postgis table of streets, and another table of signs (mostly freeway navigation signs) which are used for a navigation app.  The signs table does not have any geometry and is in the format (from_link, to_link, navigation instructions, sign_ID).  The from/to links are both ID numbers from the streets layer.  I never have any issue with adding features to the streets layer, only on the signs layer.  This is consistent for more than one layer (I have a separate table for each city) which leads me to believe there may be something weird going on with the lack of geometry?  Only constraint on the sign table is a primary key on the sign_ID  And here is the SQL used for creating the table.  You can ignore most of the fields, they are just various instructions for our navigation code:  CREATE TABLE public.austin_signs (   "Source_LinkID" bigint,   "Destination_LinkID" bigint,   "Sign_ID" bigint DEFAULT 0,   "Seq_Number" character varying(255),   "Exit_Number" character varying(255),   "Exit_LangCd" character varying(255),   "ExitNum_Tr" character varying(255),   "Alt_Ex_Num" character varying(255),   "Branch_RouteID" character varying(255),   "BrRte_Tr" character varying(255),   "Branch_RouteDir" character varying(255),   "Sign_TextType" character varying(255),   "Sign_Text" character varying(255),   "Lang_Code" character varying(255),   "SignTxt_Tr" character varying(255),   "Trans_Type" character varying(255),   "Toward_RouteID" character varying(255),   "TowRte_Tr" character varying(255),   "Straight_On" character varying(255),   id integer NOT NULL DEFAULT nextval('austin_signs_id_seq'::regclass),   CONSTRAINT austin_signs_pkey PRIMARY KEY (id) ) WITH (   OIDS=FALSE );   I am the owner of the database so I don't think it is a permissions issue

I've a polygon layer on PostGIS, and when I try to add featureS using QGIS it gets error when I save the edit.   Here is the error notification "no result buffer".     I found a similar case here : . But it doesn't give me the answer to solve it. Any ideas ?


From a Linux OS, is there a way to determine if the OS is running as a guest OS on a virtualized VMware environment as opposed to running directly on non-virtualized/bare metal/physical host?  In my case it is either VMware or not, but I am also interested the more general question of whether the OS is on physical hardware or virtualized hardware of any sort.

An interesting question.  I have logged into a Linux (most likely SuSE) host.  Is there some way that I can tell programmatically that I am a VM host or not?    Also assume that the vmtools are not installed.


I am searching for some data sets that would be suitable for regression analysis that my teacher wants for Statistical Learning lesson's homework. But as I search I only encounter with time series data.  Q: Does anybody familiar with such websites that I can download Non-time series data with enough dimensions to do regression analysis?  Any help with be appreciated.

I've been working on a new method for analyzing and parsing datasets to identify and isolate subgroups of a population without foreknowledge of any subgroup's characteristics.  While the method works well enough with artificial data samples (i.e. datasets created specifically for the purpose of identifying and segregating subsets of the population), I'd like to try testing it with live data.  What I'm looking for is a freely available (i.e. non-confidential, non-proprietary) data source.  Preferably one containing bimodal or multimodal distributions or being obviously comprised of multiple subsets that cannot be easily pulled apart via traditional means.  Where would I go to find such information?


I repost my question. I try to succeed the following table in my latex doc.  I have done the first 3 lines but i cannot do the curve arrows in the forth line.I sent you the code until now  \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usepackage{tikz,tkz-tab,amsmath} \usetikzlibrary{arrows}  \begin{document}  \newcommand{\E}{\mathrm{e}} \begin{tikzpicture} \tikzset{arrow style/.style = {blue,->,> = latex', shorten > = 6pt, shorten < = 6pt}} \tkzTabInit[espcl=2]{$x$ /1, $f'(x)$ /1.5, $f''(x)$ /2,$f(x)$/2.5}{$-\infty$, $0$ ,$1$ , $2$ , $+\infty$}% \tkzTabLine{ ,+,z,- ,d,-,z,+}% \tkzTabLine{ ,-,t ,- ,d,+,t ,+}% \tkzTabVar% { -/  ,  +/ ,-D+/  /  ,  -/  ,+/  /  }% \end{tikzpicture}  \end{document}   Anyone who can help?

I would like to make a function analysis and I'm trying to make a tabular which includes the first and second derivatives and the curve arrow which indicates the monotonicity of my function and I can't make the curve arrows which connects the monotonicity of the first derivative and the second. The best I can do is  \documentclass[11pt]{article} \usepackage{color} \usepackage{tikz} \usepackage{MnSymbol} \usepackage{tikz,tkz-tab,amsmath} \usetikzlibrary{arrows}  \begin{document}  \newcommand{\E}{\mathrm{e}} \begin{tikzpicture} \tikzset{arrow style/.style = {blue,->,> = latex', shorten > = 6pt, shorten < = 6pt}} \tkzTabInit[espcl=2]{$x$ /1, $f'(x)$ /1.5, $f''(x)$ /2,$f(x)$/2.5}{$-\infty$, $0$ ,$1$ , $2$ , $+\infty$}% \tkzTabLine{ ,+,z,- ,d,-,z,+}% \tkzTabLine{ ,-,t ,- ,d,+,t ,+}% \tkzTabVar% { -/  ,  +/ ,-D+/  /  ,  -/  ,+/  /  }% \end{tikzpicture}  \end{document}   Although I try to manage something like this    Anyone who can help me?


How should I escape special characters in bash  flyway info -url="jdbc:redshift://server_name/db_name?ssl=true&sslfactory=com.amazon.redshift.ssl.NonValidatingFactory" -password='$PROD_PASSWORD'  PROD_PASSWORD=sf45$h)jY*@hj   I want to escape the dollar sign  I tried escape \ and putting password='$PROD_PASSWORD' and also password="$PROD_PASSWORD" also %40.

I want to enter the following folder in the terminal:  Milano, Torino (Jan)-Compressed   How should I write the command cd to enter this directory?  Spaces and several other special characters like \, *, ), ( and ? cause problems when I try to use them in the command line or scripts, e.g.:    $ cd space dir bash: cd: space: No such file or directory  $ cat space file cat: space: No such file or directory cat: file: No such file or directory  $ cat ( bash: syntax error near unexpected token `newline'  $ echo content >\ > ^C  $ ls ? (  )  *  ?  \   How do I enter file or directory names that contain special characters in the terminal in general?


I'm not actually sure if "skillet" is the right word for this, but it seems close. We got this second hand, so not sure of its origin. The particular feature that I'm not sure of is the set of diagonal raised 'ribs'. Seems like they would keep the food items from the bottom surface. Is this something like what you would use a wire rack for when baking? It is 10 x 10 in. (25 x 25 cm) and 1 1/2" deep. Is this skillet intended for something specific? We're located in the USA if that makes any difference.

I expect frying pans with raised ridges are for a few purposes such as adding "grill lines" to meats and keeping food out of grease somewhat as it collects.  Why or when should I use a frying pan with raised ridges?


It's working fine from TERMINAL mode but when i change terminal mode to GUI mode in ubuntu, and enter password for user name it'l again logout, my password is correct. But always redirect to again logout.

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


Ok, so I am a n00b. Keep that in mind. My Ubuntu computer is running an Apache2 server for basic web hosting and file transfer. If I wanted to use an external hard drive for it, how would I go about it? I mean, the var, www, and html folders are stored in the computer's storage. I want to combine the storage from the internal computer and external drive for total storage for the /var/www

I have a wonderful running Maverick Meerkat install going on right now. I want to move my /home to another partition as per many suggestions.   How can I go about doing this without reinstalling the entire Ubuntu system? Can I simply create the partition with gparted and then change the mount point of /home in fstab to reflect it or is it a bit more difficult?


I am trying ti prove that rk(A+B)≤rkA + rkB, where rkA means rank of matrix A, and A is mxn, as well as B.  By the fundamental theorem of linear algebra we know that rkA≤n and rkB≤n, so that we have rkA + rkB≤2n. On the other hand we know that rk(A+B)≤n, and I was trying to use that to arrive at a contradiction by assuming the opposite of what I want to prove, but I could not get any contradiction, could you help me point in the right direction?

I have $3\times3$ matrices such that S=A+B. I know there is an inequality connecting rank of the matrices A, B and its sum S. Could you write down that here? It will be a great help for me.  Means equation  or inequality connecting rank(S), rank(A) and rank(B).