I am starting to develop a new game and i'm thinking about using some names for some features coming from other games (such as WoW and D&D). I have already read this  and i know about Beholders and Mind Flyers (before reading this question) which i'm not going to use anyway in my game (neither specific D&D rules nor those monsters) and i'm not going to use an aready existing game system as i'm developing mine (which will use some classical RPG concepts but will have its unique flavor, at least i hope so...).    What i'm interested in is to know if i can legally use names those games use for skills, statistics, classes, enemies and so on...  I'm not talking about classic names such as Wizard, Mage, Warrior but more specific names you will find almost exclusively in that game (such as Bladesinger, Charisma, Power Attack or Warbringer...which apparently is a metal band and a monster in WoW and nothing else), these features won't be an exact copy of what you can find in other games, but will inherit just the "flavor" (sometimes not even that) of that feature  for example can i make a skill called "Power Attack" which gives you more damage per attack but a lower chance to hit (which is similar to D&D's power attack, though not exactly the same since mine will have a fixed % of damage increase and lowered chance to hit)? What if this skill gives you more damage when using a weapon two-handed (which is a key feature of D&D's power attack in the 3.5 edition)?  I am aware that those are simple words and they can't be under copyright, what i'm more worried about is the flavor of a skill, statistic and so on and using a mechanic very similar to those found exclusively in other games

For a while now I've been thinking about trying my hand at creating a game similar in spirit and execution to Baldur's Gate, Icewind Dale and offshoots. I'd rather not face the full bulk of work in implementing my own RPG system - I'd like to use D&D rules.  Now, reading about the subject it seems there is something called "The License" which allows a company to brand a game as D&D. This license seems to be exclusive, and let's just say I don't have the money to buy it :p.  Is it still legal for me to implement and release such a game? Commercially or open-source? I'm not sure exactly which edition would fit the best, but since Baldur's Gate is based of 2nd edition, could I go ahead an implement that?  in short: what are the issues concerning licensing and publishing when it comes to D&D?  Also: Didn't see any similar question...


I remember that when Loom, Indiana Jones and the Fate of Atlantis, Indiana Jones and the Last Crusade and The Dig were re-released on Steam it was possible to play the games through ScummVM.  Is it possible to play the Day of the Tentacle Remastered Edition through ScummVM too?  I have tried  but it doesn't work:  When using  to extract the files (use the tool to go into classic/en) I see tentacle.000, tentacle.001 and monster.sou.  These are for the original 90's release (i.e. not the remastered version).

Day of the Tentacle Remastered Edition includes Maniac Mansion as a .  The game appears to be exactly the same as the old DOS release (albeit, the enhanced version).  If possible, how can I run this game through ScummVM?  Pointing ScummVM at my installed game doesn't work.  What do I need to do to play this version of Maniac Mansion?


The new CoC is now in effect. And it includes the new gender pronouns aspect.   But   (like me) are more than sure that the feeling of one group cannot prevail over others. One mod has been fired and many have resigned in protest   .  We understand that it is clearly unfair when the feeling of those who want other people to change the way they express themselves (by changing gender pronouns when "required") is prioritized over the people that feels coerced to do so.  This does not sound like a cordial request, but as an imposition.  We do not feel well because it is authoritative and hurts our personal values. (with this new rule, our feeling is not being taken into account)  It seems inevitable that problems will arise. Especially because it is very likely that most users have not even read the code of conduct and therefore are completely unaware of this new rule.  So, how does SE intend to solve this?  For users who still disagree, even after a warning, what will be your solution?    This question is not answered by  because the mentioned question and its answers start from the assumption that this is an issue already resolved.  This question was asking indirectly (now directly), if SE staff is open to dialogue and find a different and more impartial solution.  From the downvotes  (-267 at the time I'm writing), it's clear that this is an unsolved issue, and it would be interesting if we could find another solution.

Please leave any feedback or questions about this FAQ on .     Two weeks ago, we  to directly address concerns over pronoun usage. We tried to anticipate likely questions, but… missed the mark by quite a lot. Based on Gareth McCaughan’s excellent post, “”, we’ve gone back to the drawing board and written a new FAQ that aims to address actual questions that have been frequently asked in these discussions.  If you read only one thing, the answer to question #1 under The Basics sums up our goals in publishing this guidance:     It would be rude to refer to a man as "she" or a woman as "he". Some people are neither male nor female and might, for instance, ask to be referred to as "they". When someone indicates what pronouns should be used to refer to them, please use the pronouns they state as you would others.   This is a learning process for most of us - from authors to readers to moderators to employees of Stack Exchange, Inc.  Let’s all try to approach this with good intentions and a willingness to learn from one another.  Big thanks to Gareth for leading by example here, and to everyone who has stepped up to ask and answer the important questions!  What's all this stuff about pronouns in The Code of Conduct?  The  has two direct references to pronouns:   “Use stated pronouns (when known).” “Prefer gender-neutral language when uncertain.”   What does all of this mean and how can I as a user understand and follow the CoC guidance?


Let $A$ be some set of axis-aligned rectangles in the plane, each pair of which has empty intersection. Prove that $A$ is a countable set. (An axis-aligned rectangle is a set of the form $$M = {\{\langle x,y \rangle \in \mathbb{R^2} | a \leq x \leq b , c \leq y \leq d}\}$$ for $a,b,c,d$ such that $a < b$ and $ c < d$.) Attempt: I tried using the density of the $\mathbb{Q}$ in $(\mathbb{R},\leq)$, but without any success.

If we say that $\mathcal{S}$ is a family of disjoint triangles on a plane, is $\mathcal{S}$ a countable or an uncountable set?  I believe that it is an uncountable set since $\mathbb{R}$ is uncountable and our triangles' corner coordinates are $\in \mathbb{R}$, but I cannot prove this formally, any tip would help.


We know that one of the classical methods for solving some PDEs is the method of separation of variables. It works for known types of PDEs and many examples of physical phenomena are successfully represented in PDE systems where an assumption that the functions are separable in variables seems to work just fine, and we get correct solutions.  My question is how do we arrive at the conclusion that the assumption that our function is 'separable in variables' is valid/correct for a particular equation in the first place? Also, I suspect that it will rely on the given scenario of boundary conditions too (not only the type of equation), such as how symmetric the boundaries are to the coordinates, whether they are curved or separable in variables themselves, etc.   Here is an example of what I mean: suppose I have the Helmholtz equation, say $\nabla^{2}f(x,y)+k^{2}f(x,y)=0$ and the boundary values are defined for some lines, like $f=0$ for $x=0$ and $x=x_{0}$ and for $y=0$ and $y=y_{0}$. Suppose that separation of variables worked here and we got the solution. Can we solve the same equation using the same method (i.e. separation of variables) for a new domain of boundaries, say that $f=0$ over the line segments $|y|=ax$ for $x\in[0,x_{0}]$ with $a$ being a scalar, or over a curved boundary like $y=ax^{2}$?  The point is, if the boundary conditions are not seperable in the given coordinate variables, wouldn't the method of separation of varaibles fail? This begs the question whether its utility is also subject to the nature of BVs, and not only to the form of the PDEs.  Thanks for any help.

The method of separation of variables is used in many occasions in the upper level physics courses such as QM and EM. But when it is used there is no clear reason why using it is permitted it except that it works, or that let us try and see.   Is there a theorem which provides the condition(s) that if satisfied then the method of separation of variables will be guaranteed to work in PDEs?


I have a map; a plane and a Solidify modifier. I have already applied an Image Texture to one side, but Blender is obviously applying the texture to both sides.  I want to add a different Image Texture to the other side of the plane, however. Is there a way to do this?  I have tried to add another one using the Geometry > Backfacing feature, but it did not work.  Map mesh and .blend file's material:    Viewport render of map mesh and Backfacing material (not working):

How could a one-sided material be achieved with the Cycles renderer?  I would like to create a plane that is completely transparent from one side, and a mirror from the other side.  It would be cool if Cycles/Blender simple supported backface culling like the game engine. But I guess it doesn't?  How could something like that done with nodes?


Specs of my laptop are: processor: AMD E1-2500 graphics: Radeon HD 8240. Whenever I try to install linux in it, it gives some errors. In ubuntu's case, it does not boot, and the screen just goes black(when I change to UEFI boot, it goes white). In opensuse's case, it freezed but I was able to look at terminal output and it said that it detected some CPU lockup. I have had Fedora on the same laptop for some time until an update messed it up and it again gave CPU lockup error, so I am guessing Ubuntu has the same problem. My guess is that new kernels have that issue with my processor, since I don't think I have hardware problems, as I run windows without any issue(also I was running fedora before some update).  How can I solve this problem?

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I seem to have lost access to my previous village since I recently switched to another phone. I didn't link it to an account I own but I do have all the local account / village information. Is there a way to recover my previous village?  My account details (if relevant) are below:  Username is sanjubaba, town hall 8th, clan name India, and xp level is 49.

I'm stuck with this problem.. I've been playing CoC for more than a half year and now I lost my old phone. It was an android. Now I got a new phone, which is iOS and I cannot link a device.   Is it possible somehow to recover my old account?  Thank you for any help!


I'm trying to create a form with two listboxes. One is for SQL Server names; the other is for the databases on the server selected by the user.  In VBA I can get the server names by calling a stored procedure. However, I don't seem to be able to get a list of databases for a specific server.  Does anyone know how to write such a query?  Thanks.

How can I get the list of available databases on a SQL Server instance? I'm planning to make a list of them in a combo box in VB.NET.


Example:     Aren't you going to the store?   Where I am from, the correct answer indicating I am going to the store is yes. The contraction "not" is ignored. Is this sort of confusion prevalent elsewhere?    I don't understand what is so complicated about my question here:   Is this sort of confusion prevalent elsewhere?  I am not asking for any of the answers provided here. They are all grand answers, but they have nothing to do with my question, which is is bold this time. I am not asking how to answer this sort of question. I am not asking what this sort of statement means. I am furthermore not asking for an opinion. If you don't understand how ignoring the adverb "not" is confusing, please don't answer. I am asking a very simple question; one desiring a very simple answer.  To reiterate, the confusion arises from the fact that the proper response of "yes" and "no" is reversed.

I faced a problem to answer a negative question, for example, when someone asks you:      Don't you have any money?   It's a yes/no question but how should one answer the question without ambiguity?  When you answer "yes", does it mean "yes, I don't have any money"? or the other way "Yes, I do have money"? the questioner may think you are agreeing to the negative, that yes, you do not have any money.  I know it's better to answer with "on the contrary" but is it possible to answer yes or no?


I have a form with six different input fields. Two of these fields are an either/both case, i.e. the user does not have to fill out both, but one of them is required. My problem is the design of them. How do I make it clear enough to the user that these two fields are a “group”, and not related to the following two fields?

In a contact form, I need either their number or email. I've thought of these ways:   Have field label be "Email or Tel #", or "Email / Tel #" Have the above, but placeholder text in the input saying "Either one is fine" Have the label be "Contact me by" and then have a dynamic message appear (Twitter style) when the field is put in focus Have a select box saying with label "Contact me by" and options "Phone", "Email". When one is selected, an input element below it will be revealed -- respectively Phone and Email   Which, if any, would you consider user-friendly if you were visiting a site?


Trying to find a book I read a few years ago. The main character was a guy called Spyder who I think was a tattoo artist, meets a girl at a bar, gets into a fight and I think he sees some weird stuff. Anyway somehow ends up in some fantasy place. All a bit weird.

I cannot for the life of me remember the name of the book. I feel it was like something about a painted man, but I know it starts with a tattoo artist who unknowingly inks out a sigil that summons a demon, and is then saved by a blind lady with a katana, who might be called Winter. At some point he is granted "the Sight" and can now see the real versions of the people around him, some of whom are missing eyes, or ears, or have other horrid wounds that are the result of unpaid debts to supernatural beings.  He then goes on some big journey to the underworld, or some other secret realm, where angels and demons fly around in airships shooting at each other, and then at one point he fought a clone of himself. I think his mission might have had something to do with a book that he was supposed to give to the devil, but I could be pulling that from a different book.  I know for sure that he was a tattoo artist, that he got the sight, there was a blind swords lady, and that there were angels in airships.


I am attempting to do two things:   Ensure a checkbox is not checked on page load by unchecking it If a checkbox is checked and the mouse is clicked anywhere else on the screen, it will be unchecked.   For the first part, I have tried:  $(document).ready(function() {        $('#cbox').removeAttr('checked');  });   However, this will not allow me to check it manually once the page is loaded.  For the second part, I tried:  $(document).click(function() {        if ($('#cbox').is(':checked')) {         $('#cbox').removeAttr('checked');     }  });   But the problem with this is that if you click the actual checkbox to check it, the check is fired before this is, so the checkbox is always not checked.  How can I correct this?

I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus });


I have written a regex to match from locale="en" to date slot="164" but my regex is not matching multiple new lines. Please advice.  regex  locale="en"\s>\n<string slot="157">(.*|\n)*slot="164"   matching string  <case id="1" casebase="1" name="K" locale="en" > <string slot="157"><value>1asw</value></string><enum slot="12"><value id="1" name="Incomplete" /></enum><integer slot="9963"><value>2</value> </integer><string slot="9960"><value> 07/12/18 16:51  a created with status Incomplete by a &lt;br/&gt;  </value></string><string slot="9961"><value>awd</value></string><string slot="160"><value>awd</value></string><date slot="161"><value>2018-07-12T20:51:34</value> </date><date slot="164"><value>2018-07-12T20:51:34</value> </date></case>

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I need to replace 4 hinges on the doors on our summerhouse.  I have checked in a local hardware store and also I checked in B&Q on the weekend but I couldn't see them in either.  Does anyone know where I can buy these hinges from in the UK?

Bit of a newbie to DIY here.  We've moved in to a house that came with a summer house but the double doors were a bit wonky/wouldn't open easily without breaking in the door. I need to get 4 new hinges for the doors but I'm not sure where I can find these ones. I've looked online on UK sites such as Screwfix but as I'm not sure of the particular name I'm not having much luck.  I've attached a drawing (sorry it's the best I can do as my camera isn't working). My Paint skills aren't the best, it's actually a cylinder shape and half of it spins/moves (this is what is broken/doesn't move anymore so it breaks in to the door).    Cheers, Jack


Which chapter of seven deadly sins is season 2 episode 3?

The 2nd season (labeled as "Season 3" on Netflix) of the anime, Nanatsu no Taizai: Imashime no Fukkatsu (or The Seven Deadly Sins: Revival of The Commandments), has ended.  Which manga chapters correspond to each of the anime episodes?


We have all learned that the earth is getting heat up because of the CO2 and CO molecules absorbing heat. However, how is heat actually kept in those molecules. When photons heat them up, their electron gets excited and goes to a higher energy level; however, we know that atoms want to remain at a low energy state and they quickly drop down to a lower energy state (correct me if I am wrong here). If that is happening, then how can heat be actually kept in a carbon-monoxide or carbon-dioxide molecule?  Is it because during the day, they get heat up and remain heated because they require more time to get to a lower energy state?  Note: This is not a duplicate to the question given as a duplicate because the other question was addressed at why is one element able to absorb heat and not the others. This question, on the other hand, is focused towards how any element is able to absorb heat at all.

We are all told at school water vapour and carbon dioxide are the top two greenhouse gases, and that they absorb thermal infra red radiation, trap heat and warm up the Earth. My question is how do they do that? Why can't Oxygen or Nitrogen or any other gas not absorb infra red radiation as well as water vapour or CO2?


I saw this movie as a kid so I can only recall certain scenes from it but the general idea is that some kind of tentacle alien invaded a town and a team of scientists and soldiers were sent there to contain it.   The most vivid scene I remember is when the tentacle oozed through the streets and grabbed a scientist wearing a white hazmat suit by the legs and filled his suit with some black liquid up to the top. He then fell down, his hazmat helmet glass broke, then momentarily woke up and spoke some dialogues before dying for good.  Another scene involves one of the main characters walking through the street back to the research trailer when he was stopped by a dog (which is probably infected with the tentacle). He then said something along the line of "I just want to help out humanity" or something similar before the dog lets him continue on. I think they were trying to research a cure or something to fight the alien with at this point.

I saw this movie about 14-16 years ago, maybe on TV, seemed like an older movie but not too old, in color. I remember a couple objects/scenes. This one in particular stood out. A dog was possessed at one point and these two guys in white "astronaut" suits were looking at the dog body in a church? The black "blob" gets to one of the guys shoes and gets into his suit and proceeds to possess the guy. The creature is similar to THE BLOB, but all black and possesses people, taking them over.  When the blob type liquid creature takes over a person, the suit on the inside become pitch black and you can no longer see their faces temporarily.  I know it takes place in a town, had a more nighttime setting.. had a mixed cast of characters.  Hope someone can help!


What does it mean when it says line 1, Column 2 missing) or object member name

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


I've found a number of API's that can help determine how much charge (percentages, charge estimates, etc) - mostly in WMI  in my application, I'd like to know if the computer is currently powered by battery,  not the status of the battery.  in short, I'd like special behavior when not plugged in  is there such an API?  I'm happy with a win32 API to pinvoke if needed

i want to be a good developer citizen, , and disable things if we're running over Remote Desktop, or running on battery.  If we're running over remote desktop (or equivalently in a Terminal server session), we must disable animations and double-buffering. You can check this with:  /// <summary> /// Indicates if we're running in a remote desktop session. /// If we are, then you MUST disable animations and double buffering i.e. Pay your taxes! ///  /// </summary> /// <returns></returns> public static Boolean IsRemoteSession {     //This is just a friendly wrapper around the built-in way     get     {         return System.Windows.Forms.SystemInformation.TerminalServerSession;     } }   Now i need to find out if the user is running on battery power. If they are, i don't want to blow through their battery. i want to do things such as   disable animations disable background spell-checking disable background printing turn off gradients  use graphics.SmoothingMode = SmoothingMode.HighSpeed;  use graphics.InterpolationMode = InterpolationMode.Low; use graphics.CompositingQuality = CompositingQuality.HighSpeed; minimize hard drive access - to avoid spin up minimize network access - to save WiFi power   Is there a managed way to see if the machine is currently running on battery?  Bonus Reading    ()  ()  ()


x > y > 5   ... (1)   This is a combination of two inequalities; x > y and y > 5 , so should this be described as "inequalities" not "inequality"? For example, which of the following is suitable?        Solve the inequality (1)   Solve the inequalities (1)

I know that x > y1 is an inequality but I am in doubt over whether y1 < x < y2 is an inequality or inequalities. Which is right? I think that it may be a math question, but I will be thankful if anyone answers it.


I am trying to check if a playlist is simple or master by an index value. My problem is when I put the (True) URL it still returns a false statement "This is a simple Playlist".   Any tips on how I can fix this ?   String output = getPlaylistUrl(input); String mediaRecord = output.substring(399); String lastRecord = "gear4/prog_index.m3u8"; if (mediaRecord == lastRecord) {     System.out.println("This is a master playlist"); } else {     System.out.println("This is a simple playlist"); }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


For anyone who has ever delved into the world of , they will undoubtedly understand some of the benefits of using a square format over a rectangle format when creating photos.   Aesthetic considerations of the image aside, it's just mechanically obvious that a square fits inside of the image-circle produced by the camera's lens a lot better than a rectangle does. In other words, you get more bang for your buck in terms of information/light passing through the lens and onto the sensor/film. Capisci?  Another point to consider is that for some shorter lenses with more distorted properties, the symmetry of the image seems a lot more 'balanced' when going square. If you have ever had a go using a  on a Hasselblad V system you will know exactly what I'm talking about. When compared to 35mm / Full-Frame Sensor with a 15mm Fisheye it's far superior in creating a more pleasing image, especially of buildings or architecture. Anything where long parallel lines converge now becomes easier to frame up, appearing less squashed.   As sensor technology becomes cheaper wouldn't it make sense for all the leading camera manufacturers to begin moving towards reclaiming some of that wasted image-circle? (especially as lenses cost so much too). Imagine if you had the option to select what size sensor you wanted to use before you shot the photo?   This topic has been on my mind since about 2007 when I first bought a DSLR, back in the era of the crop sensor and DX Fisheye lenses. Around the same time I had begun to experiment with 120 film. I'm just asking questions a decade later as to why the CMOS & CCD technology didn't move in a larger, squarer direction?   If someone can provide a logical reason to cling to the 35mm format in the digital age I'm more than happy to listen. Thanks

since all lenses are round, full frame cameras' sensors can be 36 × 36 millimeters. Correct? Is it possible, and if so, why it has not been done yet?  Would that qualify it as medium format?


EDIT: This question is not a duplicate because I am asking how to show that $1$ is the greatest upper bound of $S$ by using the fact that $\mathbb{N}$ is not bounded above.  Let $S=\{\frac{1}{n}-\frac{1}{m}:n,m\in \mathbb{N}\}$ Show that $\sup S = 1$  To do this we must show that $1$ is an upper bound of $S$ and $1$ is the least upper bound of $S$.  To show it is an upper bound we know $$n>0, n>\frac{1}{n}, and \frac{1}{n}\leq 1$$ $$\Rightarrow 0<\frac{1}{n}\leq1$$ $$\Rightarrow -\frac{1}{m}<\frac{1}{n}-\frac{1}{m}\leq 1-\frac{1}{m}$$  Since $1-\frac{1}{m}<1, m\in\mathbb{N}$ we know $\frac{1}{n}-\frac{1}{m} < 1$ so $1$ is an upper bound of $S$.  Now I'm stuck on showing that $1$ is the least upper bound.  If we let $v\in\mathbb{R}$ be an upper bound of $S$ we want to show $1\leq v$. I am trying to do this by contradiction.  So we assume $v<1 \Leftrightarrow v-1<0\Leftrightarrow 0 <1-v$.  I have been told I can run into a contradiction by recalling that $\mathbb{N}$ is not bounded above, but I'm not sure how to get to the contradiction.

I would like to verify my proof of the following:  Let $A=\{\frac{1}{n}-\frac{1}{m}:m, n \in \mathbb{N}\}$.  I want to show that $-1$ and $1$ are the infimum and supremum respectively.  First I will show that $-1$ is the infimum.  To show this I will first demonstrate that it is indeed a lower bound.  Observe: $$\frac{1}{n}-\frac{1}{m} \geq \frac{1}{n}-1 \geq -1.$$  I now claim that $-1$ is the greatest lower bound.  So, by the archimedean property, there exists an $x \in \mathbb{R}$, $x>0$ and $n' \in \mathbb{N}$ such that $1<n'x$.  Thus, $\frac{1}{n'}<x$ and $$\frac{1}{n'}-1<x-1.$$  From the above it is clear that $\frac{1}{n'}-1 \in A$.  Also, it is clear that $-1<-1+x$.   Let $y=\inf(A)$.  So we let $$-1<y\leq-1+x.$$  By completeness there exists an $r\in\mathbb{Q}$ such that $$-1<r<y\leq-1+x.$$  Thus $y$ is not the infimum.  I was going to note that the supremum was 1 through the relationship between $$\inf(A)=-\sup(-A).$$


How is the    $$ i\hbar\frac {\partial }{\partial t}\psi=H{\psi }$$  derived?

The  is the basis to understanding quantum mechanics, but how can one derive it? I asked my instructor but he told me that it came from the experience of Schrödinger and his experiments. My question is, can one derive the Schrödinger equation mathematically?


I just created a brand new VM with Ubuntu server 18.04 and took the same steps I did earlier on another server (also a brand new 18.04 installation), but this time while attempting to install the mysql-server 8.0 it was suddenly failing.  The steps I followed were:  wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb  sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb    This configured my sources.list to use the 8.0 instead of the 5.x version of mysql.  Executing apt-get install mysql-server, I got:   mysql-server : Depends: mysql-community-server (= 8.0.12-1ubuntu18.04) but it is not going to be installed   Despite having run commands such as apt-get clean, apt-get install -f and apt-get update several times, and apt-get upgrade not reporting any held packages, I found this odd. So I tried apt install mysql-community-server.  Which resulted in the same error, but with missing depends for mysql-community-server-core and libmecab2.  When running apt install libmecab2 it tells me it has no installation candidate, but according to the ubuntu packages website .  I couldn't see anything out of the ordinary in my sources.list either, and apt-get update isn't reporting any errors either.  What could be causing this installation to fail? I took the exact same steps on the physical server, and it worked perfectly on that machine.

When I try to install any package through the command line, I get an error.   $ sudo apt-get install <package> Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package <package>   Can anyone help me on this?


One thing is still not clear to me that why people are using  interface for storing just constants only ..when the java 5 had come up with it's new functionality of Enums..      interface OlympicMedal {   static final String GOLD = "Gold";   static final String SILVER = "Silver";   static final String BRONZE = "Bronze"; }   and another class is now implementing it..  public class OlympicAthlete implements OlympicMedal {    public OlympicAthlete( int aId ){     //..elided   }    //..elided    public void winEvent( ){     //the athlete gets a gold medal     //note the reference is not qualified, as     //in OlympicMedal.GOLD     fMedal = GOLD;   }    // PRIVATE //   private String fMedal; //possibly null }    As seen above the same thing could be easily establish by enums also , Please let me know if I have choice to store the constants as above which should I choose enums or interface..!  the enum would be like...  public enum OlympicMedal {       GOLD, SILVER, BRONZ    }     But please advise how the class will access this constants now..!!

I'm looking at some open source Java projects to get into Java and notice a lot of them have some sort of 'constants' interface.  For instance,  has an interface called , and most other core classes implement this interface. The interface is riddled with static members. Is there a reason for this approach, or is this considered bad practice? Why not use enums where it makes sense, or a static class?  I find it strange to use an interface to allow for some sort of pseudo 'global variables'.  public interface PConstants {    // LOTS OF static fields...    static public final int SHINE = 31;    // emissive (by default kept black)   static public final int ER = 32;   static public final int EG = 33;   static public final int EB = 34;    // has this vertex been lit yet   static public final int BEEN_LIT = 35;    static public final int VERTEX_FIELD_COUNT = 36;     // renderers known to processing.core    static final String P2D    = "processing.core.PGraphics2D";   static final String P3D    = "processing.core.PGraphics3D";   static final String JAVA2D = "processing.core.PGraphicsJava2D";   static final String OPENGL = "processing.opengl.PGraphicsOpenGL";   static final String PDF    = "processing.pdf.PGraphicsPDF";   static final String DXF    = "processing.dxf.RawDXF";     // platform IDs for PApplet.platform    static final int OTHER   = 0;   static final int WINDOWS = 1;   static final int MACOSX  = 2;   static final int LINUX   = 3;    static final String[] platformNames = {     "other", "windows", "macosx", "linux"   };    // and on and on  }


For some reason, my file window when I am opening a file/folder or uploading something the sidebar is missing a lot of items which makes navigating to my destination a pain. What am I missing? My normal finder window is fine and isn't missing any items. I tried to go into the library>preferences>and deleting any com.apple.finder.plist like in another thread but I didn't find any files like that in my library. I searched my entire mac for them and didn't find any.  I'm using El Capitan.

I'm having the strangest issue since updating to OS X El Capitan. My "Open File" dialogs show the sidebar but all my main (and useful) locations are missing. Take a look at this screenshot. This screenshot shows Keychain Access but this happens in Safari when I'm trying to attach a file to Gmail for example, or uploading an image to Facebook.  What I would like is for the sidebar to show my home directories, such as Desktop, Documents, Downloads, etc.  Help?


SQL Server was restarted by mistake, when it came online, database came back in "In Recovery" mode. Check from error it says "Recovery of database 'DB1' (5) is 8% complete (approximately 27146 seconds remain). Phase 2 of 3. This is an informational message only. No user action is required. It says it will 8 hours to bring this 2tb database online. Any quick way to fix this, as we didnt had anything open in LOG files, so even if they r ignored, its no impact. We want to bring this database ONLINE quickly

I have SQL server 2017. I have one 3 TB size database there. Somehow due to long running transaction the database got stuck 'IN Recovery' mode after SQL server Restarted. When I checked the sql error logs it says 2 189 255 seconds remaining (Phase 2 of 3) completed which is almost 25 days. My goal is to bring the database online even if I lose some data.  So I've ran below commands but no luck.     USE [master]   GO    RESTORE DATABASE test WITH RECOVERY   --Msg 3101, Level 16, State 1, Line 6   --Exclusive access could not be obtained because the database is in use.   --Msg 3013, Level 16, State 1, Line 6    --RESTORE DATABASE is terminating abnormally.     ALTER DATABASE test SET EMERGENCY;   GO   --Msg 5011, Level 14, State 7, Line 13   --User does not have permission to alter database 'DragonDriveConnect',    the database does not exist, or the database is not in a state that    allows access checks.   --Msg 5069, Level 16, State 1, Line 13   --ALTER DATABASE statement failed.    DBCC CHECKDB (DragonDriveConnect, REPAIR_ALLOW_DATA_LOSS) WITH    ALL_ERRORMSGS;   GO   --Msg 922, Level 14, State 1, Line 22   --Database 'DragonDriveConnect' is being recovered. Waiting until     recovery is finished.   At last I've tried to Delete the database too but that is also not working and giving me error saying Cant Delete.  How do I get out of this situation?


Well I installed hard disk sentinel and it changed my drive icons to this. (Didn't like it enough when it would keep adding itself as a startup program whenever I opened it, but my regular SMART reader, thought it was malfunctioning, needed to see if a different reader would read more.)    Uninstalling the program didn't restore original icons. Re-installing, then running the uninstaller as admin and killing explorer.exe before starting the process did not help either. Right clicking the drive into properties and doing restore default icon does not do anything either. In "Save-As" dialogue boxes, the drives show up with no icon.   Anyone know how programs change the default icon for things in My Computer?

One day when I opened My Computer I saw a strange icon for drive D: instead of the usual icon.  How can I restore the original icon? Here is a screenshot:


I have a SQL Server instance that has a linked server to an Oracle server. There is a table on the Oracle server called PersonOptions which contains the following data:  ╔══════════╦══════════╗ ║ PersonID ║ OptionID ║ ╠══════════╬══════════╣ ║        1 ║ A        ║ ║        1 ║ B        ║ ║        2 ║ C        ║ ║        3 ║ B        ║ ║        4 ║ A        ║ ║        4 ║ C        ║ ╚══════════╩══════════╝   I need to pivot that data so the results are:  ╔══════════╦═════════╦══════════╦══════════╗ ║ PersonID ║ OptionA ║ Option B ║ Option C ║ ╠══════════╬═════════╬══════════╬══════════╣ ║        1 ║       1 ║        1 ║          ║ ║        2 ║         ║          ║        1 ║ ║        3 ║         ║        1 ║          ║ ║        4 ║       1 ║          ║        1 ║ ╚══════════╩═════════╩══════════╩══════════╝   Any suggestions?


Is there a good clean conventional way to do this?  For example, if there are any ".gz" files in a certain directory, I want to unzip them.  But if there aren't, I don't want to see any error.  If I use gzip -d /mydir/*.gz, I get the error:  gzip: /mydir/*.gz: No such file or directory   If I first shopt -s nullglob and then gzip -d /mydir/*.gz, I get the following:  gzip: compressed data not read from a terminal. Use -f to force decompression. For help, type: gzip -h   I have one method I know will work, which I'm posting as an answer.  I'm wondering if there's a better/cleaner way.  POSIX compatibility is a bonus, but not required.

I am trying to write an if statement to test whether there are any files matching a certain pattern. If there is a text file in a directory it should run a given script.  My code currently:  if [ -f /*.txt ]; then ./script fi   Please give some ideas; I only want to run the script if there is a .txt in the directory.


It is possible to calculate the time dilation with Lorentz transformation? So with the equation $$t'=\gamma(t-\frac{x v}{c^2}) \tag{1}$$ in which $\gamma$ is the Lorentz-Factor?  In an exercise I have succeeded.  So why can be calculated with the equation $(1)$ the time dilation? What is the reason?

Is this true or false: If A and B have clocks and are traveling at relative velocity to each other, then to B it APPEARS that A's clock moving slower, but A sees his own clock moving at normal speed.  Similarly, to A it APPEARS that B's clock is moving slower, but B sees his own clock moving at normal speed.  If the above is true, then both A seeing his own clock moving at normal speed and B seeing his own clock moving at normal speed means that in reality both clocks are moving at normal speed, and neither has slowed down, whereas the other person's clock APPEARING to move slowly is merely an illusion.   Now is this true or false: If A and B have clocks and are traveling at relative velocity to each other, then A sees his own clock move slowly (compared to the speed of the clock when A was at rest with respect to B) and B sees his own clock move slowly, so that in reality both clocks are moving slowly, but they still remain synchronized (since both are slow by the same amount)  If the above statement is not true, then why do muons decay slowly when moving fast? [it could only be possible if the muon saw its own clock as moving slowly. If we saw the muon's clock moving slowly, but the muon saw its own clock moving at the normal rate, then the muon would decay at the normal rate, and not slowly]  Can anyone please explain where I went wrong?


which is annoying, because when I take screenshot it takes screenshot from both screens (from an existing one and a non-existing one).

Ubuntu Detects 2 monitors when I only have 1. This causes an issue when booting up because it's detecting 2 monitors and by default it is mirroring the display; which is causing a distorted picture since it's trying to create a mirror image on 1 display. xrandr output.... The VGA1 is the phantom monitor and I need to remove it so it boots to LVDS1 and NOT mirrored.   Any suggestions on how to permanently remove VGA1?  :~$ xrandr -q Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 VGA1 connected (normal left inverted right x axis y axis) 1024x768 60.0 800x600 60.3 56.2 848x480 60.0 640x480 59.9 LVDS1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1920x1080 59.6*+ 1680x1050 60.0 59.9 1600x1024 60.2 1400x1050 60.0 1280x1024 60.0 1440x900 59.9 1280x960 60.0 1360x768 59.8 60.0 1152x864 60.0 1024x768 60.0 800x600 60.3 56.2 640x480 59.9


Let ${a_n}$ be a sequence such that there exists an M > 0 such that for all n ∈ N one has $|a_{n+1} − a_n|$ ≤ M/$2^n$  Prove that ${a_n}$ is a Cauchy sequence.  My attempt: I tried to use the triangle inequality to prove that for all m$>$n, $|a_m - a_n|$<$\epsilon$ but I am unable to get anything useful out of the inequalities I'm getting.

Let $(x_n)_{n=1}^{\infty}$ be a sequence such that $|x_{n+1} - x_n| < r^n$ for all $n \geq 1$, for some $0 < r < 1$. Prove that $(x_n)_{n=1}^{\infty}$ is a Cauchy sequence.  I understand that a Cauchy sequence means that for all $\varepsilon > 0$ $\exists N$ so that for $n,m \ge N$ we have $|a_m - a_n| \le \varepsilon$. But this one is really giving me a headache.  I tried doing something like: let $ m > n$. Therefore $x_n - x_m$ =  $(x_n - x_{n-1}) + (x_{n-1} - x_{n-2}) + ... + (x_{m+1} - x_m) $ and then somehow using the triangle inequality to compute some sum such that $x_n - x_m$  < sum which would be epsilon?  any help is appreciated, thank you.


i am trying to install teamviewer and i am getting the following error and the entire process is as follows   kittu@kittu-355V4C-356V4C-3445VC-3545VC:~$ sudo dpkg -i teamviewer_linux_x64.debdpkg: error processing archive teamviewer_linux_x64.deb (--install):  cannot access archive: No such file or directory Errors were encountered while processing:  teamviewer_linux_x64.deb   the file is in home/downloads/teamviewer_linux_x64.deb

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


Prove that if $f(x)$ and $g(x)$ are continuous at $c$ and $f(c) < g(c)$ then there is a neighborhood $N$ of $c$ such that $f(x) < g(x)$.

Let $f$ and $g$ be continuous at $x=a$, with $f(a)< g(a)$. Prove that there exists a neighborhood $I$ of $a\in\mathbb{R}$ such that $f(x)< g(x)$ for all $x \in I$.  It might be helpful to use the theorem that states: If $\lim_{ x\to a} f(x)=L$, $L$ is not $0$, then there exists $\delta>0$ such that $f(x)>L/2>0$ for 0$ < |x-a| < \delta$.


I have to create an online test that has around 80 questions. These are one sentence questions with 5 answer options for all questions (no free form). Now my question is what would be the optimal way of displaying the question for a UX point of view.   Either showing 20 questions per page or  showing one question per page and when an answer is selected it automatically and in a fast way takes the user to the new question (allowing user to go back if the selected answer is incorrect).

I am designing UI/UX for a survey webapp which has more than 150 questions. Right now they are using 5 radio buttons for each question. Similar to the image below:      So the question is, how to make it super user friendly, easy and fun to do?   Further I am looking for a solution from responsive web design perspective too.  I hate designing it like the following image below but what are some other options.


Is it possible to use custom placeholder for custom post title?  I couldn't see any placeholder mentioned in the labels array argument of register_post_type .

I want to change the default placeholder text in my Custom Post Type title field. This isn't possible while registering a new post type.  The following screenshot describes it.


My module implements () in order to define a settings page:  function MYMODULE_menu() {     $items = array(         'admin/config/system/mymodule' => array(             'title' => 'MyModule settings',             'description' => 'Various settings for MyModule.',             'page callback' => 'drupal_get_form',             'page arguments' => array('__MYMODULE_settings'),             'access arguments' => array('administer site configuration'),             'type' => MENU_NORMAL_ITEM         )     );     return $items; }   That settings page takes it's settings from __MYMODULE_settings():  function __MYMODULE_settings() {     $form = array(         'my_text_field' => array(             '#type' => 'textfield',             '#required' => TRUE,             '#title' => 'Facebook link'         ),         'my_node_field' => array(             '#type' => 'entityreference',             '#required' => TRUE,             '#title' => 'Contact node'         ),         'submit' => array(             '#type' => 'submit',             '#value' => 'Save'         )     );     return $form; }   However when I do this, the "my_node_field" field (of type entityreference) doesn't display.  On the settings form I want to have a setting that points to a node. I'd like to use the "" module for that setting — I already have entityreference installed, and I'm using it to put node reference fields on a handful of my content types.  Looking at entityreference_field_info(), it looks like entityreference defines a field called "entityreference" — shouldn't I be able to use this field?

I'm interested in embedding a Field Widget Form out side the context of the whole node edit form.   I have displayed full forms in the past using  but that doesn't seem to apply for solitary Field Forms.   Is displaying a working Field Widget Form possible? What would be the best way to do so?  Both field widgets and "normal" forms seem very alike, so if this is not possible, what would be required to "change" a widget form into a normal form?  This  appears to be asking for something similar but I don't understand the answer.  That answer specifies using ; what I don't understand is how to get the Field Form to be displayed not how to hook it once it is being created.


void fill() { ifstream fin; fin.open(File); if (!fin) {     throw std::runtime_error("unable to open file"); } char line[maximumCodeLine]; std::stringstream stream; string letter; string code; while(readline(fin, line, maximumCodeLine, '\n')) {     string str = string(line);     stream.str(str);     stream >> letter >> code;     cout << letter << endl;     cout << code << endl;     // basically what i want to do finally     // create some object like --> object myObj(letter, code); }     }  bool readline(ifstream &fin, char *line, int linesize, char delim) {   if (fin.eof()) return false;     fin.getline(line, linesize, delim);   if (!fin.good()) return false;   int last = strlen(line) - 1;   if (line >= 0 && line[last] == '\r') line[last] = '\0';   return true; }   I have text file containing the following     abc 1234   ass 2345   dfd 3455   Basically, I want to create object taking two string parameters. Then I would get two words on the line of the text file and pass them into the object.  But when I print out the letter and code each time stream changes its string value, I get     abc   1234   abc   1234   abc   1234   It means that letter and code value does not change.  I think stream >> code and stream >> letter has problem because I confirmed that the stream itself changes its string value during the while loop  How can I get the next word???

I've tried several things already,  std::stringstream m; m.empty(); m.clear();   both of which don't work.


I am making a quiz app and i couldn't figure out how to store my questions and answers without using SQLite or datashare  I'm used to c++ so I'm searching for the equivalent of making a struct and using an array to store my data   struct item { string Question; string Answer1; string Answer2; }; item data[] ;   how can i make an equivalent of this in Android Studio, store data in it and import from it to a textView for example ??

Is it completely against the Java way to create struct like objects?  class SomeData1 {     public int x;     public int y; }   I can see a class with accessors and mutators being more Java like.  class SomeData2 {     int getX();     void setX(int x);      int getY();     void setY(int y);      private int x;     private int y; }   The class from the first example is notationally convenient.  // a function in a class public int f(SomeData1 d) {     return (3 * d.x) / d.y; }   This is not as convenient.  // a function in a class public int f(SomeData2 d) {     return (3 * d.getX()) / d.getY(); }


Tried searching for this question but I think I don't know the jargon. I am entering my site content into a mysql database using php, but all of my accented letters or apostrophes (spanish) get transformed into some crazy encoding. Ex:  ' becomes â€  á becomes Ã¡   and etc. First off I don't know what this means or is, but when displaying them on my site, they definitely do not revert back, nor would I expect them too because if I manually enter in UTF-8 letters they totally work on my site.   Is there a way to fix this without re-entering all of my text? I have a feeling I can extract them using php, decode them and then insert them back in but I do not know the functions that do this. The best solution, and if anyone knows how that would be amazing, would be to just do it within sql. By the way the columns say collation utf8_general_ci.   For some further information, I am not doing anything to the text that gets entered into the database (I know that is bad but I suck at this stuff!) Also I am not doing anything when it is being queried. My functions insert pure text and extract pure text to each page. In this way I can write html into my forms and it appears as html on the page and therefore the browser interprets it correctly. I also have a feeling this is really sloppy but like I said... Thanks for all the help!  -- Edit --  So thanks to people who pointed me to the other questions. However, the way I fixed it was not in that answer, it just gave me the write keywords to start a new search. For anyone who has this problem, the way I fixed it was using the function utf8_decode(). I'm not sure this is a great fix, but at least it is working for now and speed was my biggest priority. I am certain the core problem is in how I am entering the data into the database.

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.


This website is common in both north and south America.   Or is this better?     This website is common in both south and north America.   Let's ask Google:   : 26,800,00 hits : 592,000 hits   Why there is a huge difference?  There are too many other examples, such as white and black, high and low, etc.    In an academic/professional writing context, if there is no logical reason for any order, should one just preserve the common order? Does using the uncommon order look strange?

Is there a word or phrase for two nouns or adjectives joined by a conjunction (usually "and") in a fixed sequence?        alive and well           fast and furious   hat and gloves   pen and pencil   law and order   wit and wisdom   salt and pepper   bacon and eggs   horse and carriage   Adam and Eve   ladies and gentlemen   loud and clear   heads or tails   yes or no   dead or alive


How to solve  $$x''+2Ax'+A^2x=0$$ where $A$ is a constant matrix and $x$ is a vector ? I assumed the form was $x=c\cdot \exp(At)$ similar to how it does done for normal second order equations. I got the characteristic equation as $t^2+2At+A^2=0$ with the double root $t=-A$ then I wrote the final solution as:  $$y=c1\cdot\exp(-At)+c2 \cdot t \cdot \exp(-At)$$  Is this correct?

Given that $A$ is a constant coefficient matrix, how would one find a non-zero solution to the following equation: $$ x''+2Ax'+A^2x=0 $$ I am thinking this could incorporate systems of linear equations, but I am not sure how to use $x'=Ax$ or $x'=P(t)x +g(t)$ in this situation.   Any hints or suggestions are appreciated.


I'm currently developing an idea for a conquest-style board game similar to Risk. I was wondering if I would be legally entitles to use some game mechanics that appear in that game so long as I don't use Risk's title or logo or anything.

Most games build on other games' successes and many are downright clones. Where is the limit of imitation before legal issues come into play? Is it down to literary or graphic work like characters and storyline that cause legal problems, or can someone actually claim to own gameplay mechanics?  There are so many similar clone games out there that the rules are probably very slack or nonexistent, but I'd like to hear the views of more experienced developers / designers.


I want to remove all the domain names from a string excet example.com from a php string. can anyone please write the regular expression in doing it.  preg_replace("/!http://example.com[^>]+\>/i", "", $string);    but it is not working. can anyone please in this regards.  Regards,

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


Is there anyway I can run Minecraft in the background so I can harvest items from my automated mob grinder while doing other activities, other than by setting up a server for myself? If I just minimise the game, it automatically pauses itself.

Is there a way to alt-tab out of Minecraft (i.e. make Minecraft lose focus) without the game auto-pausing and without having to bring a menu (e.g. inventory) up first?


I'd be happy if someone could tell me the font family used in creating this document.    Thanks

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


How do I take a text file, skip the first 14 records, skip the last 2 records, put everything else into a new file?  I can write a simple Java or python code to do this, but I am looking for even simpler bash script/command line.  Anyone can help me on this?

I have a very long file which I want to print, skipping the first 1,000,000 lines, for example. I looked into the cat man page, but I did not see any option to do this. I am looking for a command to do this or a simple Bash program.


Every time I log in, I need to go to disks and mount all my partitions manually.  How can I make it automatic?

I've a partition on /dev/sda2 of 279 GB Ext4 filesystem, but I'm not able to auto mount it on login.  I've added the partition entry /dev/sda   /home   ext4    defaults    0 0 in /etc/fstabt still it does not auto mount.  I've even tried to edit the mount options from disks (please see the below screenshot), yet no results.  The udisks command works well but the problem is that, it asks a admin password for standard user.  So my question is how do I auto mount this partition or at least grant read write permission to standard user so that they can mount this partition using udisks command.      Thanks to  I was able to automount my partition by editing the entry in fstab.  First I fount the UUID using sudo blkid  Then edit the fstab file using sudo /etc/fstab  Add the entry in the following format  [Device] [Mount Point] [File System Type] [Options] [Dump] [Pass]  Device will be your UUID Mount Point will be the location where you want to mount your partition File System Type will be displayed when you run blkid command Options Add the options you need. See options in  for more details. Dump This value will be zero most cases. See Fstab for more details. Pass This value will be zero most cases. See Fstab for more details.    So finally this is how my entry looks like.  UUID=fe9ab5ba-35ed-49c5-b1d3-9bfc02060867 /media/mount ext4 auto,user,rw,exec 0 0   Save the file and restart your PC.  In the options I've mentioned  auto which means auto mount user which means grant standard users to mount partition rw read write permission exec Permit the execution of binaries from the filesystem


I am developing an application that at the beginning the user can select which database to connect to. It is a Rails application which uses Active-Record for database access.  Usually, a Rails application is configured to connect to a specific database and then not change which database it is connected to.  How can an application which is using Active-Record select its database on the fly?

In our program, each customer gets their own database.  We e-mail them a link that connects them to their database.  The link contains a GUID that lets the program know which database to connect to.  How do I dynamically and programatically connect ActiveRecord to the right db?


Could anyone explain the difference between these lines?  Where: char ** d_array, I just can't predict the outcome of these lines. Never really understood the pointers in C++, and didn't find any tutorial where they'd explain such lines yet. Thanks in advance!  • d_array + 2 • *(d_array+ 2) • *(d_array+ 2) + 1 • *(*(d_array+ 2) + 1) • d_array[1][1] • *(d_array[1]+1)

Why are pointers such a leading factor of confusion for many new, and even old, college level students in C or C++?  Are there any tools or thought processes that helped you understand how pointers work at the variable, function, and beyond level?  What are some good practice things that can be done to bring somebody to the level of, "Ah-hah, I got it," without getting them bogged down in the overall concept? Basically, drill like scenarios.


I'm making an adventure map where I have a Villager "merchant" that sells custom armour for the price of a custom currency (All of this works fine. In a previous arqade question (You can see it ) I had a problem with this but it works like a charm) I wanted to add another feature to this armour now that i have the villager working. Lone behold, I have yet another issue. I have tried fiddling around with tags and formatting. Nothing seems to be able to allow me to have a villager that sells a custom named item that also has it's own modified attributes. It seems I can only have the item to have a custom attribute (but no custom display) or a custom display (but no custom attributes) My current command displays a custom name and lore but has no attributes:  /summon villager ~ ~1 ~  { CustomName:"Lv.1 Gear Merchant" ,CustomNameVisible:1b ,NoAI:1b ,Invulnerable:1b ,Offers: { Recipes: [ { buy: { id:"minecraft:gold_nugget" ,tag: { display: { Name:"Gold Coin" ,Lore: [ "$1" ] } } ,Count:32 } ,sell: { id:"minecraft:leather_chestplate" ,tag: { display: { Name:"Shoddy Leather Jacket" ,Lore: [ "Lv.1" ] } } ,Count:1 } ,tag: { AttributeModifiers: [ { AttributeName:generic.maxHealth ,Amount:1 ,Operation:0 ,Name:Health+ ,UUIDLeast:999 ,UUIDMost:999 ,Slot:"chest" } ] } ,maxUses:9999999 } ] } }     Again in this draft I have no errors, it just doesn't seem to want to apply my attribute changes. I created another draft that seemed to result in the exact opposite. The command:  /summon villager ~ ~1 ~  { CustomName:"Lv.1 Gear Merchant" ,CustomNameVisible:1b ,NoAI:1b ,Invulnerable:1b ,Offers: { Recipes: [ { buy: { id:"minecraft:gold_nugget" ,tag: { display: { Name:"Gold Coin" ,Lore: [ "$1" ] } } ,Count:32 } ,sell: {id:"minecraft:leather_chestplate" ,tag: { AttributeModifiers: [ { AttributeName:generic.maxHealth ,Amount:1 ,Operation:0 ,Name:Health+ ,UUIDLeast:999 ,UUIDMost:999 ,Slot:"chest" } ] } ,display: { Name:"Shoddy Leather Jacket" ,Lore: [ "Lv.1" ] } ,Count:1 } ,maxUses:9999999 } ] } }     Now the health is working but the display is kaputz. This feels like a game of whack-a-mole that's making me pretty TRIGGERED. Anyways, I suck at commands and hopefully with the help of anyone who sees this, I can learn. Thanks.

I'm trying to create an item that can break certain blocks, but also has a colored name in 1.13.2   Here's the command I'm using.  /give iAugust minecraft:shears{display:{Name:"[{\"text\":\"Arcane Shears\",\"color\":\"aqua\",\"italic\":false,\"bold\":false}]CanDestroy:[minecraft:iron_bars]"}}   But it only has a colored name, and it can't break specific blocks.


I have never used blender before, and I don't know how to control the windows on the interface.

How do you close windows/tabs in 2.8? I've tried a lot of stuff, but always end up opening up more.


Currently, we use Subscriber key= Email Address = Contact Key; We are planning to use Salesforce Contact ID as Subscriber key/ContactKey. Is there a way to mass update Subscriber key value for all our current Subscribers (we have around 250k subscribers)? Also, will we lose all the tracking data about our subscribers? We are mostly concerned about Einstein Optimization data, but we are not sure if Einstein tracks and stores the data based on the Subscriber Key or email address?

I'm trying to update an existing Subscriber in the All Subscriber Table through the API; i've set up the AppId in the App Center and have connected and created Subscribers, but i'm still having issues updating.  What call do I need to be making to do this? These are the ones i've been trying.


I'm running an Ubuntu 20.04 server, and when I look at the logs, I constantly see strings of entries like this: Jan 14 23:04:51 dell-server sshd[578861]: Invalid user carlos from 14.232.160.213 port 32832 Jan 14 23:04:51 dell-server sshd[578861]: pam_unix(sshd:auth): check pass; user unknown Jan 14 23:04:51 dell-server sshd[578861]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=14.232.160.213 Jan 14 23:04:52 dell-server sshd[578861]: Failed password for invalid user carlos from 14.232.160.213 port 32832 ssh2 Jan 14 23:04:54 dell-server sshd[578861]: Received disconnect from 14.232.160.213 port 32832:11: Bye Bye [preauth] Jan 14 23:04:54 dell-server sshd[578861]: Disconnected from invalid user carlos 14.232.160.213 port 32832 [preauth] Jan 14 23:05:09 dell-server sshd[579042]: Invalid user admin from 41.221.168.167 port 37492 Jan 14 23:05:09 dell-server sshd[579042]: pam_unix(sshd:auth): check pass; user unknown Jan 14 23:05:09 dell-server sshd[579042]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=41.221.168.167 Jan 14 23:05:11 dell-server sshd[579042]: Failed password for invalid user admin from 41.221.168.167 port 37492 ssh2 Jan 14 23:05:11 dell-server sshd[579042]: Received disconnect from 41.221.168.167 port 37492:11: Bye Bye [preauth] Jan 14 23:05:11 dell-server sshd[579042]: Disconnected from invalid user admin 41.221.168.167 port 37492 [preauth]  It's always for random usernames that don't even exist on my system. Is someone trying to brute force hack into my server via SSH? Would anyone have suggestions on how to mitigate these attacks and automatically ban the IP addresses that are being used?

What measures can/should I take to make sure that security around my SSH server is absolutely impermeable?  This will be community wiki from the start, so lets see what people do to secure their servers.


Is my analysis correct that the following use of wh- question words and how is two clauses linked by a conjunction:      I don't understand || how/why/when/where he did it   here's || why I have a problem   Furthermore are these to be considered textual themes, while in     I don't know || what he did   I don't know || where he did it   I don't know || who did it   what, where and who would be ideational themes?

I am not familiar with the idea that an adverb can function as a conjunction at the same time. Here are a couple of sentences that are confusing me.     This is the reason why she left him.   ...and     He was transferred to New York, where he was promoted to a higher level.   The  why, where, when, and how seem to introduce a clause. Therefore, can they also be called conjunctions? If yes, would I be right in assuming that relative adverbs can function as conjunctions at the same time?


I am using both words 'Earth' (in the sense of the planet Earth) and also 'earth' (in the sense of land, minerals,soil, etc) and the proofreading software shows an error asking me to make them both consistent. Please let me know if it is okay that I use both the words 'Earth', 'earth' or do I have to make them consistent. I believe that when refer to the earth as a planet then you should capitalize it.

At the beginning of a sentence is obvious.  I'm referring to the following examples:        A handful of earth.   The earth under this house.   The earth beneath my feet.   What on earth?   The heavens above and the earth below.   The earth moved.   We returned quickly to earth.      Lower: 1,2,3,4 Upper: 7 Not sure: 5,6


I can use compgen -a to list all the aliases:  $ compgen -a egrep fgrep grep l la ll ls   l, la and ll are defined in my ~/.bashrc:  # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'   What command can I run to see what an alias expands to? I have found the whatis, whereis and which, but they don't do what I want.

ll is a common alias in many Linux distros. How can I tell what it aliases to?   I've tried checking my .bashrc, but I am not able tell what ll is equivalent to.


I need to return my computer to the company after our mass lay off. I want to remove everything. I care nothing about any files. Just need it ALL removed. Please advise me, as I am obviously a novice. Thank you in advance!!

I have an old laptop that is running Ubuntu. Now I want to give away this laptop, but I want to remove all private data. So what should I remove? I don't want to format the whole system, because the OS will be still in use by the new owner.


I have a template class and i want to overload the output operator <<, but my code doesn't work, I don't know why... I don't know how do the same thing, but with the input operator... Can you help me?  This is my code:  #include <iostream>  template<class TypeData, int S> class TD{   private:       int size;       int augmentation;       int capacity;        TypeData * array;        void changeCapacity();    public:     TD();      TD(const TD<TypeData,S> & array);      TypeData & operator [](int position) const;      void addElement(TypeData element);      friend std::ostream & operator << (std::ostream & output, const TD<TypeData, S> & array);      ~TD(); };  template<class TypeData, int S> TD<TypeData, S>::TD():  size(0), augmentation(S), capacity(S){     this->array = new TypeData[S]; }  template<class TypeData, int S> TD<TypeData, S>::TD(const TD<TypeData,S> & array): size (array.size), augmentation(array.augmentation), capacity(array.capacity){     this->array = new TypeData[array.capacity];      for (int i = 0; i < array.size; i++){         this->array[i] = array[i];     } }  template<class TypeData, int S> TypeData& TD<TypeData, S>::operator [](int position) const{     if (position > this->size){             return this->array[0];     }      return this->array[position]; }  template<class TypeData, int S> void TD<TypeData, S>::addElement(TypeData element){     if (this->capacity <= this->size){         TypeData * ptTmp = new TypeData[this->capacity];          for (int i = 0; i < this->size; i++){             ptTmp[i] = this->array[i];         }          delete this->array;          this->capacity += this->augmentation;         this->array = new TypeData[this->capacity];          for (int i = 0; i < this->size; i++){             this->array[i] = ptTmp[i];         }          delete[] ptTmp;     }      this->array[size] = element;     size++; }  template<class TypeData, int S> std::ostream & operator << (std::ostream & output, const TD<TypeData, S> & array){     for (int i = 0; i < array.size; i++){         output << array[i] << " - ";     }      return output; }  template<class TypeData, int S> TD<TypeData, S>::~TD(){     delete [] this->array; }   Here the main:  int main(){     TD<int,20> t;    t.addElement(5);    t.addElement(10);     std::cout << t << std::endl;     return 0; }   I have this error:  Undefined symbols for architecture x86_64: "operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&,  TD<int, 20> const&)", referenced from:       _main in test9-8bd618.o ld: symbol(s) not found for architecture x86_64

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


I am just getting started learning, and I've been trying for awhile to get this done but I don't know what I am doing wrong  name = input("Enter name :") if name is "Uber":     print("Hello there, General "+ name ,",you are a bold one!") else:     print("Begone, " + name , ", you do not belong here.")   I want it to say "Hello there, General Uber, you are a bold one!" if the input is Uber, otherwise it must say "Begone (name),you do not belong here."

My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object?


I connect a 5v 5w solar panel a usb port and a 3.7v 2.5A lipo with pcb.  If I connect a phone to usb port it doesn't charge, but if I remove the battery from the circuit, it does. I suppose it's because battery pcb downgrade the voltage to 4.2v or there is not enough energy to serve both. There is a simple way to prioritize the usb or make them share? Thanks in advance for your help  PS Sorry to eventual mistakes but I'm still learning electronics. I did not blow anything yet, thanks also to t  ______________________________________  Summary of requirement:  Given:   5V 5 Watt PV panel    Cellphone with "USB" "5V" charger input.   Single cell LiPo 3.7V nominal 2500 mAh.   Requirement:       Use PV to charge phone if connected.    Otherwise charge battery.    If possible share PV energy between phone and battery if both present.    Problem:  Connecting the panel to the LiPo loads it to battery voltage which is too low a V to operate the phone charging circuit.


I see that some items "have on research benefit and can be sold freely" If i sell these will I regret it later or can I sell them without worrying?

I've got a considerable amount of alien detritus lying around my base:    Some items, like the damaged UFO flight computer, are marked as useless and intended for sale without consequence.    However, I have no idea how many bits of Alien Alloys I'm likely to need.  Or what a stack of alien corpses might be useful for, for that matter.  I could, however, immediately use some extra credits.    I'm tempted to sell a bunch of this stuff off to finance my near-term needs, but I'm concerned that some of this is going to be   What bits of alien refuse are critical in the mid and late game, and how much should I keep on hand?


After upgrading (12.08.2014) from version 12.04 to 14.04.1   I get an notification: System program problem detected. Do you want to report the problem now? So, after I click  "report problem" I get an empty desktop.  The only thing I can is to use command-line interface by Ctrl+Alt+F1.  What should I do to get Unity work correctly?

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


youtube-dl  is showing me this message all the time. What should I do?  $ youtube-dl https://www.youtube.com/watch?v=t-xPlsYmYXY [youtube] Setting language WARNING: unable to set language: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> [youtube] t-xPlsYmYXY: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

I am trying to download a playlist using youtube -dl but getting an error.  Command:  youtube-dl --playlist-start 1 https://www.youtube.com/playlist?list=PL8B24C31197EC371C   Output:      [youtube:playlist] PL8B24C31197EC371C: Downloading page #1 ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>   What should i do?


i know that driver is a software that can communicate with the hardware in order to control the device that attached to the computer.whereas kernel module is a small piece of code that can inserted into the kernel to improve the performance of the kernel. I want to ask how do the driver work together with the kernel and what is the main difference between device driver and kernel module,also how do they work?

When I do a lspci -k on my Kubuntu with a 3.2.0-29-generic kernel I can see something like this:  01:00.0 VGA compatible controller: NVIDIA Corporation G86 [Quadro NVS 290] (rev a1)     Subsystem: NVIDIA Corporation Device 0492     Kernel driver in use: nvidia     Kernel modules: nvidia_current, nouveau, nvidiafb   There is a kernel driver nvidia and kernel modules nvidia_current, nouveau, nvidiafb.  Now I wondered what might be the difference between Kernel drivers and Kernel modules?


I am curious about the definition of the well received question for the purposed of the Curious badge. For example, on Linux and Unix Stack Exchange I have several questions with a positive score, including two with a score of 2 (closed) and one with a score of 5, but overall I'm only seeing 2/5 for the Curious badge progress.  This is interesting to me, because I'm starting to wonder what 'well received question' might mean in this context. Might there, for example, be a specific formula that can be over-ridden under particular circumstances, or at the discretion of the mods? Or is the formula itself liable to change over time or when people decide their servers are a little bit bored.  Inquiring minds..

The description of the new  badge currently reads:     Asked a good question on 5 separate days, and maintains a positive question record.   The term "good question" seems to be defined by the badge :     Question score of 25 or more.   Curious seems to use another criterion, though, as witnessed by  (no Good Question but Curious).  Please clarify the description.


I have website running on SQL Server 2008 R2 Standard edition and on new server we are provided with SQL Server 2008 R2 Express edition. I am sure that there are certain limitations like    maximum of 10GB of DB size per database Utilization of 1 process only Use of 1 GB Internal memory only.   I would like to is there any limitation on maximum number of concurrent connection in Express edition and how slow it can be when it comes to performance.

I would like to say that i have gone through some of the sql blog and MSDN BOL, but still there is some confusion in mind like.   The limitation of SQL Server 2012 Express is 10 GB. It is the limitation of instance based or per database based? No. of connections for SQL Server 2012 Express: the number of connections is limited or unlimited.  If I shall use Server version of OS then what can be the max concurrent user connections. The limitation comes from DB level or OS level. If I shall use Windows Server 2012 R2 with SQL Server 2012 Express SP1 then what will be the max concurrent connections? How many databases can we keep under the hood of single SQL Server instance.   Any help or suggestion would be appreciated


If a body A is revolving about an axis with moment of inertia (MOI) $I_1$ with angular velocity $\omega_1$, and rotating about its centre of mass with MOI as $I_c$ with angular velocity $\omega_2$, how would we calculate the kinetic energy of the body?  E.g., a disc with radius R is revolving about an axis $3R$ from its centre, and is simultaneously rotating about a parallel axis through its centre of mass (let's say perpendicular to the plane of the disc for simplicity) with angular velocities $\omega_1$ and $\omega_2$ respectively.

I think I've a conceptual lacuna that needs to be filled, when it comes to a rigid body possessing angular velocities along more than one axes.  Here's my doubt -   Consider the following solid cone (mass $m$), with semi-vertical angle $\alpha$ and radius $r$, rotating about the Z axis with some angular velocity $\omega$. The axis of the cone, is always at a height equal to its radius, from the XY plane.     1. How is the total kinetic energy of the cone calculated?  2. How is the angular momentum of the cone calculated? (about Z axis, for example)  My doubt is not limited to the above question, which has been taken only for the sake of an example - and I believe a solution to the above question will help me understand the concept better.   While calculating the kinetic energy of a rigid body rotating about more than one axis, what exactly is done and WHY?  The translational kinetic energy is $\dfrac{mv²}{2}$, where $v$ is the velocity of the center of mass; and the rotational kinetic energy is $\dfrac{I\omega²}{2}$, where I is the moment of inertia about the center of mass (really? not sure) and $\omega$ is the angular velocity about Z axis (or is it the resultant angular velocity of the body?). Also, is the moment of inertia supposed to be about an axis through the center of mass, or about Z axis?   It's a mess, in short. Please explain the solution of the problem, and also the concept in detail. Thanks a lot!    For greater clarity as to what area I face problems in, I add a second problem too, in which the body posseses angular velocities about three axes.     You may assume the necessary moments of inertia, and dimensions for the above object. Just want to know how it's done, the approach, more than the exact answer.


Prove or disprove that $n^3-n$ is divisible by $6$, without using induction   I have no idea how to go about this.  I should add that n is an integer. I started by looking for some  integer that was a single case disproving it, but I couldn't find one.   Any help/suggestions are welcome!

As part of a larger proof, I need to show why $a^3-a$ is always divisible by $6$. I'm having trouble getting started.


I have ridden this horse a lot and have stopped getting thrown off, but I never got any hearts. Even Golden Apples and Golden Carrots don't give me hearts like the Minecraft wiki says they will when fed to a tamed horse. Am I doing something wrong?

When Minecraft 1.6.1 was released, there were donkeys, mules, and horses added to the game. I have spawned a couple of horses using the spawn egg on creative and tried to ride one but I get thrown off straight away.   I'm guessing that I have to tame it but approaching it with a carrot doesn't seem to cause any reaction. If I try sneaking up behind it the horse just rears up, preventing me from putting the saddle on it.


It is known that a shadow can travel faster than the speed of light and break no known laws of physics, because it is not an actual thing.  A shadow is just the blockage of light. However in the following statement "Maximum speed is finite: No physical object, message or field line can travel faster than the speed of light in a vacuum.",  my questions concerns the message portion of this statement.  Why can't a shadow be a message?  Batman gets his messages from shadows i.e. the bat signal, all the time.  I'm not a scientist, obviously,  so I know there is something I am missing here?

I have seen many folks doing this  concluding that shadow from point A on the Moon can travel to point B on the Moon faster than light.  What I fail to understand here (and I am sure I am wrong), is nothing can travel faster than light. I also read about Relativity where Einstein stated that every event happening for you depends on how fast the light gets from where the event is happening to you.  This is my particular problem with this Moon shadow experiment. You cannot make a shadow travel faster than light, because in order for the "disappearance" of light to get to the Moon, it has to travel at light speed.  Here is one way to understand my point. Consider we shine a flashlight on Moon, like the guy in the linked video did, we move the finger across the face of the flashlight, before we moved the finger it was casting the shadow at Point A on Moon, after we finish moving our finger, the shadow is at Point B on the Moon.  When the finger reaches the end of it's moving length, the light waves that have left the flashlight before the finger reached there will have to hit Point B and it will take them a second and a half to get there, and another second and half for us to see that shadow on point B, which makes it 3 seconds + finger moving time for us to actually see the shadow at point B. That means shadow traveled (say) across the diameter of the Moon in 3 seconds.   So. about 3000 Km in ~3 seconds make it 1000 Km per seconds which is very tiny compared to the speed of light. How can these experiments conclude that Shadow could be made to travel faster than light? What is the obvious clue that I am missing here?


I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.

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?


Evaluate the integral $$I=\int_0^{\infty}\frac{\log x}{x^2-1}dx$$   Attempt: $$I=-\int_{0}^{\infty}\log(x)\sum_{k=0}^{\infty}x^{2k}dx=-\sum_{k=0}^{\infty}\lim_{n\to\infty}I_n$$ where $I_n=\int_{0}^nx^{2k}\log(x)dx$.   For computing $I_n$, let $u=\log(x)$ and $dv=x^{2k}dx$. Then $du=(1/x)dx$ and $v=x^{2k+1}/(2k+1)^2$. So,  \begin{equation} I_n=\frac{x^{2k+1}}{2k+1}log(x)-\frac{x^{2k+1}}{(2k+1)^2}\Bigg|_{x=0}^{x=n}=\frac{n^{2k+1}}{2k+1}log(n)-\frac{n^{2k+1}}{(2k+1)^2}-\lim_{x\to 0^{+}}\Big(\frac{x^{2k+1} }{2k+1}\log(x)\Big)\end{equation} On the other hand, $$\lim_{x\to 0^+}x^{2k+1}log(x)=\lim_{x\to 0^+}\frac{1/x}{1/x^{2k+1}}=\lim_{x\to 0^+}\frac{x^{2k+1}}{-2k-1}=0$$ So we have $$I_n=\frac{n^{2k+1}}{2k+1}\log(n)-\frac{n^{2k+1}}{(2k+1)^2}$$ Now we need to compute $\lim_{n\to\infty}I_n$. But I'm stuck here. How can we compute this limit? And can anyone check my attempt? Thanks!

I have to calculate $$\int_0^\infty\frac{\log x dx}{x^2-1},$$  and the hint is to integrate $\frac{\log z}{z^2-1}$ over the boundary of the domain $$\{z\,:\,r<|z|<R,\,\Re (z)>0,\,\Im (z)>0\}.$$  I don't understand. The boundary of this domain has a pole of the integrand in it, doesn't it? Doesn't it make this method useless?


i have 1GB micro SDcard, earlier used that one in mobile phone, when i try to format that using card reader got error message, "can't write to dev/sdb, because it is opened as read-only" but able to format in android phones, i tried in windows and ubuntu, unable to format in both os. then i tried this command : sudo fdisk /dev/sdb  Welcome to fdisk (util-linux 2.34).     Changes will remain in memory only, until you decide to write them.     Be careful before using the write command.  fdisk: cannot open /dev/sdb: Read-only file system  How to fix this issue, and i tried some other micro SDcards the result is same, all sdcards in read-only mode.

I have a MicroSD card reader in my notebook. When I insert a MicroSD memory card into it, I can't write any data on it - it's read-only. The same thing happens when I try to do it under root. And I can't change the permission policy for it. This problem happens for all microSD cards (I've tested 2 cards). I've encountered it on Ubuntu 12.04 LTS, now I'm on Ubuntu 12.10, the problem is still on it's place. When I try to insert such a "read-only" card in my mobile phone, everything's OK and I can write data on it. So, can anybody tell me, how can I write a data onto the card?  UPD: here's fdisk -l output:  Disk /dev/sdc1: 2013 MB, 2013135360 bytes 62 heads, 62 sectors/track, 1022 cylinders, total 3931905 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000   Device Boot      Start         End      Blocks   Id  System   The file system of the card is msdos. As to me it's weird.   UPD2: I've found a small "lock" switch on my card adapter, and it turns out, that when I insert it in my notebook, it switches on. Perhaps, I have to find some glue or something to get that switch stuck...  UPD3: There was no glue near me, so I've decided to buy another card-reader.


So I am playing a new group of players and they are hoping for more of a visual aid.   Does anyone know any good places to pick up cheap figures?

I'm looking to build a collection of fantasy miniatures, preferably pewter - but I don't want to buy them one at a time from my local hobby store... Much too expensive, and they don't often carry anything I'm interested in buying, which makes it a long term venture as well. So I'm looking for ideas on how to obtain many miniatures at once, preferably for cheap. D&D Miniatures aren't a good source for me as they're collectibles, and the prices on those are also prohibitive.  By the way - they don't have to be pewter, that's just my preference. =)


I understand that it has been shown that small particles can quantum tunnel to just about anywhere in space (with decreasing probability the further out they go) since they all act as waves when they are not being observed and propagate outward across the universe. (Please correct me if I am wrong about any of that.)  Since we are made exclusively out of these same particles, does this mean that there is a non-zero probability that all of my particles will quantum tunnel at once tonight and I will wake up on the moon tomorrow?  If so, how can I find that probability?

says  Quantum phenomena are generally classified as macroscopic when the quantum states are occupied by a large number of particles (typically Avogadro's number) or the quantum states involved are macroscopic in size (up to km size in superconducting wires).  To comply with copyright laws, the following is an edited paraphrase of this reference, pp6-7.   The term “dynamical degrees of freedom” should be used carefully. Imagine a baseball moving through a wall without being compressed. Certainly, this phenomenon can be called a macroscopic tunneling; since the ball is a collection of atoms, the number of degrees of freedom is comparable to the number of atoms. Macroscopic tunneling depends on the number of microscopic degrees of freedom like the positions of constituent atoms. Collective degrees of freedom are superior: they are singled out by rearranging the microscopic ones.  Are there any circumstances under which the ball could pass through the wall via macroscopic quantum tunneling, or is this wishful thinking?


I've got a question about this topic. So, about the context. I've just watched a video and in the end, the author said thank you as follows:     Thank you for all the time you wasted on this video.   I wonder if instead it could or should be     Thank you for all the time you have wasted on this video.   Which is more suitable in this situation?

I know the rule is to use past simple when you specify the time when the described action happened, but I strangely dislike this sentence and I'm not sure if the rule applies:   "It's the best movie I saw this year".  Shouldn't it be: "It's the best movie I've seen this year"?  Please, could you justify your answers? Thank you in advance!  Cheers


I saw someone in a movie say,  I don't know the difference between "You get him off of me."and"You get him off me." Please, tell me the difference.

What is the difference when you say "get off of something" and "get off something"?


I watched a video featuring Leonard Susskind in which he took a small bowl of water and added three drops of food coloring. He swirled it around. At first you could tell where the drops must have entered the water, but after a while you could not tell anymore. He said that a cornerstone of physics is that information cannot ever be destroyed and that the information is always there -- we just cannot see it.  I see two issues here and I'm hoping for some clarification.   The particles can never be traced back to their origin. The uncertainty principle says that other particles have popped in and out of existence. These may have interfered with the particles in the water and cannot be traced back. So information is in fact lost. Let's take the same type of experiment but narrow the scope. Instead of this, I put four protons into some sort of container that can hold them. Not sure what that is or if it's more of a field, but for this thought experiment, let's just say I have a box with four particles in it. At first you know where they originated by watching them (if you could watch them). But after a long enough time, the particles will occupy the same position and spin state that they did at some point in the past. So the first time they occupied this state they trace back to your initial placement. The second time they hit this state they trace back to the first state. So you cannot actually trace them back to see where they originated in the container.   Perhaps the second thought experiment has some flaws in it but I'm hoping you can see what I'm getting at. That a duplicated state must mean that the originating positions and information is lost, and given enough time you'll always get a duplicated state.

I really can't understand what Leonard Susskind means when he says in the video  that information is indestructible.  Is that information that is lost, through the increase of entropy really recoverable?   He himself said that entropy is hidden information. Then, although the information hidden has measurable effects, I think information lost in an irreversible process cannot be retrieved. However, Susskind's claim is quite the opposite. How does one understand the loss of information by an entropy increasing process, and its connection to the statement “information is indestructible”.  Black hole physics can be used in answers, but, as he proposes a general law of physics, I would prefer an answer not involving black holes.


I want to replace multiple occurrences of 'text1' with 'text2', in '#area', here is my code that works just fine:  var replaced = $('#area').html().replace(/text1/g, 'text2'); $('#area').html(replaced);   But imagine the 'text1' is a value of an input box, so:  var search = $('#blah').val(); var replaced = $('#area').html().replace(/search/g, 'text2'); <--- HERE IS THE PROBLEM $('#area').html(replaced);   As you can see in the second line, I did /search/g but it's not working, how should I put the search value there?

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


I want a list which is a combination of list of list elements For example:  my input   x = [['P'], ['E', 'C'], ['E', 'P', 'C']]   The output should be   ['PEE','PEP','PEC','PCE','PCP','PCC']]   Any help is highly appreciated.

How can I get the Cartesian product (every possible combination of values) from a group of lists?  Input:   somelists = [    [1, 2, 3],    ['a', 'b'],    [4, 5] ]   Desired output:  [(1, 'a', 4), (1, 'a', 5), (1, 'b', 4), (1, 'b', 5), (2, 'a', 4), (2, 'a', 5) ...]


The Arabic of “Frozen” is frozen in time, as “localized” to contemporary Middle Eastern youth culture as Latin quatrains in French rap. —  by Elias Muhanna  Please explain what this comparison means. What does the writer want to convey here; how does Latin relate to French rap?

The Arabic of "Frozen" is frozen in time, as "localized" to contemporary Middle Eastern youth culture as Latin quatrains in French rap. ()   Is French rap filled with Latin quatrains? Is this what this is saying?


I read this question somewhere  Let a square of length 1 unit and a circle is inscribed in it such that it touches the sides of square.   Now cut small portion(outside the circle) of square from each corner.   As you can se the perimeter of square is still 4 after removing this portion.   Continue this process i.e. cut the square in such a way that shape of cutting square tends to the shape of circle.   Now the main thing is  Perimeter of square =$4$  Perimeter of circle= $2\pi \frac{1}{2}$=$\pi$  Since the the shape of square tends to the shape of circle  Therefore perimter of square $=$ Perimeter of circle ( or may be approximately equal to circle)  That is $\pi =4\ or\  approx \ 4$  If we take side of square of length $a,a>0$ we also reached to the same result.   Can anyone explain whats wrong in this. I am unable to figure out.   Any help appreciated.

What is wrong with this proof?    Is $\pi=4?$


Would there be a comma in the sentence after 'therefore'?    'These pipelines run for long distances and therefore(,) are susceptible to both natural and man-made phenomena. '

Is it correct to use commas around therefore in the following quote?     An important prerequisite to meet the requirements of ... is, therefore, the ability to ...   Or should I omit the first comma to make the sentence correct?     An important prerequisite to meet the requirements of ... is therefore, the ability to ...


I am still very confused on when to use who and whom, I understand the idea these sentences are correct:        He is the person who won the competition.   That is the person whom I went on holiday with.      But what would be correct in the following sentence:     This image shows a patient who is... or whom is?   Would it be who because the patient is the subject, or is it?

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


In the IEEEtran class, how can I achieve the "small caps" font effect used for e.g. stating the names of IEEE societies and publications, and the section titles (see example below)?   Thanks and regards, Jorge.  P.S. The class can be found .  Example font I'd like to achieve:   Example code:  \documentclass[journal]{IEEEtran} \begin{document}  \section{This is a dummy section} % Some sample text I'd like to put in small-caps font: How to, for example, put \emph{this text} in the same font as the section title?  \end{document}    Output of example code:

I want to know how can I achieve this effect in LaTeX:    Basically it looks like this: {F}IRST {L}ETTER, where the letters in the braces are a little bigger than the other ones but they all the letters are uppercase.  Any suggestions?


I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question: