Ubuntu 16.04 LTS Software Updater not responding!
Cannot set LC_CTYPE to default locale: No such file or directory
A post here on DBA.StackExchange () has spawned an interesting question (at least, interesting to me) regarding performance in MySQL.  The context is that we want to insert a record in a table for each row that is updated.  Before the row is updated, we want to store off a previous value and then increment one of the columns (a "version" column).  If we do this inside a trigger, it works out nicely.  For MySQL, the triggers are , so it would be an easy solution.  Select the data currently in the table, insert it into the logging table, and the update the "version" column in the new data.  However, it's possible to move this logic to a stored procedure. If you do that, you're performing the insert, then incrementing the "version" column in the table.  The entire thing would be set based.   So, when it comes to performing this insert, would this be more performant to use the set-based stored procedure approach or a trigger based approach?  This question is for MySQL (since it has row-by-row triggers), although it could apply to other row-by-row trigger DBMSs. The question asks it all really. When referring to a master's degree, do you use an apostrophe or not? That is, is it "a master's" or "a masters"? Edges on an even number of Hamilton cycles Ability to give away iOS application, usually for sale I am wondering if it's possible to do "mass giveaways" on the AppStore, without lowering, changing or otherwise changing the listed application.  Is it possible to distribute hundreds to, potentially, thousands of promo codes, legally, while still leaving the "normal" distribution channel of purchasing the app open?  An example of the above would be selling physical items in a store which have a bundled digital component available. Essentially you buy a product in a store, which comes "bundles with a free app" (BB and Android have already been dealt with, iOS is unclear). It would be nice to give the option to have a promo code in the box, that the user can then use to get the application for free. Is this possible? How to calulate mosfet response time with load? I would like to calculate the response time of a PMOS circuit and of the circuit  Could you tell me how to do it?    I'm using this transitor.   I tried to use the rise time of the PMOS to find it can switch (and i don't know if that's the good way), but I don't now the results with the load. CL en RL. I assume CL at t=0ms is equal to 0V. I tried to use dv/dt, but I failed VIN1 = 28V. VCMD is a command  Thanks.  edit: I made a mistake. The Zener is also connected to the source. Sorry SOQL result ordering in the absence of an Order By clause In the absence of an  in a SOQL query, what order will Salesforce return results in?  Clearly if ordering is important then Order By should be specified, but I recently encountered a question about what the order would be if it was undefined.  My initial thoughts were Salesforce would return them in whatever order suited them. Much like .  For simple queries this would typically line up with the creation date descending and the Id ascending. For more complex queries it would depend on the joins being performed. How to return to original .pdf presentation after open a .pdf linked file? I'm preparing a beamer presentation and I'm using hyperlinks for the first time; When I do something like:  \href{name_file_to_open.pdf}{here I put a link to a figure which is working well}   It works just fine and open the .pdf document; Problem is I can't return to my presentation, cause when I close the linked.pdf I close it all. (I try this with movie and indicating an area to the file open like \href[width=3cm,height=2cm] but then it doesn't work)  Can anyone please has any suggestion to this problem? Overriding public virtual functions with private functions in C++ What is the difference in this specific breadboard wiring? What is a magic number, and why is it bad? Does the new guidance on duplicate questions suggest closing a question as duplicate, if the original answers the OP's question? In other words, should we now look at the content of the answers when we are evaluating questions for possible duplication?  Is it sufficient to say "Your answer can be found in this question over here, therefore your question is a duplicate?"  The new guidance is here:    Among other things, it describes the new close banner:     This question already has an answer here:   Link to the Duplicate Question   ... which seems to suggest that, if some other question in the system answers the OP's question, then the OP's question can be closed as a duplicate on that basis (even if the question itself is not necessarily duplicated).  Example Here:    Note the comments below the question, where I dispute the assertion made there that it is a duplicate question.  The original question doesn't mention unit testing. I'm curious why PCBs have one square pad in row for 0.1" headers. What is purpose of putting one square pad? What it indicates? Can you push more amps through square pad than round? $\LaTeX$ and Mathematica When wouldn't I use LASSO for model selection? Terminal : needs full path to execute a command Let's suppose i have an application in /Applications/MacPorts/KDE4/myapp.app/Contents/MacOS/myapp.  When i use cd to reach the directory 'MacOS' and then issue the command myapp it says command not found.  But when i issue the command with the full path like /Applications/MacPorts/KDE4/myapp.app/Contents/MacOS/myapp it works.  I had the same problem with mysql inside xampp.  Why is that? (no) Properties in Java? This is a  about File Permissions on a Linux web server.   I have a Linux web server running Apache2 that hosts several websites. Each website has its own folder in /var/www/.  /var/www/contoso.com/ /var/www/contoso.net/ /var/www/fabrikam.com/   The base directory /var/www/ is owned by root:root. Apache is running as www-data:www-data. The Fabrikam website is maintained by two developers, Alice and Bob. Both Contoso websites are maintained by one developer, Eve. All websites allow users to upload images. If a website is compromised, the impact should be as limited as possible.  I want to know the best way to set up permissions so that Apache can serve the content, the website is secure from attacks, and the developers can still make changes. One of the websites is structured like this:  /var/www/fabrikam.com     /cache     /modules     /styles     /uploads     /index.php   How should the permissions be set on these directories and files? I read somewhere that you should never use 777 permissions on a website, but I don't understand what problems that could cause. During busy periods, the website automatically caches some pages and stores the results in the cache folder. All of the content submitted by website visitors is saved to the uploads folder. Using the itemize environment inside a caption What does the term "BODMAS" mean? What is BODMAS and why is it useful in programming? network connection over thunderbolt bridge between linux and mac