I have a Drupal 8 (served via Apache) site with clean URLs enabled, however, I'm having an issue where every page is accessible over two URLs, for example example.com/index.php/example and example.com/example.  I would like to redirect the URLs containing index.php to the other URL. I'm also open to suggestions to completely disable pages being served over the first type of URL.

I have a Drupal 8 site with clean URLs. Recently, URLs are similar to example.com/index.php/page-url-alias. The page still loads correctly, but I don't want the index.php part to be indexed.  If I empty the cache, the URLs are shown correctly.  How can I force Drupal not to add index.php in the URLs it generates?


Let $f: \mathbb{R} \to \mathbb{R} $ be a differentiable function. Is it true that $f$ is strictly increasing on $\mathbb R$ if and only if $f'(x) \geq 0$ on $\mathbb R$ and the set $X = \{x \in \mathbb{R} \,| \, f'(x) = 0\}$ is countable?

The following result is well known:     If $f$ is continuous on $[a, b]$, differentiable on $(a, b)$ and $f'$ is non-zero on $(a, b)$ then $f$ is strictly monotone on $[a, b]$.   However if the derivative vanishes at a finite number of points in $(a, b)$ and apart from these derivative maintains a constant sign in $(a, b)$ then also the function is strictly monotone on $[a, b]$ (just split the interval into finite number of intervals using these points where derivative vanishes and $f$ is strictly monotone in same direction in each of these intervals).     Let's suppose now that $f$ is strictly monotone and continuous in $[a, b]$ and differentiable in $(a, b)$. What can we say about set of points $$A = \{x \mid x \in (a, b), f'(x) = 0\}$$ Can it be infinite? Can it be uncountable? How large the set $A$ can be?


I am currently writing a document using \documentclass[a4paper]{article} (very classic, good and all).   But I want to change it to a continuous page, a bit like a TP roll. Any idea how?

Well, may be this is not really useful, but I've thought if it was possible to put all the document in one long page. I mean, if your document is going to be read in a computer, mix all the pages in a continuous page. If your document has 90 pages (A4), where each one is 21cm by 29.7cm the continuous document should be (more or less) one page which is 21cm by 90 · 29.7 = 2673cm. Is this possible? EDIT: Some things I would like to achieve:  The \newpage, \chapter{}, \part{}, etc. shouldn't go to a new page, they should only add more vertical space. The package pdfpages should add the pages continuously with almost no space between them. The titlepage, in this case, has a different color, so it could go alone in a basic A4 page (just to make things easier).  Question Is this possible?


I read an article about C++ language. There is lines using "^", not XOR. Sample code is like:  array<String^>^args = System::Environment::GetCommandLineArgs();

I just came across this code and a few Google searches turn up no explanation of this mysterious (to me) syntax.  Hashtable^ tempHash = gcnew Hashtable(iterators_);  IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator();   What the heck does the caret mean? (The gcnew is also new to me, and I asked about that .)


I'd like to assign hotkeys to certain actions, like for example "Extrude Individual Faces"? Is there a list of all possible commands somewhere?  For example, in this picture "view3d.edit_mesh_extrude_move_normal" is the command or function. So where can I find a list of all possible commands so I can assign hotkeys to them?

I want to create a list with everything the spacebar operator search can produce. Is that possible?


Since rendering breaks up an image into separate chunks for each thread, would it be possible to offload some of those threads into the network and have other machines do the work?

I'm working on architectural visualisations, and I can't imagine more useful feature. How render farms for rent do that?


Is it possible to restore files/directories which are deleted from terminal using rm and rm -r?. If a file is deleted from graphical interface, it could be restored from trash, but how do you restore a file if it is removed using the rm utility?.

I would like to know if there is a command I can issue in a terminal so I do not classically remove (rm) the file, but instead move it to trash (i.e. Nautilus Move to Trash behavior).  In case there is such a command, I would also be interested in knowing what it is.


In my product am using a modeless dialog box with “OK” and “Minimize” button. Where I can place these buttons on the Top Left or Top Right? If I place on the Top Left it shows am focused only on the Mac Users. Is there any standards?

In most windows desktops the minimize, maximize and restore buttons for a window are placed in the windows decoration on the top right. However, MacOS and now Gnome in Ubuntu have placed those buttons on the left.  What is the important aspect when deciding where to place them? Is user expectation from previous experience the most important aspect, or are there other independent aspects that relate to where the user would first look automatically? Is there a difference for localizations where the letters are written from left to right, or from right to left?


Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Is there any difference at all between these two sentences? Why would a native speaker choose one over the other?  a) She had suffered from asthma when she was very young.  b) She suffered from asthma when she was very young.  Thank you.  Nawee

I noticed that my American friends tend to use the past perfect form when they use the verb mention in its past form, almost despite of the context of the sentence. I hear them say  "you had mentioned" a lot more often even in situations where the use of simple past would have been perfectly fine. Have you noticed it too and is it one of those unwritten rules, or is there a more formal explanation to it?  It seems like there was more verbs like that, but I am having a hard time remembering it now. If I do, I will edit the post and likely change the title to accommodate other verbs.


If you think the title of this question sounds hilarious, you aren't alone, but that's what's happening. I've built a large complex shape (crude description, I know), and now find out that I can only view it from certain angles and certain distances. If I zoom out too far it vanishes, just as if it was passing through a pressure curtain to another world. The object is generated entirely using python code.

I'm having an odd issue - When I try to zoom in on a detail using my MMB, the "camera" in the 3D view seems to be cutting off the exterior surface of my object and showing me the inside instead. I'd expect this behavior, but only when I was much more zoomed in.  If I zoom out a bit (one click on the scroll wheel) then I can see the exterior as I intend.  Is there any way to adjust this behavior?  Thanks!


There are lots of questions tagged  that don't have a  response.  How do we interpret this? Is it because they are declined by default? We just have to wait for a response (the team is very busy)? Is Jeff the only one that reviews this questions?  I suppose the ones that have negative votes may (or may not) be declined by default, but there are quite a few with some to a lot upvotes that should have an official answer.

I'm not too familiar with status-tracking in general, but it seems tags exist to cover all states of these questions: -deferred, -bydesign, -planned, -declined, -completed, -review; -norepro, -reproduced.  Yet not every feature-request or bug question has one of these collectively inclusive tags.    So... why not?  Is it just a matter of convenience?  What does the default state of having no status tag mean?  That it is just a bad question?  Or that there's no consensus yet?


A friend of mine who is an official teacher, applied for a visa to Germany and got refused because of the motif #2 saying:  The purpose and conditions of the intended stay have not been established   The file was full of papers, the original invite from her son in law was in the file, and even a high amount of money in the bank account.  What is extended explanation of this motif and how can she pass it in her next apply.

Schengen refusal formulae can be difficult to understand sometimes.    When an applicant receives a refusal with "Justification for the purpose and conditions of the intended stay was not provided", what does it mean?


So I’m achievement hunting Skyrim, on my best save, I have 10/15 daedric artifacts needed for “Oblivion Walker”. So I don’t want to make a new build, but for the quest “Pieces of the Past”. I need Silus Vesuius alive, I kind of killed him right when I got the quest, thinking I could just take Mehrunes Razor for myself. Well I just realized (42 levels later) that you can’t do that. Is there anyway to get the Razor without starting from scratch?

I am playing through Skyrim on the Xbox 360 and have 49/50 achievements competed. Earlier in the game, to gather a 1000 gold bounty in every city, I went into Dawnstar and slaughtered the first few guards I saw. Without realizing it, my companion killed the leader of the museum.   My last achievement, "Oblivion Walker", was to complete 15 Daedric quests. I completed 14/15, and then saw that I still had "Pieces of the Past". I went to try and start the quest, but was unable to. I searched through Dawnstar, but could not visit the measure any longer.  Do I need to restart my game from a previous save before my companion slaughtered the museum leader? If so, do I need to have all 15 done at the same time, or will I get the achievement upon completion of that quest?


I'm very new to scripting in blender, and I'm making an addon to simplify the depth of field process in Blender. I would like to put a slider in my ui panel to control the camera's aperture. I think I need to use a .prop function but I'm not sure. Can I have some help with this? Here is the code for my ui panel: def draw(self, context):     layout = self.layout     camera = bpy.data.objects['Camera']               row = layout.row()     row.label(text= "Focus", icon = "CAMERA_DATA")     row = layout.row()     row.operator("object.add_focus")     row = layout.row()     row.operator("object.remove_focus")     row = layout.row()     row.prop(camera, "dof.aperture_fstop", slider=True)  The last line is the one I don't know how to do. Here is what my UI panel looks like so far:  Thanks!

So if I have this custom panel in the 3D view, is there a way I can take a property from for example the properties window and paste it onto my panel below the "text" prop, without creating a new property?  The reason I do not want to create a new property is because I want them to share all data, such as values, keyframes, drivers etc.        bl_info = {     "name": "",     "description": "",     "author": "",     "version": (0, 0, 1),     "blender": (2, 70, 0),     "location": "",     "warning": "",      "wiki_url": "",     "tracker_url": "",     "category": "" }  import bpy  from bpy.props import (StringProperty,                        BoolProperty,                        IntProperty,                        FloatProperty,                        FloatVectorProperty,                        EnumProperty,                        PointerProperty,                        ) from bpy.types import (Panel,                        Operator,                        AddonPreferences,                        PropertyGroup,                        )   class inouse_Settings(PropertyGroup):      my_bool = BoolProperty(         name="Enable or Disable",         description="A bool property",         default = False)     class UV_OT_my_panel(Panel):     bl_space_type = 'VIEW_3D'     bl_idname = "UV_OT_my_panel"     bl_label = "Custom"     bl_category = "Custom"     bl_region_type = 'TOOLS'      def draw(self, context):          scn = context.scene         mytool = scn.inhouse         layout = self.layout          col = layout.column(align=True)         row = col.row(align = True)         row.prop(mytool, "my_bool", text="Text")       def register():     bpy.utils.register_module(__name__)     bpy.types.Scene.inhouse = PointerProperty(type=inouse_Settings)  def unregister():     bpy.utils.unregister_module(__name__)     del bpy.types.Scene.inhouse  if __name__ == "__main__":     register()


I have list = [1,0,1], but each number in the List are of type String. I do    if ( String.join("",list) == "101"){      return true }   As you can see, these to Strings are equal but it won't return true.

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?


I read in some places on the 'net that the dipthong/digraph æ is pronounced like the "a" in "cat." But all the words I know that contain that word pronounce with the tongue more forward, closer to  a short "e." "Aesthetic," Encyclopaedia," "archaeology." I would go so far as to say it is not so far from the long "a" as in "day."  Can someone clear this up, using language for a non-linguist (someone who would generally not know a digraph from a dipthong, which I had to look up)? I am hoping it is a little more cool and "European" than just "cat."

The Encyclopædia Brittanica still uses the symbol "æ". However, I still hear everyone pronounce it as "Encyclo pee dia", when their spelling suggests more along the lines of "Encyclo pah dia" or "encyclo pay dia". In a more general sense, should æ or Æ always be pronounced as a long e sound? When I see it used, it is in dæmon, æther, or æon.    makes it clear that they should be pronounced with another sound along the lines of ah or eh... confusing because I want to pronounce it as "ai" or "ay". Given the name "Aion" as a recent videogame, and the common pronunciation of a CS mailer-daemon as "Daymon", clearly others behave the same way.  The problem lies in that  æ used to be pronounced as ah/eh, and now seems to be pronounced as ay. Encyclopædia is the only exception... being pronounced as ee?  How do I pronounce it when seen in English? ee, ay, or ah/eh?


I have run following code. I expected that elements of list c will not refer to a, but be a copy os list a, but the result contradicts. Why? >>> a = [[]] >>> b = a *3 >>> c = a[:] *3    // should create a copy of a three times >>> b[1].append(6) >>> b [[6], [6], [6]] >>> c [[6], [6], [6]]    // but it is referring to a

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


Hi guys got a problem with a database.  I've been asked to perform some indexing and delete queries on a live database, so first of I wanted to get the database to our dev server so I can test out some things before I commit to live.  Unfortunately the dev is SQL Server 2008 and the live is SQL Server 2012. So I've had to try and downgrade the database.  Database is a lovely 33gig. and I've started to use the generate script wizard to create a 2008 version.    Problem is it gets so far then errors on random tables. So far I have no idea what to do to solve the issue. In the advanced settings of the wizard I select schema and data (yup going to be huge)  Error is due to my pc running out of disk space. I have a problem, how do I recreate this DB in 2008 that's both fast and easy? generating the script like that hasn't worked.  Open to ideas guys!

Database files that are built using SQL 2008 are not compatable with 2005. Is there a work around?


I want to check whether string below contains top/ TOP/toP/ Top/TOp/ Top in c#. My code is like  string str = null;         str = "CSharp Top11111 10 BOOKS";         if (str.Contains("top") == true)         {             Console.WriteLine("The string Contains() 'TOP' ");         }         else         {             Console.WriteLine("The String does not Contains() 'TOP'");         }   But it return true only when my string contain 'top'. How can return true for all other scenarios too? I know this may be simple, but I searched a Lot didn't find any solutions

Is there a way to make the following return true?  string title = "ASTRINGTOTEST"; title.Contains("string");   There doesn't seem to be an overload that allows me to set the case sensitivity.. Currently I UPPERCASE them both, but that's just silly (by which I am referring to the  issues that come with up- and down casing).  UPDATE This question is ancient and since then I have realized I asked for a simple answer for a really vast and difficult topic if you care to investigate it fully. For most cases, in mono-lingual, English code bases  answer will suffice. I'm suspecting because most people coming here fall in this category this is the most popular answer.  answer however brings up the inherent problem that we can't compare text case insensitive until we know both texts are the same culture and we know  what that culture is. This is maybe a less popular answer, but I think it is more correct and that's why I marked it as such.


I am trying to write a program that creates a file (if it doesn't exists yet) and then writes a text in it. My code looks like             with open(("test_program/files/{}.txt").format("houses"), 'w+') as f:                 w = csv.writer(f)                 w.writerow([('This is the file with houses')])  But I get the error FileNotFoundError: [Errno 2] No such file or directory: 'test_program/files/houses.txt'  I am using python 3.6

What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried:  import os  file_path = "/my/directory/filename.txt" directory = os.path.dirname(file_path)  try:     os.stat(directory) except:     os.mkdir(directory)         f = file(filename)   Somehow, I missed os.path.exists (thanks kanja, Blair, and Douglas). This is what I have now:  def ensure_dir(file_path):     directory = os.path.dirname(file_path)     if not os.path.exists(directory):         os.makedirs(directory)   Is there a flag for "open", that makes this happen automatically?


I want to crop same portion, say rectangular areas from multiple image files which are located at same place in all files. Is there anyway to do it in GIMP? and I also have to do it regularly. Can I save a template for this action.  I've read  .I don't know if it is the same problem or not

I have several pictures that are exactly the same except for some small variations. It was one picture that was photoshopped in several different ways. Now, I need to crop them all (13 in total) but I need to crop exactly the same part of it. It needs to be pixel perfect.  How do I do that with Pixelmator?


I am starting to develop for all three major mobile platforms (Android, iOS, and Windows UWP), and have run into a UX issue a few times. Each platform has it's own design guide. Android has Material, Windows has Metro (I'm not sure what iOS's is called). Each design looks really good on its platform and only its platform. For example, Material looks beautiful on Android, but it would seem odd on iOS.   Now, I would like to follow these guidelines, and design per platform, but I feel that users would like it better if the app had a consistent design across all platforms. Furthermore, I also develop web apps, and since the web has no real "design guide", I would have to make yet another design. I could choose one design and make it universal across all platforms, but I feel like I would be performing some sort of "bad practice" to not use Metro and Material, and so on (plus, it may end up being harder to design and might look out of place).  In this scenario, what should I do? Use native styles for the different platforms, or create a single style, to be used across all platforms.

I'm not completely new to developing apps, but I'm at a point where I'm trying to develop something and deploy it on several mobile platforms. To only concentrate on two major ones, suppose I'm developing an app for Android and iPhone and designing UI and the general user interaction architecture. Both platforms give guidelines as to how their UIs should work. For example, most iPhone apps have the Navigation Bar (the one that says Testing 1 and has a Back button)    and an Icon Bar    for navigating a program, while Android uses an Options Menu fetched via a Menu button    and the "back" navigation is handled with the physical Back button on the device.  I've seen many apps that try to force the same UI on every platform. For example, custom-building an iPhone style Icon Bar and putting it in their Android apps, but it just doesn't quite look right to me and it feels like it violates UI design guidelines somewhat.  Are there any good design patters for implementing something sufficiently similar on both platforms, yet still platform-specific enough so that the user would not feel out of their comfort zone? What do people usually do in these situations?


The Distributive Law is that $(a+b)c = ab + bc$ and that $a(b + c) = ab + bc $. I'm wondering whether there is a proof of why it is true? I know it's a logical statement and a law, but Bertrand Russell and Alfred North Whitehead did prove that $1 + 1 = 2 $.

I have always taken these kinds of things for granted. Well of course $a(b+c)=ab+ac$! But why? The thought randomly popped in my head, and I realized that I could not prove it.  Perhaps we should take some time to prove these "obvious" things. I feel like if I cannot prove it, then I do not fully understand it. I would really like a proof of this most basic law, because I have been pondering over it for quite a while. Thanks!  Edit: This proof is for real numbers.


In recent months, my electricity bill has been steadily going up, from 20% to 40% to, now, 100%. It's doubled.  I don't see any appliance running continuously except several ceiling fans. All my appliances are regular, meaning what one would find at home, such as fridges, cooktop, water heater, oven, lights, etc. There is a pool pump I turn on and off daily.  Where should I start to tackle the problem? I have divided this problem into two categories: house appliance problem and meter problem. I'd like to see if this is appliance problem first and deal with the meter separately. The meter is read monthly on the 20th. So, the bill jump is real, not estimated.

This might be subjective, I don't know. However, it's a serious problem for me. My electrical bill is outrageous. It's three times as large as my next-door neighbor, and four or five times the size of my neighbor's across the street. It's worse in the summer (I live in central TX), but I've had the air conditioner inspected, and while the house is right at the maximum capacity for our unit, the unit should still be able to take care of the load. That also doesn't explain why our winter bills are larger than the comparables.  What I would like to do is check the amount of current drawn by each running appliance and calculate where all my money is going. I just don't know how to go about doing this.


so I tried upgrading my Lion os to High sierra and I saw one video on youtube saying that I need to download the El captain in order to update my Macbook Air 2012. After downloading, the installer started to crash and it says that "No packages were eligible for install." I decided to quit the installer but it asked me for a startup disk however there was no option for me to choose from. So whenever I try to restart it, it directly leads me to the installer not allowing me to be back at my screen. Please help me how to fix this thank you very much!

My problem is that my Mac starts up to the "El Capitan" installer. After restarting several times, OS X is still on screen telling me that "no packages were eligible for install". Can someone help please, and can you bear in mind that I’m not technically minded so keep instruction in simple terms.


The  description has this to say:  A sorcerer casts arcane spells drawn primarily from the sorcerer/wizard spell list. She can cast any spell she knows without preparing it ahead of time. To learn or cast a spell, a sorcerer must have a Charisma score equal to at least 10 + the spell level. ... She can cast any spell she knows at any time, assuming she has not yet used up her spells per day for that spell level.  As a Sorcerer, you get bonus spells based on Charisma. In my case, I rolled an 18 at the start, invested points at levels 4 and 8, got 2 point for being an Ifrit(racial bonus), and I'm wearing a . This gives me a Charisma stat of 26. The  shows I get, among others, a Level 7 and a level 8 spell slot. However, I recently obtained Craft Wondrous Item, which lets me make . Lets's say I craft a Page of , a Level 7 spell. Despite not knowing it, I can do that by taking a +5 on the DC, and taking 10 on the spellcraft Crafting check. Would this allow me to cast Limited Wish? I have a spell slot of the appropriate level (higher, even), and I have the page to make the spell "known" to me. While the answer is the same, this question is different from  because that one is about metamagic, and this one is about Page of Spell Knowledge. There will be few if any search queries turning up both questions (and that one certainly didn't show up in the "similar questions" list when I asked this one).

This question is inspired by discussion , about how Heighten Spell works with Reserve Feats.  The question that I am asking here deals with whether or not players can cast spells using spell slots for spell levels that they don't have access to yet.    I feel like an example would explain this concept best.  Take Xylitol, the first-level wizard with an intelligence of 18.  He has 5 0th-level spells per day and 3 1st level spells per day from his class.  He also has 1 bonus 1st level spell per day from his high intelligence.  The  table says that he also has 1 bonus spell of each 2nd, 3rd, and 4th levels.  The question is this:  Can Xylitol cast 1st level spells using the bonus slots for his 2nd, 3rd, and 4th level spells?  He clearly can't cast spells that are inherently higher level than 1st, since he can't learn them, but can he cast 1st level spells using bonus 2nd, 3rd, and 4th level slots?  This has come up on these boards before, .  What I'm looking for here is a clear rules citation that clarifies this one way or the other.  The wording in the section on ability scores makes it quite clear that characters cannot cast spells that are actually higher level than their class allows them to cast, but it is not clear that these higher level slots are barred until the appropriate spell level is unlocked.  If a character has access to a spell level that they can't use because their ability score isn't high enough, they can freely use those slots for lower level spells, so why can't they use their bonus spell slots for lower level spells?  As KRyan's answer says, the Basics section covers this.  Based on questions and comments both here and elsewhere, that section seems to be worded ambiguously enough that it's caused confusion.  I'd like to find another, more clear wording to this rule if at all possible.  Answers from either D&D 3.5 or Pathfinder are acceptable, but please note which one your answer applies to.  N.B. I'd like to note that I personally don't feel that players should have access to higher level slots like this.  There are a large number of locations where it's heavily implied that this is not the case, but I feel that finding a clear rules citation here would be helpful.  I can't find one that is clear for either interpretation here.


I saw  that the user had self-answered by editing the question. I pointed out that they should really answer the question. I know they wouldn't be able to straight away, but I assumed they'd tried and got the "you need to wait a bit" prompt. However, what I didn't realise was that the message says:  Oops! Your answer couldn't be submitted because: Users with less than 100 reputation can't answer their own question for 8 hours after asking. You may self-answer in 7 hours. Until then please use comments, or edit your question instead  (my bold). Should we really be suggesting that people put the answer in the question even as a temporary measure? What's the next step for this? Is there any agreement that this phrase should be removed? If there is how do I turn it into a feature request without asking a new question? Should I just ask a new question which is a feature request?

It's not uncommon to find new users editing or commenting on their questions with something along the lines of "Update: I solved it by Xing the Y with Z" instead of posting their solution as a self-answer. This is an ongoing issue that I think isn't helped by the 8-hour delay for new users (<100 rep) between posting a question and self-answering.  This delay has been in place , though not having encountered it personally, I only learned of it this morning. The message shown to new users attempting an early self-answer is:     Oops! Your answer couldn't be submitted because: Users with less than 100 reputation can't answer their own question for 8 hours after asking. You may self-answer in [ N ]  hours. Until then please use comments, or edit your question instead.   Emphasis mine. So, what action is this message specifically recommending? Before you answer, make sure you've got your "new user" hat on, because only new users are seeing this message at all. And when they see this message, it's because they clicked the "answer" button, which - despite its frequent misuse - suggests that they may actually be trying to answer the question. So it should come as no surprise when a well-intentioned new user :     The error message from Stack Exchange told me to try just editing my question to include my answer...   The purpose of the feature is explained (or intuited) at greater length in , which notably includes the following:     If you want to respond to another user's answer in order to to ask for clarification or additional help, you should leave a comment (new users can always comment on their own questions). If someone asks you for additional information, you should edit your question to include that information.   That's a good explanation. It's clear, brief and identifies specific uses of comments and edits. If prompt self-answering is a trigger for the system to step in, apply the brakes and deliver some important knowledge and if we've identified this as an opportunity to educate new users, that's the type of message they need to see - not something akin to:     Oops! You couldn't drive that nail because: Users who have built fewer than 10 birdhouses can't use the hammer for 8 hours after opening their Acme Birdhouse kit. You may drive a nail in [ N ] hours. Until then please use the screwdriver or chisel instead.   So here I am, just back from the hardware store with a bag full of nails, and that screwdriver looks pretty sturdy...  I'm not the first to point this out as potentially confusing; Benjamin Gruenbaum said much the same thing in a nice answer last year to :     A user reading this might understand "You should edit your question instead of posting a self-answer". I think a better phrasing is needed.   Well, Benjamin, I agree - so here's a feature request. Let's revise this message so that it doesn't mislead new users into thinking that self-answers are ever appropriate to leave as comments or edits to the OP.


I am currently shell scripting and I would like to know how to make a - option while making a function. When you would execute a command similar to the following:  test -f   Here is the function I am using:  function test() {       echo $1;       echo $2; }   How could I add a -t for echo twice option?  Input:   test -t Hello   Output:    Hello   Hello   I am using iTerm and oh-my-zsh.  Thanks, base2101

I wish to have long and short forms of command line options invoked using my shell script.  I know that getopts can be used, but like in Perl, I have not been able to do the same with shell.  Any ideas on how this can be done, so that I can use options like:  ./shell.sh --copyfile abc.pl /tmp/ ./shell.sh -c abc.pl /tmp/   In the above, both the commands mean the same thing to my shell, but using getopts, I have not been able to implement these?


If we have $\Sigma\frac{1}{n}$, why do we say it is divergent? Yes, it is constantly increasing, but after a certain point, $n$ will be so large that we will be certain of millions of digits. If we continue to let $n$ increase, we will end up with a number so large in the denominator that there will be an infinite amount of digits locked into place. What we would have left would just be an irrational number, correct? $\pi$ is an irrational number, but we still consider the value of that to be know. The common estimation of $\pi$ is 3.141592, and we can calculate it past 1,000,000 decimal places, so why can we just assume that we know the first few million places of the harmonic series, slap an irrational label on it, and call it a day? After all, the series $\Sigma\frac{1}{n^n}$ is convergent, and it basically does the same thing, it just gets there a lot faster.  I feel like argument has probably been made before, so I feel like there's probably a proof somewhere proving me wrong, if someone could point me to that.

Can someone give a simple explanation as to why the       $$\sum_{n=1}^\infty\frac1n=\frac 1 1 + \frac 12 + \frac 13 + \cdots $$   doesn't converge, on the other hand it grows very slowly?   I'd prefer an easily comprehensible explanation rather than a rigorous proof regularly found in undergraduate textbooks.


In my model, I find when I set weight decay to 1, and get the best result in validation set and testing set. However, setting high weight decay means keep the weights low, and the most models set it to 1e-4 or smaller. Is it reasonable to set the weight decay value to 1?

I am using the ADAM optimizer at the moment with a learning rate of 0.001 and a weight decay value of 0.005.  I understand that weight decay reduces the weights values over time and that the learning rate modifies to weight in the right direction. Does it makes sense to have a higher weight decay value than learning rate? Or will the weights go faster to zero, than that they learn?


Assuming there is no huge visible fungus, inside, how to verify whether the second hand lens is affected by spores?  It is said that spores don't die and fungus may regrow. Also it is said that if we keep fresh lens with infected lens, fungus will spread.   Assuming it has tiny fungus, will it still spread if I keep it in hygienic conditions?  How to verify whether the invisible/removed fungus in the second hand lens is dangerous?  What are the signs that the white particles inside the lens are just dust and not fungus?  Basically I want to understand how to identify fungus when it doesn't look very obvious.

I bought a used Sigma lens on ebay for my back up camera and it was said to be in "mint" condition. I got it today and look it out of the box to look at it and I was horrified to see that the front glass looks like it has frost inside it! Is this fungus? I have never had or seen fungus before. If this is fungus can it contaminate my camera or infect my other lens if I switch them out?


I have a small problem with my blender lately. I want to make some compositing with my compositing nodes but the problem is, blender won't show me the preview Image. I have a Screenshot for you guys.    The preview Image itself is enabled, but it just won't show.  Thanks for your help in advance!  -Marten

In a brand new project, I'm getting a white "X" instead of the backdrop preview. I can only find one reference to this online, with no solution given. I'm very new to the compositor, so apologies if I'm missing something obvious, tutorials give the impression that it "just works".    As a side note, I'd love to get these per-node previews shown in the video on the left, which I also can't find in the docs.  Cycles engine and "Blender render" have the same problem. Rendering normally or with the "Rendered" viewport shading works fine.  Thanks in advance!


I'm really new in Ubuntu. I never used it before. Any time I face any kind of problem of needing I hit google bar and I get solution from askubuntu.com.  But this time I failed to find solution of equalizer for Ubuntu 17.04  Isn't there any?? :(

What I am looking for is to have system wide implementation of sound enhancements like bass boosts, echoes, Fidelity, Stereo enhancement and so on.  Audio Video players have their own equalizer but they enhance only the audio / video files they are playing.  So to enhance sounds playing such as: YouTube, Spotify, System Sound, etc. I need a enhancer software. Back in Windows, I used to use SRS HD audio lab to do the same.  P.S. I have a horrible Speaker set.


Prove that the following statements are equivalent.  (a) $\lim_{x\to a}f(x)$ exists  (b) Given $\epsilon \gt 0$, there is a $\delta \gt 0$ such that if $0\lt |x-a| \lt \delta, 0\lt |y-a| \lt \delta$, then $|f(x)-f(y)|\lt \epsilon.$  (a) $\to$ (b) is easy. But I'm having trouble showing $(b)\to (a)$, actually I'm not even sure if this direction is true.  My initial thought was that I can prove this by the contrapositive. For some $\epsilon \gt 0$, suppose the limit does not exist at $a$. Then there are some sequences $x_n$, $y_n$ such that they both tend to $a$, but are never $a$, however, $\lim f(x_n)\neq \lim f(y_n)$. Then since $\lim x_n=\lim y_n=a$, we can choose a large enough $N$ such that if $n\ge N$, then $|x_n-a|\lt \delta, |y_n-a|\lt \delta$. Then we get $|f(x_n)-f(y_n)|\gt 0$.  However, I realized that I cannot prove that such $x_n$ and $y_n$ exist in the first place. From definition, the function $f$ does not have a limit at $a$ if and only if there exists a sequence $x_n$ with $x_n\neq a$ for all $n\in \mathbb{N}$ such that the sequence $x_n$ converges to $a$ but the sequence $f(x_n)$ does not converge in $\mathbb{R}$. This does not mean that I can find two sequences with different limits from the function values.  How can I solve this problem? I would greatly appreciate any help.

How to prove the following theorem?      Let $I \in R$ be an open interval, let $c \in I$, and let $f: I-{c} \rightarrow R$ be a function. Then $\lim \limits_{x \rightarrow c} {f(x)}$ exists if for each $\epsilon > 0$, there is some $\delta > 0$ such that $x,y \in I$ and $\vert x-c \vert < \delta$ and $\vert y-c \vert < \delta$ implies $\vert f(x)-f(y) \vert < \epsilon$.   I think this needs standard limit definition, sup and inf properties to prove. And I came up with a following scratch of proof:  (1) Suppose for each $\epsilon >0$, there is some $\delta >0$ such that $\vert x-c \vert < \delta$ and $\vert y-c \vert < \delta$ implies $\vert f(x)-f(y) \vert < \epsilon$. For each $r>0$, let $A_r$ = $I \bigcap (c-r,c+r)$. Then, for each $\epsilon>0$, there is some $\delta>0$, such that $x,y \in A_\delta$ implies $\vert f(x)-f(y) \vert < \epsilon$. Then I want to show there is some $a>0$ such that $f(A_a)$ is bounded.  (2) If $f(A_a)$ is bounded, then for each $s \in (0,a)$, $f(A_s) \subseteq f(A_a)$, and thus $f(A_s)$ is bounded. Define $a_s = \mathrm{glb}~f(A_s)$ and $b_s = \mathrm{lub}~f(A_s)$. Let $A = \{a_s \mid s \in (0,a)\}$ and $B=\{b_s \mid s \in (0,a)\}$. Then we know that A has a least upper bound and B has a greatest lower bound, and $\mathrm{lub}(A) \leq \mathrm{glb}(B)$. Now I want to show $\mathrm{lub}(A) = \mathrm{glb}(B)$  (3) If I could show $\mathrm{lub}(A) = \mathrm{glb}(B)$, let $M=\mathrm{lub}(A) = \mathrm{glb}(B)$, I want to show $\lim \limits_{x \rightarrow c} {f(x)} = M$.  Can someone give me some help on how to prove (1) (2) (3), $f(A_a)$ is bounded, $\mathrm{lub}(A) = \mathrm{glb}(B)$, and $\lim \limits_{x \rightarrow c} {f(x)} = M$? Thanks!


I was watching the TV series The Good Place when I came across this line:  Or he's a supernatural demon designed to torture people, who got offered his dream job and has flipped on us like a ten-stone griddle-chip.  I have been taught "who" as a relative pronoun should be used right the person it's referring to. However in this case, the word ahead is "people", which confuses me. I have looked into many online sources and could not find the explanation on this.

Is is a rule that relative clauses should be added right after the antecedent(the noun relative pronouns refer to)? What if it is confusing?   For example:  "I went for a spin with a handsome boy last night."  "The handsome boy went out with my friend."  "I went for a spin with a handsome boy who went out with my friend last night ."  "I went for a spin with a handsome boy last night who went out with my friend."


I have only had basic classroom experience with physics but I have done a lot of research on my own and I am wondering why a newly formed star or any planetary body composed purely of hydrogen will adopt any state of matter besides its gaseous state.  I understand that as you get closer to the core 'gravity increases" but wouldn't the pull from the surrounding atoms negate any effects strong enough to cause a change in state?

I am a bit confused regarding the nuclear fusion that occurs during star formation. For example, suppose there is a huge hydrogen cloud. It gets more mass and therefore pulls in more and more hydrogen, but it could just do this endlessly and get endlessly big. What causes it to stop growing? Is it because of the heat generated by the huge mass?


Theorem. $|a| - |b| \leq |a - b|$.   Are the following two proofs equivalent?     Proof I.   $|a| - |b|$ $\leq$ $|a| + |b|$ by the triangle inequality. This is equal to   $$|a| - |a| - |b|\leq|a| - |a| + |b|$$ which is equal to    $$-|b|\leq|b|,$$ which  is true. QED.      Proof II.   Using the trick that $|a| = |a + b - b|$.   Then $$|a| \leq |a -b| + |b|$$ by the triangle inequality and moving $|b|$ to the left side gives us    $|a| - |b|\leq$ $|a - b|$.   Now the first one was my way and the second one was the official answer. Is mine considered wrong because my final statement wasn't the statement they wanted me to prove? If so, how would I know that I needed to use this little algebra trick to start my proof? Or can I just write my proof backwards at least?   Just a little confused on some formality, thanks!


I noticed that /var/spool/nullmailer directory contains a weird trigger entity which is displayed in yellow and has a “|” suffix.  It doesn't seem to be a directory (at least I can't cd into it), and when I try to open it with vi, the console freezes.  What is that thing?

What do the different colours in Ubuntu's ls command mean? For example, when I type the ls command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green highlighting.   What do those colours mean, and there is any manual about all the colours?


I am trying to use the package parallel to typeset some text in two languages. The text in language A should appear on even pages, the text in language B on odd pages. I typeset  \documentclass{article}  \usepackage{parallel}  \begin{document} \begin{Parallel}[p]{}{} \ParallelLText{Hello} \ParallelRText{Hallo} \ParallelPar \ParallelLText{Hello} \ParallelRText{Hallo} \ParallelPar \end{Parallel} \end{document}   Does anybody know why the parallel package breaks the page after the first \ParallelPar? That is, why do I get 5 pages output instead of 3? Is this a feature or a bug of the package or did I do something wrong?

It's common to set an old play (e.g. Shakespeare) with annotations on the left page and reference information on the right. I don't want to do this for a play, but I would like to set a document with annotations on one page and text on the facing page.  The catch is that I want to ensure that the annotations have parallel section spacing, because the length of the annotation may be longer or shorter than the corresponding section in the document, and I don't really want to make it so that you have to switch back and forth between documents.  That is, I would like it something like this:  +-----------------+    +-----------------+ | Heading         |    | Heading         | | -------         |    | -------         | | annotation      |    | this paragraph  | |                 |    | is long         | |                 |    |                 | | Heading 2       |    | Heading 2       | | ---------       |    | ---------       | | this annotation |    | short paragraph | | is really long  |    |                 | +-----------------+    +-----------------+   Does anyone know of a package that can do this, or an alternate way to achieve the objective of lining up the document and annotations?


If $A$ is any $m\times n$ matrix then $AA^H$ and $A^HA$ are respectively $m\times m$ and $n \times n$ matrix. Then I observed that both the matrix share the same eigenvalue and if anyone has any other eigenvalue, that is $0$. I could not figure out the reason. Thanks in advance for any help.

As a part of an exercise I have to prove the following:  Let $A$ be an $(n \times m)$ matrix. Let $A^T$ be the transposed matrix of $A$. Then $AA^T$ is an $(n \times n)$ matrix and $A^TA$ is an $(m \times m)$ matrix. $AA^T$ then has a total of $n$ eigenvalues and $A^TA$ has a total of $m$ eigenvalues.  What I need to prove is the following:  $AA^T$ has an eigenvalue $\mu \not = 0$ $\Longleftrightarrow$ $A^TA$ has an eigenvalue $\mu \not = 0$  In other words, they have the same non-zero eigenvalues, and if one has more eigenvalues than the other, then these are all equal to $0$.  How can I prove this?  Thanks and regards.


I know this has probably been asked before, but I just installed Ubuntu last night and all the replies I read I honestly couldn't understand anything :p   I need to make some changes, and all of them seem to use sudo.  When I formatted the pc and installed Ubuntu, it asked me for a password and didn't give me a chance, to have no password. So I then went on and removed the password completely, when the pc was on and the installation was complete.  I then had to use sudo as I said for a couple things, but it asked for a password. I tried to put the old one, I tried to leave it blank, I also typed NOPASSWD, and other variations of that. Nothing worked. I have rebooted the pc also in between of that so for now I have no idea what to do.   Please help, it's really frustrating :(   Edit: I am not looking to reset or restore any password. All I want is to not have a password set at all, and to not be asked for one by sudo, when there is none.

Inspired by this ....  I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way).  However I was thinking; without activating the root account; how can I execute the sudo commands which will not ask for user password to authenticate.  NOTE: I want to execute sudo command without authenticating via password; only when they are executed via terminal. I don't want to remove this extra layer of security from other functions such a while using 'Ubuntu software center' or executing a bash script by drag-drop something.sh file to the terminal.


Google material guideline use Uppercase in button.    Which button do you think is more readable?      Yahoo doesn't use UPPERCASE and I find it more readable

While designing for the web or the mobile applications, a natural free flowing text can be used for the general content, but when it comes to actions... can we use CAPITAL LETTERS.


I know that this very question was asked before (more than once), but the answers don't apply here.    was the first and only one given, was accepted with 10 votes, but didn't result in the badge being awarded.  The only reason I can see is that the answer needs to be accepted after it gets 10 votes. Is that so?

Formerly List of all badges with full descriptions.  What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times?    Jump to:                    Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes.  Any badge with a *** next to it is one of 20 badges that count towards the  displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score.  Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See  for more info on what it means for a badge to be retired.       Visit the  of the  on any site to see a complete list of badges that you can filter by earned, unearned, or type.


I am trying to exclude folders from being searched in for files. It actually works relatively well.  My code looks like this: find . -type d -regextype posix-extended -regex "(./Scripts/testfolder)" -prune -o -type f -print   My problem is, however, that I would like to exclude all occurences of folder name regardless of path. Basically I want to remove ./Scripts/ part and just ignore testfolder folder, wherever it is. Can it be done by improving the regular expression?  When I run: find . -type d -regextype posix-extended -regex "(testfolder)" -prune -o -type f -print, the folder is entered and files are fetched.

I need to exclude .git from my find search. To achive that, I am using the -path ./.git -prune switch:  $ find . -path ./.git -prune -o \( -type f -o -type l -o -type d \) | grep '.git' ./.git   However, even though this skips the contents of the .git directory, it lists the directory itself. It works when I add -path ./.git -prune -o -print -a  find . -path ./.git -prune -o -print -a \( -type f -o -type l -o -type d \) | grep '.git'   Why is this necessary. I thought that both commands should have same output. The second syntax is quite ugly.


Any idea when would 16.04 images be released to AWS MarketPlace?  Thanks!

It doesn't seem to be avail on  nor I can find any when searching on AWS itself


For sake of simplicity i chose to use a type 'string' instead of 'char'. But i am supposed to lowercase the string that i read in from the input file. I did not know at the time i would not be able to use 'tolower()'. However i did find a way using 'transform'. But i cannot get it to work and cannot find example of using it with an array of stucts. Please help. And if at all possible i also have to capitalize the first letter(s) of each state so if you could point in in the right direction  would be extremely grateful.  #include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <algorithm>  struct ATdata   {    string state;    double miles;    int shelters; };  int readData( ifstream& input, struct ATdata data[] ); size_t readData( ifstream& input, struct ATdata data[], size_t MAX_ENTRIES );  int main() {     ifstream input;     char filename[256];     ATdata data[14];     int i;      cout << "Enter input file name: ";     cin >> filename;      input.open( filename );      if ( input.fail() )     {         cout << "Input file does not exist." << endl;         exit(1);     }       size_t linesRead = readData( input, data, sizeof ATdata data[], size_t MAX_ENTRIES );     input.close();     return(0);  }  size_t readData( ifstream& input, struct ATdata data[], size_t MAX_ENTRIES ) {     size_t i;     int j;     while ( i < MAX_ENTRIES && !input.eof() )     {         ATdata entry;         getline( input, entry.state );         transform( entry.state.begin(), entry.state.end(), entry.state.begin(), tolower() );         string nextLine;         if ( !getline( input, nextLine ) )         {             break;         }         istringstream iss( nextLine );         if ( !(iss >> entry.miles >> entry.shelters ) )         {             continue;         }         data[i++] = entry;     }         for ( j = 0; j < 14; j++ )     {         cout << data[j].state << data[j].miles << data[j].shelters << endl;     } } return i;

I want to convert a std::string to lowercase. I am aware of the function tolower(). However, in the past I have had issues with this function and it is hardly ideal anyway as using it with a std::string would require iterating over each character. Is there an alternative which works 100% of the time?


I have heard people say for example:     You can't do nothing to me   is it the same thing as     you can't do anything to me   If no, what's the difference?  I personally think the latter is correct. Would love to hear you guys thought on this.

Possible Duplicate:             I'm not a native English speaker, and this question may be very basic, but I want to learn English better, so don't hurt me with downvotes.  What is the difference between "I don't know nothing" and "I don't know anything"?  Do they have the same meaning or opposite ones?


When I moved house I set up my computer and when I plugged the power cord in I noticed it was sitting a bit loose but I ignored it. Last night I was on my computer and when I stood up I kicked the power cord. I heard a static sort of sound and now my computer won't turn on. The LEDs aren't glowing and the fans not moving.  Do I need to replace the power supply?

My computer powered off the other day on its own, and now when I push the power button, nothing happens. My assumption would naturally be that the power supply is done (possibly well done) but is there any good way to test this before I buy a new one?


After mentioning TikZ in , I tried to have a look here for recommended editors for TikZ. I found no list, and thus here's the question:  What TikZ editors/front-ends do you know? What can you recommend?  I guess that what I have in mind is a tool where the image can be edited using an interface similar to , and then it will generate a code snippet in TikZ. For example I know of , but I'm interested in a big list.  I am aware of the list available , as pointed by one of the answers to this , but I'm interested in some evaluation of each based on personal experience.  I suggest that each tool should has its own answer, this way this will become sort of a poll as well. Probably, each answer should contain at least: pros/cons/platform...

I found  to be a useful tool to help generate code for graphs. I suppose there must be other tools to help draw diagrams such as Sets/Venn Diagrams or Electrical Circuits (Logic Gates). Which ones would you suggest?


Chicago's combined sales tax is 10.25%.  So, a subtotal of $18.29 would end up costing $18.29 * 1.1025 = $20.1647, which would get rounded down to $20.16, right? A subtotal of $18.30 would end up costing $18.30 * 1.1025 = $20.1757, which would get rounded up to $20.18, right?  Is this correct, given Chicago's sales tax? If it is, what would be a loophole for getting a receipt totaling $20.17?

I am confused about calculating Massachusetts Sales Tax (6.25%).  Is there such an amount, that when added to its sales tax, equals $200?  The reason I ask is because my business has been charging $200 for things and we said tax was already included.  How do I reconcile this?


Im testing the dynamic changes of ID from dynamically added input fields. price0 ID works but price1 doesnt work. how to fix this?  $(document).ready(function() {   var max_fields = 8;   var wrapper = $(".input_fields_wrap");   var add_button = $(".add_field_button");    var x = 1;   var temp;   $(add_button).click(function(e) {     e.preventDefault();     var i;     if (x < max_fields) {       x++;       i = x - 1;       temp = i - 1;       $(wrapper).append('
Price<input class="w3-input w3-border w3-round" id="price' + i + '" name="price[]" type="text">
');     }    });     $("[type='number']").keypress(function(evt) {     evt.preventDefault();   });    $("#price" + 0 + "").on('input', function() {     alert('price0');   });   $("#price" + 1 + "").on('input', function() {     alert('price1');   });  });

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


The database I'm working with necessitates that I prepare my sql query with variable column names. How would I go about setting up a query without knowing the column name before hand? Thanks!  I've searched around the forums and most answers seem to be for an older version of php that is now depricated.   $stmt = $con->prepare("SELECT * FROM Housing WHERE ? = Staten Island"); $stmt->execute($borough); echo $stmt->fetch()[1];

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


What was the reason to call Star Wars actually Star Wars?   I am not a native English speaker and in the first years as a child/teenager I only heard/spoke about the german translated movie titles:      Krieg der Sterne   what literally translated to English should be      War of (the) stars.   But what should a war between stars emphasize?   Is Star Wars just a good sounding synonym for epic space battles or does it have a deeper meaning? And did George Lucas invented the name?

Which wars does the title "Star Wars" refer to?  Are they:   the struggle between the Rebels and the Empire? the Clone Wars (mentioned as early as the first half hour of A New Hope)? the age-old conflict between Jedi and Sith? the war between good and evil in general? all of the above? none of the above, in which case the title was chosen just to sound cool and/or alluring?   When Lucas wrote down the phrase "Star Wars", which events in the Star Wars universe was he referring to, if any?


I wonder "which quantity" is conserved in relation to a specific symmetry.  I guess it is in some meaning simply the generator (in the context of Lie theory) of the symmetry, as it is true for angular momentum (conserved) being generator of rotation (symmetry).  I want clear formulation of idea but I can't complete it:  Let $M$ be configuration manifold of a classical system. $L(q,\dot q,t)$ it's Lagrangian, $h^s: M\rightarrow M$ a one-parameter group of diffeomorphisms of $M$ which preserves $L$. then $$I(q,\dot q)= \frac{\partial L}{\partial \dot q}\frac{d h^s(q)}{ds}|_{s=0}$$ is a conserved quantity along trajectory $q$.  on the other hand $h^s$ produce a flow on manifold and we may denote its vector field by $\frac{\partial}{\partial s}$ which we may call generator of diffeomorphism. so in particular the generator of diffeomorphism along a trajectory $q$ is a vector field along it not a scalar field to could be discussed a conserved quantity or not (for example conserved quantity in relation to rotation be its generator namely angular momentum)  you may say by formula of $I$ just act $\frac{\partial L}{\partial \dot q}$ on this vector field to get a scalar field! but why?!! (I mean by which principle?). and then in what meaning $I$ is genarator of $h^s$?

I've had a brief look through similar threads on this topic to see if my question has already been answered, but I didn't find quite what I was looking for, perhaps it is because I'm finding it hard to put words on my question and I hope that you will be able to help me ask it clearly.  I'm trying to link what I know from mathematics to what we are writing in physics for Noether's theorem. If I understand correctly we are looking at the symmetries of the action i.e. under which symmetry groups is it invariant. Noether's theorem allows us to calculate a conserved current in the case of a continuous symmetry (Lie groups), by means of so-called infinitesimal symmetries which I believe to be elements of the Lie algebra (so the tangent space to the neutral element) of the Lie group.  I'm guessing that if the action is invariant under the symmetry then it's "variation" should be 0 when we vary the system (space-time coordinate, or field) using this symmetry; it is exactly this step that I would like to understand better, how can I formalize this step correctly mathematically? How should I understand this variation, and how does it's calculation give rise to the elements of the Lie algebra?


I use my phone for communications and work on the go. I use a windows 10 tablet connected to external mouse/keyboard and monitor. Many programs such as email and contacts etc., are duplicated on each hardware.  Is it likely to be possible to run Windows 10 in a virtual box on an Android device, - so I can still use the Android phone for communication and emulated Windows 10 with the external monitor/keyboard for desktop use at the same time?  Virtual box, I mean something like Oracle’s Virtual Machine which lets you run other operating systems in a window on top of the main operating system.

I would like to run Windows XP as a virtual machine on my Android tablet.  Since Android is based on Linux, is it possible to compile VirtualBox to run in Android?  If not possible, is it possible to run WinXP as a virtual machine in any way on an Android tablet?


I was reading a proof that submanifolds $M^d \subset \mathbb R^n$ with $d<n$ has measure zero. In the proof they use the fact: Let $f:U\longrightarrow\mathbb{R}^n$ $\mathcal{C}^1$ where $U$ is an open susbet of $\mathbb{R}^n$, then if $E$ is a borelian of null measure, then $f(E)$ is of null measure too. If I have this result, I know how to conclude. Can you help me showing this lemma? Thank you! Let $B$ be a closed ball of $U$ and $E$ a borelian of null measure, then since $f$ is $\mathcal{C}^1$, there exists a $K>0$, such that $f$ is $K$-lipschitz continuous (by compacity of $B$ and by mean value inequality). We conclude that the image by $f$ of a cube $C$ of measure $\delta>0$ is a set of measure at most $K^n\delta$. For all $\varepsilon>0$, we can cover $E\cap B$ by an union of cube $C$ such that $\lambda_n(C)\leq\varepsilon$. I don't understand this one since we don't think we have compacity of $E\cap B$... I just understood that we can obtain a $f(C)$ arbitrarily small if we take a cube $C$ arbitrarily small.

Why does a Lipschitz function $f:\mathbb{R}^d\to\mathbb{R}^d$ map measure zero sets to measure zero sets?   It is easy to prove this statement if the domain is bounded. Is there any way to extend the argument to unbounded domains? Can anyone give me some hint, or show me a simple proof sketch?


I'm pretty new to java, and my doubly linked list addFront method and addRear method works fine, but only dequeue method doesn't works. In the main method, I making a test to remove front element using dequeueFront ()method, when I  remove front element it works, but If I continued  removing front element,   Exception in thread "main" java.lang.NullPointerException     at DoublyLinkedDeque.dequeueFront(DoublyLinkedDeque.java:97)   comes out,  Line97 is the frontNode.previous=null  I just wondering how to remove front element form the double linked list properly.  public E dequeueFront() throws NoSuchElementException  {     if(frontNode!=null)     {         E frontElement=frontNode.element;         frontNode=frontNode.next;         frontNode.previous=null;         frontNode.next=null;         numElement--;         if(numElement==0)             rearNode=null;         return frontElement;     }     else         throw new NoSuchElementException(); }

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


Let $f:\mathbb{C}[x,y] \to \mathbb{C}[t]$ be a homomorphism that is identity on $\mathbb{C}$ and sends $x\to x(t),y \to y(t)$ and such that $x(t),y(t)$ aren't both constant. Prove $\ker(f)$ is a principal ideal.

I have been having trouble with an exercise in my abstract algebra course. It is as follows:     Let $f: \mathbb{C}[x,y] \rightarrow \mathbb{C}[t]$ be a homomorphism that is the identity on $\mathbb{C}$ and sends $x$ to $x(t)$ and $y$ to $y(t)$ such that $x(t)$ and $y(t)$ are not both constant. Prove that the kernel of $f$ is a principal ideal.


I am trying to implement a click tracking on a page with some ajax calls, based on JWPlayer's opensource "Showcase" solution.  The page is basically a list of videos, and when clicking to see a video, the bottom video recommendations changes.  I have jquery selectors that works just fine, but when the content changes, the clicktracking do not works anymore. My original was to define a function. Calling it immediately for the first time, and then triggering it on click on the current elements + a delay.... but that last one do not works....  Any ideas?  var tc_r_clc = function() {              // BLOC TEXT                     $(".jw-card-title").on("click", function () {                     var v = $(this).closest(".jw-card-title").text();                     var y = $(this).closest(".jw-card-title").attr('href');                     alert(v + "---" + y);                 });  };   // FIRST TIME         tc_r_clc();  // REFRESH ON CLICKS         $(".jw-card-controls, .jw-card-description, .jw-card-title, .jw-button-link").on("click", function () {             window.setTimeout(tc_r_clc, 500);         });


Trying to identify a story: I once read an anthologized short story in which a man is scheduled to be executed for a minor offence. I believe the narrative was conducted entirely in letters back and forth between people like his lawyer, relevant authorities, and other such figures. As the situation progresses his fate remains unavoidable for one absurd reason or other (holidays, rules, automatic mechanisms.) Does this ring a bell for anyone? Thanks!

This was a short story told in a series of letters.  The protagonist starts by writing a letter to a utility company about an error in his bill.  By the last letter he is on death row trying to get his sentence commuted.  Each letter is slightly misunderstood.  I think it's from the late 60's and may have been in anthology like "Orbit".


I just made marinara sauce yesterday, sauced some pasta with some and put the rest in a mason jar. How long can I expected this to stay fresh? It's completely sealed-off in a mason jar, I used canned tomatoes and fresh ingredients to make it.  Also, was just making some fresh pasta and accidentally pre-heated all of the marinara in the microwave enough that it began steaming: can I seal-off any that I don't use and save for a later date?  For reference, Marinara and/or Tomato Sauce is not listed in the "storage guide."

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


A colleague with Brunei Darussalam passport is flying from Delhi to Manchester and will transit in Brussels fro a few hours? Does he need a transit visa in Brussels?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


Can I travel to France & Italy with a valid schengen visa issued for business purpose by Netherlands in an expired passport . Biometrics done in 2018. Visa is valid till 2021 with multiple entry allowed.  Now I am travelling to France & Italy with family as a tourist. Is the visa valid for entry into these countries

I'm an Indian National. I have a Type C Schengen Business Visa which is valid from 26-11-2015 to 26-11-2020. I received it when I intended to travel to Netherlands, although I have not used it.   When I applied for a spouse endorsement, the passport on which the visa is stamped was cancelled and a new passport was issued.  Now, I plan to travel to Italy on business from July 8th to 16th.    Can travel with the same visa in old passport, or should I cancel the existing visa and apply for a new one?  I contacted the Netherlands Embassy call center (not VFS Netherlands) which responded that I can use it without any issues. However, they have not confirmed it by email.   I asked about any immigration issues in Italy and was told me that, if I have a valid itinerary and invitation letter from the office, there should be no problem. I was also told that Italian immigration authorities are able to contact the Dutch, if necessary.   I emailed the Italian Embassy in Mumbai (visa.mumbai@esteri.it) and await its response.


I am trying to read a line in a file and set a string equal to that and write it to a file FileOut.   I am currently reading all lines before this to get to the line needed as follows;  FileInputStream TempIn = new FileInputStream(TempOut); BufferedReader br = new BufferedReader(new InputStreamReader(TempIn)); for(int i = 0; i < totalNumberOfCaves+1; i++) {     br.readLine(); } String tempRoute = br.readLine(); br.close();  BufferedWriter writeRoute = new BufferedWriter(new FileWriter(FileOut)); writeRoute.write(tempRoute); writeRoute.close();   However I am getting an error staring  Exception in thread "main" java.lang.NullPointerException at java.io.Writer.write(Unknown Source) at Dijkstra.main(Dijkstra.java:169)   Line 169 relates to the following writeRoute.write(tempRoute);  I am unsure as to why I am getting this error, any advice would be appreciated.  Thanks.


I'm creating some robots for my tank game. I want them to find each other and shoot each other down, so I'm trying to implement a way for them to turn towards each other, and turn the shortest way. For instance, if we where T1 (tank 1), how could I figure out if I where to turn right of left, and at what angle to turn if   Tank1 (us) position is (8906,76), facing is 23 degrees. Tank2 (enemy) position is (888,61)   0/360 is straight up.  The way I've tried to do is to decide what quadrant the enemy is of myself. But that leaves out a 45 degree angle to fail. I know there is some archtan but I cant simply get a grip on them...

I am working on some movement AI where there are no obstacles and movement is restricted to the XY plane. I am calculating two vectors, v, the facing direction of ship 1, and w, the vector pointing from the position of ship 1 to ship 2.  I am then calculating the angle between these two vectors using the formula  arccos((v · w) / (|v| · |w|))   The problem I'm having is that arccos only returns values between 0° and 180°.  This makes it impossible to determine whether I should turn left or right to face the other ship.  Is there a better way to do this?


Is there an easy way to query MySQL data and convert the data into a PHP data-only object or a PHP assoc array? Are there already exisiting frameworks/libraries that do so?   Before everyone jumps to the answer, I have to clarify - NO, I am not talking about MySQLi's fetch_object or fetch_assoc, or anything similar like those.   I am talking about querying multiple tables and having the data stored in objects/assoc arrays in a hierarchical way.   For example, if I have MySQL tables like the followings:  Table `Person` id | name 1  | John 2  | Mary 3  | Sue 4  | Peter 5  | David  Table `IsMarriedTo` personId1 | personId2 1         | 2 2         | 1 3         | 5 5         | 3  Table `HasChild` personId1 | personId2 1         | 3 2         | 3 2         | 4   Well, let's say I want to query about John and all his related family members. Ultimately, I would like to have a PHP assoc array like this:  $person = array(   'id' => 1,   'name' => 'John',   'IsMarriedTo' => array(     array(       'id' => 2,       'name' => 'Mary',       'HasChild' => array(         array(           'id' => 3,           'name' => 'Sue',           'IsMarriedTo' => array(             array(               array(                 'id' => 5,                 'name' => 'David',                 'IsMarriedTo' => array(),                 'HasChild' => array()               )             )           ),           'HasChild' => array()         ),         array(           'id' => 4,           'name' => 'Peter',           'IsMarriedTo' => array(),           'HasChild' => array()         )       )     )   ),   'HasChild' => array(     array(       'id' => 3,       'name' => 'Sue',       'IsMarriedTo' => array(         array(           array(             'id' => 5,             'name' => 'David',             'IsMarriedTo' => array(),             'HasChild' => array()           )         )       ),       'HasChild' => array()     )   ) );   If you ask me to write SQL queries for this example, hmmm...yes, I konw how to write them. But I just want to know if there is an easier/non-manual way to query for the data and convert the data into a PHP data-only object or a PHP assoc array. It would be better if there are already exisiting frameworks/libraries that do so.   In real world applications, table relationships are not so simple like the example above. Well, database schemas may not be necessarily very complex either, but sometiems, querying for one simple thing will involve too many tables, and manually rebuilding the data object or array in PHP from database data is very repetitive and error-prone.   Even if there may not be simple non-manual alternative methods out there for the example above, but sometimes I wonder: do anyone feel and agree that getting database data and rebuilding the PHP objects/arrays is just a repetitive chore? Tens, if not hundreds, of new queries are written everyday. They may be different from one another but their pattern are more or less the same. With PHP and MySQL being such mature technologies for so long, surely there must be some kind of frameworks/libraries that do these kind of repetitive things already. Don't your think so?  EDIT  Some people has flagged this as duplicate. I am not sure if this question is really a duplicate. May be it is, but still... if you think it is, can you at least be kind and provide some links to other similar questions with answers?   Please note that I am not just talking about a problem easily solved by ORMs here though. I am talking about hierarchical data structure on PHP built from multiple database tables.... and there may be access loops involved if not carefully handled. Can ORMs easily tackle this? If so, please show me some light and show me links of other similar questions that have been answered.   I am not an expert in ORMs but I really doubt if they can easily handle such.

Is there a good object-relational-mapping library for PHP?   I know of /ADO, but they seem to only provide abstraction of differences between database vendors not an actual mapping between the domain model and the relational model. I'm looking for a PHP library that functions similarly to the way  does for Java and NHibernate does for .NET.


Why can't I spoof my wifi card's mac address to 1F:2E:3D:4C:5B:6A. Is that address invalid?

I wonder, why can't I change my mac address by doing this:  sudo ifconfig wlan0 down sudo ifconfig wlan0 hw ether 03:a0:04:d3:00:11   The error is SIOCSIFHWADDR: Cannot assign requested address I googled but found nothing valuable.  P.S As usual, I can't do this. Nothing works. I took the new mac address which was incremented by 1 from my current one (old 11:11:11:11:11:cf, new 11:11:11:11:11:d0)  sudo ifconfig wlan0 down sudo ifconfig wlan0 hw ether 11:11:11:11:11:d0   There was no error, it even connected to wifi automatically after I did this (even though I didn't do sudo ifconfig wlan0 up). I though it won. However, when I did   sudo ip addr   I've seen the same mac address as it had before. Nothing was changed.


I'm trying to visualize a table inside a fancyhead.  This table has only the yellow central column. The problem is that when I go to compile and open the document with Acrobat DC, I don't see the top line of the cell.  This is my markup:  \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[demo]{graphicx} \usepackage[hidelinks]{hyperref} \usepackage{array} \usepackage{lastpage} \usepackage{lipsum} \usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor \usepackage{fancyhdr} \usepackage[hmargin=2cm,top=4cm,headheight=65pt,footskip=65pt]{geometry}  \setlength{\parindent}{0.95cm}  \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \fancyhead[CE,CO,LE,LO,RE,RO]{} %% clear out all headers \fancyhead[C]{%     \begin{tabular}{|m{3.0cm}|m{10.0cm}|m{2.5cm}|}         \hline         codice di riparto &         \cellcolor{yellow}\centering         TITLE \\          vediamo cosa c'è\\ ma poi cosa succede &         \centering         \tiny{Pag. \thepage\ di \pageref{LastPage}\\               Data: 17/05/2013\\               Rev. 0}\tabularnewline         \hline     \end{tabular} } \thispagestyle{fancy} \begin{document}  %\chapter{Chapter title} %% add this if you want the fancy style also on the first page of a chapter: \section{Section title} \subsection{non lo so} \lipsum[1-10] \end{document}   And this is the rendering of the table (wrong):   I wonder if I forgot something to define the table, or the color of its cell.

I'm using the xcolor package to colour the top row in a table. This is displayed properly using PDF viewers such as Preview or Skim (Mac). But using Adobe Reader 10.1.3 (either Windows or Mac) doesn't display the table line properly.   But removing the colouring for the table fixes it. Here is the example that works as expected:  \begin{table} \caption{Table showing Feature 5's Functional Tests} \hspace*{-0.5in} \begin{tabular}[h!]{|p{0.6cm}|p{4cm}|p{5cm}|p{4cm}|p{1.5cm}|} \hline {\bf Test ID } & {\bf Task } & {\bf Expected} & {\bf Actual} & {\bf Outcome} \\ \hline    5.1 & Something &  Something & Something &  Success \\ \hline    5.2 & Something &  Something & Something &  Success \\ \hline    5.3 & Something &  Something & Something &  Success \\ \hline    5.4 & Something &  Something & Something &  Success \\ \hline \end{tabular}  \end{table}   And here is the example with a coloured row:  \begin{table} \caption{Table showing Feature 5's Functional Tests} \hspace*{-0.5in} \begin{tabular}[h!]{|p{0.6cm}|p{4cm}|p{5cm}|p{4cm}|p{1.5cm}|} \hline \rowcolor{gray!25} {\bf Test ID } & {\bf Task } & {\bf Expected} & {\bf Actual} & {\bf Outcome} \\ \hline    5.1 & Something &  Something & Something &  Success \\ \hline    5.2 & Something &  Something & Something &  Success \\ \hline    5.3 & Something &  Something & Something &  Success \\ \hline    5.4 & Something &  Something & Something &  Success \\ \hline \end{tabular}  \end{table}   Removing the \rowcolor{} command replacing it with \cellcolor{} creates the same view. Any idea how to fix this?  I've tried printing it out of Adobe and the lines print fine, but as this will be read on as a soft copy it's pretty important. .  Any idea how to fix this?


Hope y'all doing fine, My question may be so lame sorry but wanted to know the answer.. how to root a android device I have mobile of Sony Ericsson Xperia Mini (ST15i) I bought that before 3 years, still use the thing it's still good working condition but on the latest update of the software which it sucked all my internal memory now i have only 100 MB to usable and latest update of Facebook alone is 25 MB + extra data 30 + cache 10 MB and total is 65 MB (rough calculation) so thought of removing the unwanted default apps which came with the update which were uninstallable searched for removing,   said that the best bid is to root our device and so can you guys please guide me how to root I checked with SuperOneClick it never worked

I searched it a while and found some articles regarding Xperia Mini X10 also on XDA but I couldn't understand them easily. So I want help from you geeks who can give me the lighted way with simple steps to root my phone.    I want a step by step guide about to root this model. I'm a not much familiar with this technology so please guide me through some detailed answer.


This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


Prove that there does not exist any holomorphic function $f(z)$, such that $|f(z)| =\frac{K}{\cosh x}$ where $K>0$ is a constant, and $x=Re(z)$.   My idea is to use the maximum modulus principle. $|f(z)| =\frac{K}{\cosh x} = \frac{2K}{e^x+e^{-x}} \leq K$. An entire function with bounded modulus must be a constant. This leads to a contradiction.  My question is, in my attempt, I assume $f$ to be holomorphic on $\mathbb{C}$. Is it possible to prove the same result when $f$ is holomorphic on $\Omega$ where $\Omega$ is a domain? And is it possible not to use maximum modulus principle?  Thank you for any help!

An analytic function $f(z) = f(x+iy)$ in $\mathbb{C}$ cannot have modulus $\frac{A}{\cosh(x)}$ for some constant $A \neq 0$.  Can we do so simply using the Cauchy-Riemann Equations?  I tried working by contradiction:  Say there is such a $f(z)$. Given $f(z) = u(x,y) + i v(x,y)$ is analytic, it satisfies: $u_x = v_y$ and $u_y = -v_x$  We also see that: $$|f(z)|^2 = u(x,y)^2 + v(x,y)^2 = (\frac{A}{\cosh x})^2$$  I tried reaching a contradiction, but seem to be getting lost in a mess of reformulations.   My start point is:  $$u_x = v_y \text{ and } u_y = -v_x$$ along with $$u(x,y)u_x + v(x,y)v_x = -A^2 \frac{sinh x}{(cosh x )^3}$$ and  $$u(x,y)u_y + v(x,y)v_y = 0$$  I would appreciate some hints!


I'm making brownies for the first time, so I went with cake-like but everyone wants chewy. I agreed but realized it was too late. They're already in the oven, how do I fix it to chewy?

I've tried many different brownie recipes and most of mine bake to a cake-like consistency. The brownie holy grail for me is crusty top chewy brownies. What can I add/remove/do that will make my brownies chewier?


s is a list of lists of integers with all values initialized to zero. I would like to increment only the first element of the first row by one, but the following command increments the first element of every row by one. How may I achieve this?  In [6]: s = [[0]*4]*4  In [7]: s[0][0] += 1  In [8]: s Out[8]:  [[1, 0, 0, 0, 0],  [1, 0, 0, 0, 0],  [1, 0, 0, 0, 0],  [1, 0, 0, 0, 0],  [1, 0, 0, 0, 0]]   Okay! Thanks for the advice, the problem was in my construction of s.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I have a 2D game, with a camera that follows the main player. In the game the camera may also rotate the view around the player / zoom in or out on the player.   Let's say I want to add a mini-map to the bottom right of the screen. Is there any way that I can draw the mini-map on the screen so that it is not affected by the camera's zoom / rotation? Is there a way to draw directly to screen coordinates instead of the world coordinates?  Or do I have to perform a transform on the mini-map whenever the camera rotates or zooms.  Thank you for any help

Hi I am making a 2D game, where the Camera is able to rotate / zoom in or out on the camera focus (the player usually).   However my game also contains a mini-map, and so far whenever I have to rotate / zoom my camera the mini-map rotates and zooms accordingly. This behaviour was expected, but now I am a little stuck on "un-doing" the changes the view transformation has on my mini-map. What I want to happen is to essentially keep my mini-map statically in the same position throughout the game no matter how the camera rotates or zooms.  I am extremely rusty with my linear algebra / 3D transformations but I have tried the following...  My first thought was, I thought all I had to do was to transform the mini-map origin point with the view matrix, then undo the scaling of the zoom against the mini-map width / height. The zooming was fixed, but the mini-map still rotated so this did not work.  My second try, I remembered to undo the change of a matrix, I would have to multiply the transform by its inverse. So I tried to calculate the inverse matrix, however the determinant of the view matrix was 0, so I could not find an inverse.  Ok... well I guess I'll just see if I can get the rotation down, since I got the zoom to work... So I transformed my mini-map origin by the inverse rotation matrix applied by the view matrix... The mini-map is rotating now, but is not staying in the fixed position I was hoping for.  I was wondering, if anyone here can give me a push in the right direction, or a hint towards a more elegant solution overall. If people would like more information I can upload images, show code... But what I wrote above is exactly how my code would look.  Thanks for any help!


When I'm playing Minecraft and try to mine iron ore, it breaks into pieces. But then, there aren't any blocks on the ground to pick up. I don't have any problems with picking up stone blocks and wood, and I can even pick up coal. I am using a pickaxe and I don't have the same problem in my other worlds. Is there a problem with my settings?

I am on Peaceful mode, and I am using a Wooden Pickaxe. Whenever I mine Iron Ore, it just disappears. Am I doing something wrong?


My four players have decided on the following plan: once a week, they all cut off three pieces of their hair and give it the others. This way, if another character is ever killed, they can pull out the hair to resurrect them. They will use the Raise Dead ritual since they only need an unspecified part of the player to be able to resurrect them.  I really really dislike this gamey way of playing, but I could find no reason why this would be against the rules.  Am I missing something?

In 4th ed, the Raise Dead ritual specifies that "you must have a part of the corpse of a creature." Is a part removed from a living body considered a part of the corpse once the original body has died? Or does it have to be a part removed once the person is a corpse?    For what it's worth I've already made a ruling in my own game.  That ruling is "maybe."  Because it's a tenuous use of the spell it sometimes works and sometimes doesn't. In the case of a removed finger providing resurrection insurance, I'm going with the caster making a religion check. That value is the percentage of a chance that it'll work. This rewards higher level casters (which is important because it means the players will always be seeking out a better insurance policy), but it's never a sure thing.


I'm switching from Windows to Ubuntu and I'm quite a beginner in GNU/Linux in general.  I download many web pages to consult them offline and I want to hide folders related to them.(the folder containing the images, the CSS, the Javascript...)  I know I have to put a period before the folder's name.  But when I want to hide this folder then the elements (images, CSS...) aren't shown because the HTML page point to webpage_files/something.css and no .webpage_files/something.css  I run on Ubuntu 16.10 and my desktop environment is Cinnamon. Some informations about my Packard Bell laptop:  $ uname -a Linux zubuntu 4.8.0-59-generic #64-Ubuntu SMP Thu Jun 29 19:38:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux   Thanks.  EDIT: I want files to be hidden in the terminal. I already tried the .hidden file trick and it didn't work.  EDIT 2: Many users marked my question as duplicate. Are you stupid ? Excuse my language but I posted this question one week ago and all you find to do is mark my question as duplicate ? If you read carefully my question you will see that I want my files hidden in the TERMINAL, not in nautilus.

I'm wondering if it's possible to hide a folder without renaming it with a dot on the Desktop.  Ubuntu 12.04  Thanks


I understand that some isotopes of an element have a shorter half life, and decay more quickly into other elements. Other isotopes are described as stable and no half life is stated. For elements that have a stable isotope, does this isotope still have a half life, just a very long one? Are there isotopes which do not decay spontaneously, or do all isotopes have a half life?

What minimum half-life an isotope should have to be considered stable?


I've got a job listing running with the standard 30-day term.  I'd like to pause the listing for now because we are about to conduct some interviews and are not interested in any further applicants for the time being.  Currently there doesn't seem to be a pause option. Is there one? Have I missed it?  Can I do something else that is effectively pausing the job listing?

I want to expire a job listing I have on Careers because we are very close to hiring a particular candidate.  But if I do expire the job listing, can I republish it without cost should the candidate we intend on hiring not end up actually taking on the position?  There are still about 15 days left on the job listing, so I don't want to just lose those 15 days should I republish it later.


I am trying to open an xterm windows from within a shell script, this script is meant to open an xterm window that stays open with a custom name, This is what i have xterm -e -T "Minecraft Plus"

I find useful the gnome-terminal feature of editing (and creating) profiles with the option of holding the terminal open after the command exists.    (I like to use context menu file manager to run commands to display info about a file in a terminal, to show info in a terminal while processing, etc.)  I wasn't able to find the same feature in other terminals, so I have to install gnome-terminal even when it's not the default terminal.  Are there other terminal emulators with this feature? Is there a command to be used in a given terminal that would have the same effect?    I want, with a single line (to be added as context menu entry), to open the terminal, run a command and display info in the terminal window that stays open.   Example: in pantheon-files (elementary os) I add a context menu entry for media info using a contractor file with a line like Exec=xterm -hold -e "mediainfo -i %f" (according to a comment below) or Exec=gnome-terminal --window-with-profile=new1 -e "mediainfo -i %f".


In Software & Updates / Livepatch I get this notification "Livepatch requires an internet connection." with a disabled switch in front of it. I am online so internet connection is up & running.  Screenshot Software & Updates:   I tried to enable Livepatch by clicking Learn more in the Livepatch tab, got a token from the   , entered that in terminal according to the code provided:  sudo snap install canonical-livepatch sudo canonical-livepatch enable [insert token here]   Then I get this error:  *2019/04/20 19:41:37 error executing enable:  Livepatchd error: The platform Ubuntu 19.04 is not supported. exiting.*   Any idea what's going on here? I thought Livepatch  in 19.04.

Last night I thought to check whether Canonical Livepatch service is working fine after upgrading to Ubuntu 18.10 from Ubuntu 18.04. I know it was meaningless since it was working fine in Ubuntu 18.04. But to my surprise when I ran   sudo canonical-livepatch status --verbose   I got the error:   2018/11/03 23:11:05 error executing status: Livepatchd error: The platform Ubuntu 18.10 is not supported. exiting.   I am now confused, is the problem only on my system? OR Is Canonical Livepatch service not supported on Ubuntu 18.10?  I would therefore like to request my fellow Ubuntu 18.10 users to do the check and if someone knows the reason/solution please reply to this thread.


I had a system with AMD 7950 video card installed,  than I upgraded the video card to R9 280X and reinstalled the driver to the latest version  AMD Catalyst™ 14.1 Beta Driver  I did this for reinstall the card config:    sudo aticonfig --initial -f --adapter=all   but now I still get the old version:  aticonfig --odgt --adapter=all  Adapter 0 - AMD Radeon HD 7900 Series             Sensor 0: Temperature - 29.00 C

I've installed 11.10 and the proprietary ATI drivers using "additional drivers" The performance of my system is absolutely awful and it shouldn't be. I tried to remove the proprietary drivers using the Additional Drivers tool and it appears to remove them. However after I reboot I cant get back into my desktop properly (the panel and launcher go missing). This doesn't seem to be an isolated problem in 11.XX.  covers how to restore the desktop (panel and launcher), but the guide doesn't fix my problem though.   Whenever I do sudo unity --reset it runs through its normal processes until it hangs at setting update "run_key" and never gets past that. I must reinstall the proprietary drivers using jockey-text or jockey-gtk in order to get back to my proper desktop.   Interestingly enough the system performance seems improved while it is in its "broken" state (missing panel and launcher).  I think restoring the default drivers may solve my problems but I cant figure out how to do it.


In my company's Sharepoint website, each user account includes Display Name (LastName, FirstName and Initial).  I need a selective View based on the User's name. I'm not using People Picker, so I can't use [Me] for filter by "Created by" or "Modified by". I will have a page where a user may have an approval section, so what I'm looking for is when ever the user appears on the form, display the item as part of the filter view. I'm currently using Sharepoint 2013 soon going to O365 SharePoint. Thank you for your inputs.  How can I do this using Javascript

I'm running SharePoint 2013, I would like to have a Current User Filtered View using Javascript.   the [Me] would not be feasible because I'm not using the "People Picker" as the field type. I used a text field in 4 different text fields. For instance, Field1_Text, Field2_Text, Field3_Text and Field4_Text can different Users. The form will have four different approval process; however, I would like to display the form whenever one of those text field has the current user listed. The Current User Filter Web Part, only allows for one field to be selected not all four fields, so that approach won't work either.   A custom view will be used for the date of the item. For instance, "Created Date" Filter = [Today] + 15. The data would only be displayed if the current user is listed on one of those approval "Text_Field" as noted above and the form was created 15 days from [Today]. But, my main concern is the Javascript aspect. I'm trying to get myself up to speed on the topic. Let me know if there is anything else that I can provide. As far as the .JS code, I'm very limited since I'm trying to read and learn from many of the posting on this site.  Thank you.


Let $a, b, c\geq 0$ s.t.$$(a^2-a+1)(b^2-b+1)(c^2-c+1)=1$$  Show that $ a^2b^2+a^2c^2+b^2c^2\leq 3$.  My idea:  I denote $a+b+c=x$, $ab+bc+ac=y$ and $abc=z$.  Then I have $$x^2+y^2+z^2-xy-xz-yz+2z-y-x=0$$ I have to show that $$y^2-2xz\leq 3$$ I tried to prove it with the sign of trinom, but it doesn't work.


This sounds simple but I want to export all my commands and their outputs/messages from the terminal screen to a text file so that at later point of time I can refer what commands I run along with their outcomes.

I want to create a text file which will add each command I am going to run on the terminal as a new line entry in the text file. i.e., I need to keep a record of what are the things I'm doing in the terminal. Further if I can keep a record of outputs I'm getting in the terminal, along with the inputs in the terminal, as a text file, it will be much better.   Each time I forget a command I have to search again in the Internet for the command.  Can I can make a file like above?