I cast an object into a JSONObject then get the string and compare it with "play_audio." The IF statement gives a false result even though my log is giving me correct string - what is going on?                  JSONObject data = (JSONObject)args[0];                 String command = null;                 try {                     command = data.getString("command");                 } catch (JSONException e) {                     e.printStackTrace();                 }                 Log.i(TAG, "<<<<---- RECEIVING COMMAND ----->>> " + command);                 if (command == "ping_audio") { //WHY IS THIS FALSE?                     Log.i(TAG, "<<<<---- PLAYING AUDIO ----->>> ");                 }   logcat  <<<<---- RECEIVING COMMAND ----->>> ping_audio

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 have two line segments that are represented by two x,y coordinates, like so:  [(x1,y1),(x2,y2)] //start & end of first line [(x3,y3),(x4,y4)] //start & end of second line   What is the most efficient way to determine if there is an intersection in these lines?

How do I determine whether or not two lines intersect, and if they do, at what x,y point?


I found an iPad at my working office which was owned by the former director. Unfortunately, he locked it with his Apple ID. I restored the iPad via iTunes because I thought it would wipe everything out alongside with the Apple ID on it but it was not working at all. After restoration , the iPad asks me for language, country and Wi-Fi. Then it asks me for the Apple ID of former director. I can't find or contact that person. Plus, I don't have any information about that ID. I want to unlock that iPad for office purposes. How do I unlock it? The model is iPad2, A1395.  I found IMEIUnlock sites but it asks me for 39.99$. Is it really reliable?  P.S - Trust me, I'm not a thief.

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


Suppose my account is banned for questions. I have 2 questions:   Is retagging a positive contribution to SO? Is editing a positive contribution to SO?

If you are reading this, you may have been affected by one of our post quality bans. If so, it is important that you  to understand what has happened and how to regain the permissions that you lost. While trying to ask a question, one could see:  We are no longer accepting questions from this account. See  to learn more.  Likewise, for answers:  We are no longer accepting answers from this account. See  to learn more.   Why am I getting this message? Are deleted posts taken into account too? Is a question/answer ban the same as a suspension? How do I avoid getting a question ban? How long do I have to wait before I can post again? What can I do to release the ban? How can I reactivate my account? Can I simply create a new account? I'll just ask somewhere else on the SE network, and they'll migrate my question to the correct site! Will a ban on one Stack Exchange site affect my standing on other sites in the network? Does this apply to meta sites too? My account is in good standing. Why am I still blocked?


Define $\phi={a_1+...+a_n\over n}$ and $(a_n)$ be a sequence of real number. Is it true that $\limsup \phi\le\limsup a_n?$  Intuitively i am wondering why the inequality holds as the sup of a sequence could appear all at the begining and form a decreasing sequence so the average seems larger than the tails of the sequence but this is a question I found in some books, so that's not likely to be false.

This is a question from the book Methods of Real Analysis by R. R. Goldberg.     If $(s_n)$ is a sequence of real numbers and if $$\sigma_n=\frac{s_1+s_2+\cdots+s_n}{n}$$ then prove that: $\operatorname{{lim sup}}\sigma_n \leq \operatorname{lim sup} s_n$.   I don't have any idea how to start working on this problem. Please help. Thanks.


For example, .        "Privilege type:" should be before privilege name.  Related .

Open up a privilege breakdown from the .  For this example, I'll use .  The "Privilege Type:" text should be before its related symbol. Instead, it's after.    This appears to be cross-network, as it is also displayed this way on  page. (Dark mode appears to be irrelevant)


A baby's smile is the most invaluable thing in the world; The smile of a baby is the most invaluable thing in the world Are both sentences grammatical and idiomatic?

Sometimes when I write, for example, "the boundaries of segments", I am suggested to use "segments' boundaries" or even "segment boundaries".   Or "the page's content" vs. "the content of the page" vs. "the page content". Then I would like to know is it always preferred to use phrases with apostrophe or adjective?  For example      In our terms, they are mainly textual elements within the page content, which serve as the starting point  of a data region (or a data region's starting point ?)  or a distinctive feature within it


I've noticed each Stack Exchange question has had a number in the URL for a while. This number grows for each new question asked, usually by 3 or 4. So I assumed that each answer added to a site increased the number that would be showed in the URL by 1.   gives some data about this and mentioned entities. I'd assume these are comments, questions and answers.  But looking through the  subsite's question list, I noticed a steep drop-off from  to .  What could cause such a big gap? While it's reasonable that there might be a flurry of comments to make, say, a change in question ID by 50, 1000 seems very high.

Initially, I assume that PostId is auto-incremented. Except for very rare cases, where the data is completely wiped from the database, leaving some holes in the PostId progression, I expect that the PostId would always lead me to a question, an answer, or a tag wiki.  However, when I looked at the SEDE data as research for , with the following query, I found some big gaps in the progression:  ;WITH n(n) AS (     SELECT 1     UNION ALL     SELECT n+1 FROM n WHERE n < 26000 ) SELECT n FROM n left join postswithdeleted d on d.id = n where d.posttypeid is null ORDER BY n OPTION (MAXRECURSION 26000);   On A&M, there are roughly 6000 ids not accessible by any means, broken into 6 ranges, roughly 1000 ids each:   934 → 1929 (996 ids), post id 933 posted on 2013/01/14 10160 → 11154 (995 ids), post id 10159 posted on 2014/06/08 11751 → 12746 (996 ids), post id 11750 posted on 2014/07/10 15640 → 16636 (997 ids), post id 15639 posted on 2014/12/11 17353 → 18351 (999 ids), post id 17352 posted on 2015/01/07 24612 → 25609 (998 ids), post id 24611 posted on 2015/09/03   Since the gaps are quite uniform, I guess there must be a reason behind it. What caused these gaps in the progression of PostId?


Downloaded latest version from   Working with Ubuntu 14.04.2 LTS (x86_64)  Tried to configure it without success:  alex@pc:~/Downloads/openvrml-0.18.9$ ./configure ... checking for boost_thread-mt library... no configure: error: in `/home/alex/Downloads/openvrml-0.18.9': configure: error: libboost_thread-mt not found See `config.log' for more details   Libraries seem to be properly installed:  alex@pc:~$ ls -l /usr/lib/x86_64-linux-gnu | grep -E "boost_thread|boost_filesystem|boost_system" -rw-r--r--  1 root root   217692 ene 16  2014 libboost_filesystem.a lrwxrwxrwx  1 root root       29 ene 16  2014 libboost_filesystem.so -> libboost_filesystem.so.1.55.0 -rw-r--r--  1 root root    88936 jun 21  2014 libboost_filesystem.so.1.54.0 -rw-r--r--  1 root root    88936 ene 16  2014 libboost_filesystem.so.1.55.0 -rw-r--r--  1 root root    49186 ene 16  2014 libboost_system.a lrwxrwxrwx  1 root root       25 ene 16  2014 libboost_system.so -> libboost_system.so.1.55.0 -rw-r--r--  1 root root    14536 jun 21  2014 libboost_system.so.1.54.0 -rw-r--r--  1 root root    14536 ene 16  2014 libboost_system.so.1.55.0 -rw-r--r--  1 root root   200894 ene 16  2014 libboost_thread.a lrwxrwxrwx  1 root root       25 ene 16  2014 libboost_thread.so -> libboost_thread.so.1.55.0 -rw-r--r--  1 root root    88632 jun 21  2014 libboost_thread.so.1.54.0 -rw-r--r--  1 root root    92728 ene 16  2014 libboost_thread.so.1.55.0 alex@pc:~$   Header files seem to be installed too:  alex@pc:~$ ls -l /usr/include/boost/thread.hpp  -rw-r--r-- 1 root root 839 ene 16  2014 /usr/include/boost/thread.hpp alex@pc:~$

I am compiling a program which requires boost-thread-mt library. I have installed libboost-all-dev using sudo apt-get install libboost-all-dev but compiler says that it cannot find boost-thread-mt library. Is this library in some other package? Please guide me what i need to install for this.


Title. I know the following:  Obj& : reference to an Obj Obj** : pointer to an Obj* Obj&& : reference to a Obj& EDIT: Rvalue reference  However, I do not know what fundamental differences there are between these types, nor when to use which. Any insights and help appreciated. (Also: I imagine there is no limit to this, you could syntactically speaking have an Obj***** right ? Although you probably would never want to.) EDIT: My main question is really when/why would you chose to use a ref to pointer rather than a double pointer ? Or why either is needed really.

I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?


How does the mass of black holes become so much larger than the mass of an average star? Since black holes are formed from the collapse of large stars, how come the mass of black holes is of astronomical scale. (If I am  right, i heard there must be a limit to how big a star can become, beyond that it wont be stable?). so this scale of size of mass of super massive black holes does not seem to add up to me, unless they devours many stars nearby it. Any explanation?   Can there be a possibility a more than one larger black holes compete to be for center of a galaxy?

Scientists have found very bright source of light which they call  and the are found to be . So these black holes are so massive that they cannot be formed by a supernova. So how are these formed?


I have an Empty SharePoint 2013 project with a single feature (also empty, I am testing) scoped at WEB. When I deploy the solution it is deployed to all Web Applications and visible in every existing subsite.  GOAL: I want to see the feature only in Site Features of the specified WebApplication (WebApp5). I do not want to see it (Activated or not) in sites under any other WebApp (WebApp1, WebApp2, etc.)     What I tried so far:   deploy via VS (Build>>Deploy Solution) publish and deploy via Powershell:     Add-SPSolution -LiteralPath C:\published\crap1\1.2\testDeployment2.wsp      Install-SPSolution -Identity testDeployment2.wsp -WebApplication http://win-0pjj59787on:28840/     publish and deploy via Powershell:    Add-SPSolution -LiteralPath C:\published\crap1\1.2\testDeployment2.wsp     Install-SPSolution -Identity testDeployment2.wsp -WebApplication http://win-0pjj59787on:28840/ -GacDeployment     add safe control like  and like    The solution shows as deployed to the one WebApplication, but the feature is still available and can be activated from any other WebApplication:       Please tell me there is something better than hiding the feature.

I want to deploy my solution to a single web application. I used the following script:  Add-SPSolution -c:/mywebpart.wsp  Install-SPSolution mywebpart.wsp -WebApplication "SharePoint Debugging" -GacDeployment   But the solution is now available in the 'Site Collection Features' list of all web applications.  I know I can deactivate the feature on the web applications where I don't use it, but I don't want it to be deployed to those web applications. How can I deploy the solution so my web part is only available in a certain web application. The idea is that I want to be using the same web parts in the different web applications, but they have minor changes for each different web application. So I want to deploy version 1.1 to web application A and deploy version 1.2 to web application B


A company may issue debt to raise fund and pays interest based on cost of debt (YTM), and this costs company money. And I can see how debt costs company.  A company may issue stock to raise fund as well. Assume in hell, the company will never pay dividends, buy back shares, and so on, and shareholders can't force the company to do so. The share price can go up and down, and the poor shareholders can get back leftover in case of liquidation, fortunately. But the management, Lucifer and his fella, doesn't care about share price. Anything else is same as how companies on earth are like.  Therefore, as long as the company functions, shareholders can't get anything solid back from the evil company. The only way they can gain money is through share price appreciation.  My question is: in this case, does the COST OF EQUITY still make sense? Does the equity cost the COMPANY anything?

Before recently, Apple Inc. did not give dividend to shareholders.  This makes me curious why people buy Apple Inc. stocks; while it might be due to the expectation of selling stocks at a higher price, this can only be possible if other people are thinking the same, thereby increasing demand. But the stocks themselves do not pay interests - so Apple's amazing revenue/profit records would not matter....


Given a RAID 6 created from 6 drives /dev/md0 which should be used fully for data (no booting from it, root and swap are on a different drive), should I create one partition on that device and then create a file system in that partition, or should I just create a file system on the device?  parted /dev/md0   <create a partion> mkfs -t ext3 /dev/md0p1   or just  mkfs -t ext3 /dev/md0   And why?  (This is Ubuntu Server, just in case it matters.)

I am making a huge RAID10 device (8 TB) for storage on CentOS. I have created the 4 partitions on my 4 physical hard disks and have created the raid device /dev/md2 out of those 4 partitions.  Now it's time to put a filesystem on it. I am wondering whether I should do just:  mkfs.ext4 /dev/md2   which totally works (I tried it), or I should first create a single partition on that device (with fdisk, gdisk or parted?), that takes up all the space, and then do the mkfs stuff on that partition.  Googling the Web, I found another person asking the very same question here:  but, although a responder said:      Partitions go on the array members.   Filesystem goes on the array.   they didn't give him a definitive, non-ambiguous answer or an explanation when one approach should be preferred over the other.


I can not connect to the internet via ethernet or wireless. I have a dell inspiron 6400 and through a little research know that i need b43 drivers, the problem is that ive tried downloading the drivers on a computer with internet access then on the computer that doesnt have internet, extracting them to the desktop and installing from there but it doesnt work, i may be doing something wrong so some help there would be appreciated. can someone help in a step by step guide as im new to ubuntu, thanks  i need the bcm4311 802.11b/g drivers i think.. but how can i download and install them on another computer and where do i get these drivers  Im using ubuntu 13.04 on the computer with no internet and the computer without. The output of uname -a says  3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux

I just installed ubuntu 13.10 on my dell vostro 1000 laptop. It has the broadcom 4311 wireless.  It doesn't work, ubuntu software centre shows I have the bcmwl kernel source drivers and the Linux firmware drivers already on.  ( I noticed other questions have said the solution is to remove the former and install the latter.)  However I have no way of getting an Ethernet connection, is it not possible to do it from the USB install?  If not, how will I download the packages I need from a friends laptop tomorrow?


Whenever I convert a font to an outline in Illustrator, it seems to lose the fill colour and I have no idea how to get it back. All tutorials I have read show that after converting, the fill colour should be the shape, but all conversions I have done just leave me with an unfillable outline (I tried applying the colour with the swatches).

I have drawn a broom in Illustrator and cant apply any brushes or strokes to it. I just don't get it. What do I have to do? Here is a screenshot:


I've heard that the phrase If there was/were can be used in the sentences. But I don't know exactly how to use it in sentences. Although I don't know its exact usage, I've tried to use it in the sentences below:   If there was a quite a silence at the market, it wouldn't be market. If there were brotherhood between we brothers, we wouldn't have needed to live separately. If there were more employees at this company, the company would get more benefits. If there was a mistake in my writing, please correct it for me.   Could you please tell me its correct way to use this phrase? Or there's different usage of this phrase?

I've heard that the phrase "If there is/are" can be used in the sentences. But I don't know exactly how to use in sentences. Although I don't know its exact usage, I've tried to use it in the sentences below:   If there is a quite a silence at the market, there must be something wrong. If there is a private discussion at their home right now, we don't need to go there. If there are many fishes at that pond, let's move for haunting. If there are similarities between their meanings, you need to be more specific when you differentiate them. If there is a mistake in my writing, please correct it for me.   Could you please tell me the correct usage of "If there is/are?


Is there any way have some more information of the prop from it's update function? In the example below, unfortunately, self will point out to bpy.types.Scene, instead of the prop itself. so it seem at first glance that we cannot have any information of the props from the update function, and we are forced to have one update function per prop, instead of a single centralized update function that could work with every one the prop (Note that We can have more information from set, but of course, it will create feedback loops if we change the prop value.. ) please prove me wrong def update(self,context):     print("what is this prop value?")     print("what is this prop api?")     print("what is this prop name?")     return None   bpy.types.Scene._prop          : bpy.props.FloatProperty(default=1.0 , name="Prop", update=update) bpy.types.Scene._prop_this     : bpy.props.FloatProperty(default=1.1 , name="Prop This", update=update) bpy.types.Scene._prop_that     : bpy.props.FloatProperty(default=1.2 , name="Prop That", update=update) bpy.types.Scene._prop_another  : bpy.props.FloatProperty(default=1.3 , name="Prop Another", update=update)

I am creating many boolean properties and want to be able to control the properties with a single worker function. The property name will be the logic driver. Is this possible? If so how? Or do I need to create a function for each property?  import bpy from bpy.props import BoolProperty  def worker_func(self, context):     r""" How to get the name of the envoked property"""     print (self.name) #??     """         if prop_a:             do stuff for prop_a         if prop_b:             do stuff for prop_b         if prop_c:             do stuff for prop_c      """  bpy.types.Scene.prop_a = BoolProperty( update = worker_func ) bpy.types.Scene.prop_b = BoolProperty( update = worker_func ) bpy.types.Scene.prop_c = BoolProperty( update = worker_func )  class HelloWorldPanel(bpy.types.Panel):     bl_label = "Hello"     bl_idname = "OBJECT_PT_hello"     bl_space_type = 'VIEW_3D'     bl_region_type = 'UI'      def draw(self, context):         layout = self.layout         layout.prop(context.scene, "prop_a", text="a")         layout.prop(context.scene, "prop_b", text="b")         layout.prop(context.scene, "prop_c", text="c")    def register():     bpy.utils.register_class(HelloWorldPanel)   def unregister():     bpy.utils.unregister_class(HelloWorldPanel)   if __name__ == "__main__":     register()   Thanks you very much. A.Kal


I'd like to label files with colors, like in the MacOs. I run Ubuntu 18.04.

Can we some how use color labels on icons like OS X?  Something like this:


This question arised when I was dealing with an old qual problem, and if this is true, I'll be done, but I'm not sure if it's true or not:     Let $\{f_n\}_{n=1}^{\infty}$ be a sequence of non-negative Lebesgue integrable functions and suppose $$\int_{-1}^{1} f_n(x)\mathsf dx\stackrel{n\to\infty}\longrightarrow 0.$$ Then, can we conclude that $f_n(x)\stackrel{n\to\infty}\longrightarrow0$ for almost every $x\in [-1,1]$?   I'm motivated by the fact that when the integral of a non-negative function is zero, then it's 0 almost everywhere. I tried the negotiate the definition of almost everywhere convergence, but somehow couldn't get any contradiction yet, and really got stuck here. I would appreciate any kind of help.

If I know $\| f_n - f \|_{L^p(\mathbb{R})} \to 0$ as $n \to \infty$, do I know that $\lim_{n \to \infty}f_n(x) = f(x)$ for almost every $x$?


Is there a way how to merge vertices that are exactly at the same X/Y/Z coordinates? I mean like: select all vertices and make it for all at once (not going one-by-one pair manually as there may be zillions of such instances!). But maybe funnily enough, at the moment I actually do exactly that: switch view to Wireframe, go to Edit mode, select vertices occupying specific space, press M and select Merge at center, press H to temporarily hide that such already "healed" vertice (so I would only see those that are still not "cured"), and so on until I do it for all the vertices in the object, which is extremely tidious work to do. I found out that with some objects there are separate vertices at exact same spot making an object not connected "as one" (so to speak). What I am up to is to find a way that would merge such vertices making previously separated faces into one interconnected surface, that is: not surface made out of separate triangles where each triangle has its own set of vertices, but rather share vertices among each other if those vertices are at the same exact coordinates (I hope I explain my point as I am not native english speaker). Reason why I am doing this is mainly because when I do UV mapping it comes as bunch of groups of UV faces instead of one whole object + it also make my other software crash if I export such object into OBJ file.

I'm using 2.8  Is there no default short key combo to remove duplicates now?  I see that I can quickly add a shortcut for it - but it seems to me that it's something that should be in the mesh (w) menu. I use it all the time.  Thanks!


I have a desktop computer that I just upgraded from Win7 HomePrem to Win7 Pro.  I have added a Win2008 server to the environment, and I would like to start logging in to my desktop with a domain credential.  Is there a clean way to do this without losing my profile & settings?

I have a local user on my laptop. My company is migrating to a domain setup and I want to migrate the local user to a domain user, with all the settings (desktop, Start menu, programs) intact. How can I do that?  Also, is it possible to have a local user with the same settings as the domain, for when I'm working on my laptop while not connected to the domain?


How can I differentiate these two sentences?        He is an English teacher(=a person who teaches English)   He is an English teacher(=a teacher who is English)      EDIT: Yes, I can rephrase this sentence "He is a teacher of English" is possible. But just in case, it's not me who says this, is there any possible way to interpret the meaning of the sentence. Somebody told me it's a matter of a stressed word, but he could not clarify that.

What is understood if I say "I'm an English teacher"?         "I teach English", or   "I'm a teacher coming from England"?


Currently I have 23 mm Continental tyres on my rims with 14 mm inner width. I plan to buy Vittoria Corsa 25 mm clincher tyres. Concerning clearance it should work out fine. Is it safe and does it make sense to go for the 25 mm model with these rims or should I rather go for the 23 mm model?

We often get questions on bicycles.stackexchange about fitting wider or narrower tires to bicycles. We have a large number of these with answers suiting the specific bike or style of bicycle in question, but I have been unable to find one that provides a generic answer covering off all things that need to be considered. For most bicycles, the answer is the same regardless of the specific style and sizes of tires in question.   This is intended as a canonical question that we can point closed questions to.


With the new close reasons, there is of course the option to close a question with the "custom off topic" reason. When you fill in the box, what you typed as the OT reason gets left as a comment. It seems this gets done right after the "Closed Without Comment" flag is auto-generated, though, because when I do this I immediately get a flag popup on the question telling me I haven't left a comment explaining the closure.  Of course I have; the custom OT box posted my comment. But the flag is generated anyway, so I have to dismiss it.  This isn't a huge bug; it takes me all of a second to dismiss the flag. (Should I tell Community♦ it's being unhelpful, since the flag was incorrect? ;)). But on larger sites where questions might be closed by users more often, I think these invalid flags might pile up in the queue and end up wasting a good amount of a moderator's time. So I thought this was something that The Powers That Be should be aware of :)

On beta sites, when a post gets closed without comment, Community ♦ flags it for moderator attention.   Apparently, a comment entered through the freeform close reason doesn't count:    As you can clearly see, there should be no doubt that a comment already exists on the post  Could this be fixed? I don't think it's that important -- I just have to decline the flag, however on larger sites this may lead to a lot of extra flags.


When a user goes to the site and request the following page: myworld.com/blog is it possible to deliver the contents from /blog/ from a different server which is the physical location for blog.myworld.com? Is it possible to mask a subdomain URL to look like it is a subfolder of a domain so Google and users see myworld.com/blog? is this good practice for SEO?

example.com is hosted on IP address c.c.c.c at host1, no access any windows server admin at all blog.example.com is  on IP a.a.a.a at host2, full access to Linux server admin, using WordPress   So basically, I can fiddle with subdomain all I want.  I can't 301 redirect because the content on host 1 is an eCommerce site that I have no server control over. Can't put WordPress on it, can't run scripts, can't do anything on the server period.  Is there a method to "mask" all the URLs on root blog.example.com so they appear as example.com/blog/ folder?  They can't actually be sent to example.com/blog/ as that doesn't exist. It just needs to look to the surfer as if they are there.  Can this be done with some kind of masking or something?  Will this be better for SEO as hopefully search engines will see the blog in a directory on the main domain?


I'm trying to work around a makefile issue where libraries are installed in the wrong place. Someone else wrote the makefile and it is not easy to fix. I'm trying to move the libraries after they have been installed. The installation includes permissions, symlinks on the BSDs, Linux and Solaris.  Given a prefix of /usr/local and libdir of /usr/local/lib/64/, the makefile is placing artifacts with libdir under prefix instead of treating libdir as an absolute path. Here's part of the copying that goes on:  cp libcrypto.pc /usr/local//usr/local/lib/64/pkgconfig chmod 644 /usr/local//usr/local/lib/64/pkgconfig/libcrypto.pc cp libssl.pc /usr/local//usr/local/lib/64/pkgconfig chmod 644 /usr/local//usr/local/lib/64/pkgconfig/libssl.pc cp openssl.pc /usr/local//usr/local/lib/64/pkgconfig chmod 644 /usr/local//usr/local/lib/64/pkgconfig/openssl.pc   I thought it would be relatively easy to take /usr/local//usr/local/* and move the entire artifact tree to /usr/local but it is turning out to be trickier than I thought.  I've tried several suggestions to move the directory, including  and . Each has suffered small problems, like relocating to /usr/local/lib/64/64/pkgconfig/openssl.pc and not preserving symlinks.  Looking at the Linux  man page I'm not even sure there are any guarantees on preserving permission and symlinks present in a directory. The Posix  command talks a little about permissions but it is in the context of writing to the destination directory.  I also tried stripping path components with ${filename:$prefix} but it caused problems with symlinks. ${filename:$prefix} is probably not Posix but I do have Bash.  My question is, is it even possible to do it portably on the BSDs, Linux, OS X and Solaris? If so, then how should I be doing it?    Here's the code I have cobbled together but it feels like it is wrong:  # Fix OpenSSL's broken directory structure path="$PREFIX/$LIBDIR" while [ $(echo "$path" | cut -c1-3) != "lib" ] do     echo "PATH: $path"     path=${path#*/} done echo "PATH: $path"   Here is the output:  PATH: /usr/local//usr/local/lib/64 PATH: usr/local//usr/local/lib/64 PATH: local//usr/local/lib/64 PATH: /usr/local/lib/64 PATH: usr/local/lib/64 PATH: local/lib/64 PATH: lib/64   Followed by:  cd "$PREFIX/$PREFIX" mv "$path" "$PREFIX" rm -rf "$PREFIX/$PREFIX"

If I use mv to move a folder called "folder" to a directory that already contains "folder" will they merge or will it be replaced?


If $|A| \geq |B|$, then there exists an onto function $f: A \rightarrow B$.  If $|B| \leq |A|$, then there exists a one-to-one function $f: B \rightarrow A$.  My issue is that I don't think that $|A| \geq |B|$ implies $|B| \leq |A|$. If there is an onto function from A to B, there isn't necessarily a one-to-one function from B to A.

Theorem. Let $X$ and $Y$ be sets with $X$ nonempty. Then (P) there exists an injection $f:X\rightarrow Y$ if and only if (Q) there exists a surjection $g:Y\rightarrow X$.  For the P $\implies$ Q part, I know you can get a surjection $Y\to X$ by mapping $y$ to $x$ if $y=f(x)$ for some $x\in X$ and mapping $y$ to some arbitrary $\alpha\in X$ if $y\in Y\setminus f(X)$. But I don't know about the Q $\implies$ P part.  Could someone give an elementary proof of the theorem?


My wifi is working fine on Windows 10 but it is not detecting in Linux.  I am facing the same problem as described in   How can I fix this?

I bought an Acer laptop and installed Ubuntu 14.04LTS but WiFi drivers are not available for it. So I am trying to install a windows driver using wifidocs/driver/ndiswrapper.  On doing lspci -vvnn, it gives:  Network controller ［0280: Qualcomm Atheros Device ［168c:0042］ (rev 30)   Then I also disabled the atheros drivers. Using lspci and lspci -n, I can say PCI id is 168c:0042. But Acer website has three atheros drivers. I could not figure out which one to download but downloaded one on a windows PC and pasted the zip file on my desktop then unzipped it from the terminal using unzip <filename>.zip. The page says you have to go to control panel system hardware and all that on the windows system. I did not do it. Windows computer not being mine, I am afraid I should not install any additional driver on it. After unzipping it has one .inx file and one .bin file but no .sys file. I don't know whether I am completely right till here or have I missed something? And if I am right then how to proceed from here? I also made a new directory and copied the unzipped .inx and .bin files in it. Then in that directory I ran the ndiswrapper -i <filename>.inf but it says ndiswrapper not installed and when I do sudo apt-get install ndiswrapper-common, I get the reply that ndiswrapper-common is already the latest version. What to do? here is my dmesg | grep ath10k result  [   7.882758] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0 [    8.190016] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2 [    8.334587] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/board-2.bin failed with error -2 [   10.140677] ath10k_pci 0000:03:00.0: qca9377 hw1.0 (0x05020000, 0x003820ff sub 105b:e09a) fw WLAN.TF.1.0-00267-1 fwapi 5 bdapi 1 htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features ignore-otp [   10.140682] ath10k_pci 0000:03:00.0: debug 0 debugfs 0 tracing 0 dfs 0 testmode 0 Here is the output of lspci -nnk | grep -iA2 net  02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)     Subsystem: Acer Incorporated [ALI] Device [1025:098a]     Kernel driver in use: r8169 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)     Subsystem: Foxconn International, Inc. Device [105b:e09a]     Kernel driver in use: ath10k_pci


If $$\int_{-\infty}^\infty f(x) dx = 1$$   then   $$\int_{-\infty}^\infty f\left(x-\frac1{x}\right)dx$$   is equal to which of $0$, $1$, $-1$, $2$?   ()  I tried this first directly, then after putting specific functions also. In both cases, I am not getting. Can anyone please help me in this?

If $f(x)$ is a continuous function on $(-\infty, +\infty)$ and $\int_{-\infty}^{+\infty} f(x) \, dx$ exists. How can I prove that $$\int_{-\infty}^{+\infty} f(x) \, dx = \int_{-\infty}^{+\infty} f\left( x - \frac{1}{x} \right) \, dx\text{ ?}$$


I have around 80 GB of data I need copy to an external hard drive. Would it be faster to compress all the files first and then copy over? Or would the time it takes to compress and decompress take longer that the amount of copying time it will save?  I'm going to be reinstalling windows so basically documents, pictures, videos etc. And one outlook .pst backup file. And there are 28,284 files.  Also any pointers I should be wary of before I begin that could maybe speed up the process?

I am moving some 20Gb within my local network (100 Mbit/sec). The files are from a typical Linux desktop system.  Would compressing them using Tar\Gzip and then sending them improve performance?  EDIT: I'm moving a Developer's workspace, meaning lots of source and PDFs, and not much multimedia.


I come across this comment while reviewing :     I don't think system-generated messages should contain such language. Can they be chosen more carefully, please?

Some suggested edit reviews are fake and are intended to check that the reviewer is paying attention and reviewing correctly.  I recently encountered one where the fake suggested edit contained 'fuck':   Despite the fact that we regularly encounter profanity online these days, and whilst it is not uncommon to encounter the word 'fuck' in blog posts by recognised authorities in the world of software development (and, I assume, in other fields), this nevertheless caught me a bit by surprise.  I have no problem with whatever strength of language someone feels is appropriate and relevant to make their point, however in the context of audit-related fake suggested edits, is the use of profanity appropriate?  Update: just to clarify, the word 'fuck' was not present prior to the fake suggested edit. The fake suggested edit added the word 'fuck' where it was not previously present.


I'm confused about the ROC curve and confusion matrix. The area under the ROC curve represents the accuracy of the classifier. But the confusion matrix also shows a measure of accuracy. So which method is better for me to find the accuracy of the model?

I applied  two different classifiers against the same validation set. It turns out that classifier A is better than classifier B in terms of ROC curve. However, classifier B is better than classifier A in terms of confusion matrix. How to explain this kind of contradiction?


I want to delve into Quantum Computation, and for that I need background in Quantum Mechanics and other relevant mathematical topics. Which Quantum Mechanics book/resource should I use for that purpose ?

I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines?


Hey i'm trying to center my images when someone is using an ipad basically below 780px but i am not able to get them to center no matter what i try? My menu and navigation bar are all centered just these images won't      My code here

Current News

   CSS here  @media screen and (max-width:979px){     /*Global */     .container {     width: 95%;     margin: auto;     overflow: hidden;     padding-left: 15px;     padding-right: 15px; } .box img{     width: 300px;     height: 300px;     margin: auto;     overflow: hidden;     padding-left: 15px;     padding-right: 15px;     }     .box {     padding-bottom: 15px;     margin: auto;     overflow: hidden;     padding-left: 15px;     padding-right: 15px;     } }

How can I horizontally center a
 within another
 using CSS?

Foo foo


A number is chosen at random from the first 1,000 positive integers. What is the probability that it's divisible by 3,5, or 7?   So I started off by breaking the problem up and having: divisible by 3: p(a) divisible by 5: p(b) divisible by 7 p(c)    I know I'm going to apply the exclusion inclusion principle, but how do I find out how many numbers are divisible by each without going through all the numbers between 1 and 1000?

if A={1,2,...,600} includes all natural numbers between 1 to 600. I want to find number of elements of A that not divisible by 3 or 5 or 7?  any hint or idea?


Hey I'm going to finally start learning programming and making stuff and I was wondering this:  As an example, if you look at --    You can't filter by within the last year, custom dates, etc. (Google, YouTube, Quora, Amazon, etc. can all do this) You also cannot filter by questions that have answers More importantly, maybe even most, you can't filter by questions that have 'greened' answers.   This actually makes Stack Exchange very unusable for me when I'm trying to learn on any particular topic/tag  Besides extreme fragmentation of info, not being able to do much filtering is a huge burden.  I don't read Stack Exchange or really come across Stack Exchange sites when googling. I Quora. In fact, I Quora so much that I have a "429. Too Many Requests. Please email errors@quora.com if you believe this is an error. Please include your IP address in your email." -- yet again!  Even when I come across Stack Exchange sites, I consciously do not click on it, as so many questions have no answers, or have answers, but no solutions.  Stack Exchange/overflow has certain kinds of information that would be helpful for learning though. currently (for the last 10 years I guess), it's just VERY VERY difficult to find, search, etc.   I'm guessing people have said similar things in the past. It's just completely un-usable for me right now.  I understand that there may be backend/legacy stuff that makes this a challenge, but seriously, don't they have smart people? And I don't care -- that's not a solution (none of us needs talk, we need solutions)

First it would be nice to search through the questions I've asked on SO to find a particular question.  Second, it would also be nice if the main search function at the top of the page had an "advanced search" option whereby you could specify things like tags and whether you're looking for answers or questions or both and perhaps specify a date-range.


Each iteration of the EM algorithm will lead to a (weak) increase in likelihood. I however get tiny decreases of the (estimated) likelihood just before the parameter estimates converge. This is the first time that I use the EM algorithm, so I would be interested if this phenomeon can appear with a correctly specified and coded method or not and, if yes, if it is a common phenomenon.  Could it just be that the algorithm keeps searching in a flat area of the likelihood around the maximum, which leads to numerical decreases in the likelihood approximation? What are further diagnostics that I could check?  To get a picture, a typical sequence of changes in expected likelihood per observation that I get in simulated data looks something like this:  3.7311e-06 1.706e-06 1.4912e-05 9.1953e-05 0.00047164 0.0019663 0.0074215 0.021332 0.035066 0.046388 0.057377 0.062306 0.057089 0.040042 0.019623 0.0064888 0.0018022 0.00049184 0.00013265 3.4079e-05 7.7135e-06 1.1234e-06 -2.5607e-07 -3.8119e-07 -2.7317e-07 -1.6555e-07 -9.3877e-08 -5.1608e-08 -2.7939e-08 -1.501e-08 -8.0357e-09 -4.2965e-09 -2.2974e-09 -1.2294e-09 -6.5877e-10 -3.5356e-10 -1.9011e-10 -1.0242e-10 -5.5285e-11 -2.9929e-11 -1.6223e-11 -8.828e-12 -4.7957e-12 -2.6277e-12 -1.4402e-12 theta converged -- exiting   This question is a follow-up to .

I have implemented Expectation maximization to fit some of the parameters of a linear Gaussian state space model using Kalman filtering / smoothing.  The model is:  $x(t) = Ax(t - 1) + w(t); w(t) \sim \mathcal{N}(0, Q)$  $y(t) = Hx(t) + v(t); v(t) \sim \mathcal{N}(0, R)$  $m(0) = m_0, P(0|0) = P_0$  // Initial mean and variance  The parameters $\theta$ consist of some of the entries of $A, Q, R$ as well as the initial conditions $m_0, P_0$.  On each iteration of the EM algorithm I (1) set the new initial conditions to $m_0 = \hat{m}(0|T), P_0 = \hat{P}(0 | T)$, where $\hat{m}, \hat{P}$ are the posterior estimates from the smoothing step.  and (2) use a numerical optimizer to maximize $\mathcal{Q}(\theta)$ (the expected log likelihood).  From what I can see on small 2D examples, this step is correctly computing the maximum of $\mathcal{Q}$.  The new initial conditions and new parameters are then fed back into the smoother to do it all again.  To check the correctness of my implementation, I have simulated data from a model with known parameters $\theta_{\text{true}}$ for a variety of sample sizes $N_1, N_2, ...$ (e.g. 100, 1000, ...) and for each of these datasets I run my EM algorithm to convergence to get parameter estimates $\hat{\theta}_1, \hat{\theta}_2, ...$  I am consistently observing that $\hat{\theta}_i \rightarrow \theta_{\text{true}}$, and moreover, this convergence is monotone.  So, it seems quite clear that my implementation is correctly inferring the parameters, and it's estimates improve with more data.  I am also looking at the log-likelihood directly, which can be calculated from the filtering recursion, and this function is increasing monotonically.  So, running my EM implementation is maximizing the likelihood itself as well.  However, during the EM iterations $t = 1, 2, ...$ the function $\mathcal{Q}(\theta^t)$ is not necessarily monotone in $t$ as it should be.  It seems to either increase monotonically (as it should), decrease monotonically, increase and then fall back down before converging, or decrease and then climb back up before converging.  In each case however, parameter estimates are still accurate.  Does anyone have suggestions for how this could be the case?  I have checked and rechecked my code and my math an innumerable number of times, and am not finding any bugs.


When asking using smartctl, I got the answer:     Sector Sizes:     512 bytes logical, 4096 bytes physical   When asking using fdisk, I got the answer:     Sector size (logical/physical): 512 bytes / 512 bytes   When asking using blockdev, I got the answer:  > RO    RA   SSZ   BSZ   StartSec            Size   Device rw   256   > 512  4096          0   1000204886016   /dev/sdc   Why are there differences? What are the consequences of this? What do I have to do?

I have an SSD that can be configured to report its physical sector size to an OS in two different ways:  Option 1: Logical = 512 Bytes, Physical = 512 Bytes  Option 2: Logical = 512 Bytes, Physical = 4096 Bytes (4K)  What benefit does an OS gain by being aware of the 4K physical sector size, considering:   The OS must talk to the drive in 512-byte sectors regardless All modern OSes align to 4K and utilize 4K or multiples of 4K I/O regardless   The setting seems pointless, because modern OSes are already optimized for 4K sector drives. Modern OSes don't need to "ask" a drive whether its sectors are 512b or 4K, because the OS does everything in a 4K-friendly way by default.  For example, Windows 7 aligns partitions to 1MB (a multiple of 4K), NTFS cluster size is 4K or multiple thereof, and all I/O is done in 4K or multiple thereof. Windows doesn't give a damn what hard drive you have, it will apply the above behavior in all cases.  Anyway... my SSD has this "physical sector size" setting and so it must be there for some good reason... it's the reason for this I'm looking for.  BTW, for what it's worth, the drive is an . The drive's  says this (page 27):     By using SCT command 0xD801 with State=0, Option=1, ID Word 106 can be changed from 0x6003 to 0x4000 (4KB physical sector size to 512B physical sector size support change).


Let $f:\mathbb{N}\to \mathbb{N}$ be bijection such that  $$\sum_{n=1}^{\infty} \frac{f(n)}{n^2}< \infty$$  Then numbers of such bijections is zero, or one or finitely many but more than one or infinite such bijections. I think there will be no such bijection . Am i right ? if yes how to prove that ? any hint

Let $f:\mathbb{N^*}\to\mathbb{N^*}$ an injective function. Show that the following infinite series $$\sum_{i=1}^{\infty}\frac{f(n)}{n^2}$$ is divergent. I am supposed to deal with this using the rearrangement inequality. But I don't know how!Could some explain this to me step by step? I really want to understand...


In one-tailed test , we give our decision at $\alpha$ level of significant.  But in two-tailed test , why do we give our decision at $2\alpha$ level of significant? Why do we not give the decision of two-tailed test at $\alpha$ level of significant?  For example , The Durbin-Watson test for autocorrelation    The decision rule for two-tailed test against alternative $\rho\ne0$ is:  If $d<d_L$ or $4-d<d_L$, conclude $d$ is significant, reject $H_0$ at level $2\alpha$  .  Why at level $2\alpha$ ? Why not at level $\alpha$ or $\alpha/2$?

I am looking for various ways of explaining to my students (in an elementary statistics course) what is a two tailed test, and how its P value is calculated.  How do you explain to your students the two- vs one- tailed test?


I tried compressed plain SVG (.svgz), the files are smaller and it looks the same than the regular .svg. Is there any downside? Can I use always .svgz?

From my understanding,  The SVGZ is a compressed file type of an SVG. I love using SVG images and have had a lot of experience with them.   All of the times I used them I have never had a graphic that went over a few hundred kilobytes.  I use SVG for responsive graphics while making responsive websites. I also use them since my favorite design style is vector based graphics. My strongest design strength is illustrator, especially when it comes to graphic design.  The other reason I would use an SVG graphic is due to the ease of animating certain elements of the graphic, like arms, legs, etc.  Especially background elements, like a city to span across the entire page while I animate some flickering of lights and so on.  If the file is compressed, would it lose the SVG code so I couldn't animate it?  Is there any reason I should use an SVGZ over just an SVG?  Update  Well I decided to just make an SVG and SVGZ to see how they acted with the web since I found out my works ancient CS3 can save SVGZ!  After testing I ran into a very unexpected problem with the SVGZ file type. (Tested on Chrome, Firefox, and IE) If you go to the direct URL of the image you get an error. I am assuming you can't access the SVG code on these files types but after making a fiddle it doesn't even seem to display the image.  Are these useless for the web?


I did download Ubuntu 12.04LTS. I tried to install - no progress. I tried to remove all partition using a bootable version of GParted. I created one big partition ext4 formatted. It all did not help. The installation stops after "Preparing to install Ubuntu". All three checkmarks are checked an I can click "Continue" but then nothing for hours. What can I do? Please help!

I've downloaded Via http Ubuntu Desktop ISO and used a Usb stick as per Ubuntu instructions I've done all and got it to the installation point and  then preparing to install when i click continue it takes forever  It's not hanging whole computer i can still work on Firefox without any problem but Ubuntu preparing to install window freeze  Please help on this what can i do ? Why is this freezing ?


I have two sets of times of which, we need to check some overlapping occurs or not. For eg. (BeginTime_1, EndTime_1) and (BeginTime_2, EndTime_2) are the two sets of timings. I need to find whether these timings overlap or not. Is it possible to do using SQL. I have achieved it using C#, and now I need to do it using SQL. Is there any builtin function for achieving this? Any help will be highly appreciated. (I'm considering only time in hh:mm:ss)

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap?  As an example, suppose we have ranges denoted by DateTime variables StartDate1 to EndDate1 and StartDate2 to EndDate2.


Hye, I am new to Latex and using TeXworks software for document generations. It is working properly for simple article class but as soon as I added \documentclass{scrartcl}, it started giving me above error. I downloaded scrartcl.cls and added it in the same path where article.cls was but it is still not working. Both class files are currently in ..\MiKTeX 2.9\tex\latex\base. Any suggestions?

I recently installed MiKTeX with the texmaker editor and cannot figure out how to update the packages. When I attempt to use the subfigure package with the following preamble  \documentclass[a4paper,12pt]{article} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{subfigure}   I then get a prompt to install a new package, which I then set to the online directory at ctan. I then get the following error:   ! LaTeX Error: File `subfig.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read >   How do I properly install packages to miktex? I'm absolutely confused. Thanks in advance for any help.


I'm developing reStructuredText editor with Tkinter. If i run the below code, i'm getting IndentationError..  from Tkinter import * from tkFileDialog import asksaveasfile as savefile  class RSTkinter:     def __init__(self):         self.pencere_load()         self.araclar()      def pencere_load(self):         pencere.resizable(width=FALSE,height=FALSE)         pencere.title("RSTkinter")      def araclar(self):         h1 = Button(text=u"Başlıklar",command=self.h1p)         h1.place(rely=0.0)          ..         ..          topic = Button(text="Topic",command=self.topic_p) # ..topic:: başlık \n\t içerik         topic.place(rely=0.0,relx=0.63)      def topic_p(self):         topic = Toplevel()         topic.title("RSTkinter - Not")         topic.resizable(width=FALSE,height=FALSE)         topic.geometry("200x140")          topic_b_l = Label(topic,text=u"Topic başlığı: ")         topic_b_l.place(relx=0.0,rely=0.0)          self.topic_b = Text(topic)         self.topic_b.place(relx=0.3,rely=0.0,width=130)          topic_i_l = Label(topic,text=u"Topiç içeriği")         topic_i_l.place(relx=0.0,rely=0.4)          self.topic_i = Text(topic)         self.topic_i.place(relx=0.3,rely=0.5,width=130)          topic_y = Button(topic,text=u"Ekle",command=self.topic_yap)         topic_y.place(relx=0.0,rely=0.2)      def topic_yap(self):         return self.metin.insert(END,"\n.. topic:: %s \n\t%s"%(self.topic_b.get(1.0,END)),self.topic_i.get(1.0,END)))  pencere = Tk() rst = RSTkinter()  mainloop()   Full error:  File "RSTkinter15.py", line 85 topic = Button(text="Topic",command=self.topic_p) #.. ^ IndentationError: unexpected indent   How can I do?

When I compile the Python code below, I get      IndentationError: unindent does not match any outer indentation level     import sys  def Factorial(n): # Return factorial     result = 1     for i in range (1,n):         result = result * i     print "factorial is ",result     return result   Why?


ifconfig -a produces:  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:1812 errors:0 dropped:0 overruns:0 frame:0           TX packets:1812 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:209274 (209.2 KB)  TX bytes:209274 (209.2 KB)  wlan0     Link encap:Ethernet  HWaddr 28:cf:e9:1a:43:cd             inet addr:192.168.12.11  Bcast:192.168.12.255  Mask:255.255.255.0           inet6 addr: fe80::2acf:e9ff:fe1a:43cd/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:11512 errors:0 dropped:0 overruns:0 frame:0           TX packets:11320 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:9240182 (9.2 MB)  TX bytes:2316647 (2.3 MB)   lspci -nn | grep Ethernet produces:  03:00.0 Ethernet controller [0200]: Broadcom Corporation Device [14e4:16a3] (rev 10)   cat /etc/network/interfaces produces:  auto lo  iface lo inet loopback   Any ideas on how I can get eth0? Thanks!

I used to be able to share my network connection by editing the Auto Eth0 to share with other computers in the Ipv4 section and now I upgraded my laptop to 11.10 .  Now are there no wired connections in the network manager. When I click my connections applet at the top of the tray it also says wired device not managed!  when I type ifconfig -a  daniella@daniella-1001HA:~$ ifconfig -a eth0      Link encap:Ethernet  HWaddr 90:e6:ba:83:d6:fc             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)           Interrupt:45   eth0:avahi Link encap:Ethernet  HWaddr 90:e6:ba:83:d6:fc             inet addr:169.254.13.40  Bcast:169.254.255.255  Mask:255.255.0.0           UP BROADCAST MULTICAST  MTU:1500  Metric:1           Interrupt:45   lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)  wlan0     Link encap:Ethernet  HWaddr 00:25:d3:90:43:41             inet addr:192.168.0.6  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: fe80::225:d3ff:fe90:4341/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:12881 errors:0 dropped:0 overruns:0 frame:0           TX packets:12867 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:8851081 (8.8 MB)  TX bytes:2343199 (2.3 MB)


let $f$ be a function such that :$f:\mathbb{C}\to \mathbb{C}$ and $f^{-1}$ is the compositional inverse of $f$, I seek for the analyticity of $f$ at $0$, then my question here is :          Question:     Are there functions satisfy:$f'=f^{-1}$ with  $f^{-1}$  is compostional inverse of  $f$ ?

What are some good examples of a function  $f : \mathbb{R} \to \mathbb{R}$ where its derivative is equal to its inverse? I attempted to find a monomial that satisfied it by starting with $f(x) = ax^b$ and showing that $f^{-1}(x) = f'(x) \implies b-1=\frac{1}{b} \implies b=\phi$ and got $$f(x) = \frac{x^\phi}{\sqrt[\phi]{\phi}}$$ Which seems to work according to WolframAlpha, but I'm having trouble double-checking it. Any other ideas?


I need to remove white background from this logo, but whatever I have tried, doesn't seem to work correctly. For example, when I try to use the magic eraser tool, it also erases some of the text.

I want to replace the whiteness in pixels with transparency in the same way as described in  - i.e. for lighter pixels to be made proportionally as transparent. All solutions found via google are based on magic wand or other methods that do not work for my needs.  I'm sure there used to be a way to do this in earlier version of Photoshop (a simple functions to replace a colour with transparency), but I can't seem to do it in CS6.  Replace Colour has no alpha options..


Can i use my Familiar to get past the visual components of spells as with spells like misty step that specify "A point you can see within 30 ft"?   "While your familiar is within 100 feet of you, you can communicate with it telepathically. Additionally, as an action, you can see through your familiar's eyes and hear what it hears until the start of your next turn, gaining the benefits of any Special Senses that the familiar has. During this time, you are deaf and blind with regard to your own Senses."  Essentially my character would be trapped in a 5x5 box with no way to see out, If my familiar was within 100 ft could I: Action see through my familiars eyes and then bonus action Misty step outside of the box?

I am thinking about a wizard who has a rat familiar (from the  spell), and has the  spell prepared. Can he use his familiar's senses to teleport into another room (where the familiar is hiding) by looking through the eyes of the rat and casting misty step?  The wizard could use his action to switch to the familiar's senses and then use his bonus action to cast the spell. This would greatly reduce the "blind and deaf" time he experiences from doing this.


We've all seen this when we opened a setting or preference window from a context menu in a program we're using-- the window flashes/flickers and forces you to close it if you want to get at information 'below' it in the z-order window stack.  What is this 'feature' called?  Is there a way to prevent Windows from forcing interaction?

Are there any solutions to prevent applications stealing focus from the active window?   This is especially annoying when I'm starting an application, switch to do something else and the new application starts receiving half a sentence of text.


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


I've been playing around with Bootstrap collapse and other possible accordion effects. I'm trying to achieve an accordion effect on rows of table with a transition. But somehow, the transitions don't work on either tbody or tr.  Here's a sample that I've come up with -   I've checked out most of the links here on Stackoverflow regarding tables and accordion effects, but haven't found anything proper.  Relevant code snippet :    function customCollapse(that) {   $(that).next('tbody').toggleClass('closed'); } .slider {   overflow-y: hidden;   /*max-height: 500px;*/   /* approximate max height */   display: table-row-group;   transition-property: all;   transition-duration: 5s;   transition-timing-function: cubic-bezier(0, 1, 0.5, 1); } .slider.closed {   /*max-height: 0;*/   display: none; }

       Some data

       Some data

       Some data again

       Some data again

     Some relevant code of what I tried using Bootstrap:
                     Some data

     Some data again	     Some data again	     Some data again	     Some data again	     Some data again

I'm trying to add a row to a table and have that row slide into view, however the slidedown function seems to be adding a display:block style to the table row which messes up the layout.  Any ideas how to work around this?  Here's the code:  $.get('/some_url',    { 'val1': id },    function (data) {     var row = $('#detailed_edit_row');     row.hide();     row.html(data);     row.slideDown(1000);   } );


I am trying to edit following post but edit link is disabled.      Then I tried to go to other question to look weather they allow me to edit and seems all the other question I can edit it.   Its only this question that doesnt allow me to edit.

I edited some questions before, but now I get an error message when clicking the edit button. I thought there was a problem with the specific question, but I cannot click it on any question.  What's going on?


I think that this was a short story. I remember reading it as a kid in the 1970s. It was a modern tale with an explorer or sailor of some sort who found himself in a cave near the sea and discovered a bunch of life-like stone sculptures of humans. I think the implication is that he was in Medusa's cave, but I don't recall how the story turned out or if he escaped. Any ideas? Chances are that it was part of a book collection. Thanks!

I read this in an old anthology years ago. A traveler is staying at a Greek seaside town when he notices a wooded island off the coast. He asks some of the local fishermen if they will give him a ride over to this island but no one will even talk about it. Later a young man with a noticeable scar surreptitously offers to take him across. Once there, the traveller leaves the fisherman to wait on the shore and has a look around. Once in the woods he finds stone sculptures of amazing realism, some very worn,  some newer, all with a look of surprise on their faces. The traveller, really concerned, returns to the boat, where he finds a sculpture of the scarred young man. Just as he realizes whose island this is, he hears someone behind him. Will he turn to look? Anyone remember this one?


Is it possible to get all the packages and classes from a source directory (eg. from src/main/java) using Java? (looking at  and  does not seems achievable).  I am open to another language if it is unachievable in Java.

Is it possible to find all classes or interfaces in a given package? (Quickly looking at e.g. , it would seem like no.)


Yoda was reluctant to train Anakin in Episode II because he said Anakin was too old to start training (even though Anakin was still a boy). However, in Episode V, Yoda didn't seem very reluctant to train Luke despite the fact that Luke was a full grown man by that time. Why did Yoda put up resistance to training Anakin yet he was willing to train Luke?    Note: the idea for this question came from

Anakin Skywalker was about nine years old (see script link, below) during "The Phantom Menace". Yet according to various people, he was too old (or even "far too old") to begin training as a Jedi:   QUI-GON: "I'm afraid not. Had he been born in the Republic, we would have identified him early, and he would have become Jedi, no doubt...he has the way. But it's too late for him now, he's too old." OBI-WAN: "The boy will not pass the Council's tests, Master, and you know it. He is far too old." MACE WINDU: "He is too old. There is already too much anger in him." and even ANAKIN himself: "I'm with Qui-Gon...but...they're not going to let me be a Jedi. I'm too old."   All quotes above from .  However, during "The Empire Strikes Back" Yoda gives Luke's age (18 in chapter IV according to the ) as the reason to deny him training only after first saying that Luke is:   too impatient too angry not ready is unfocused ("Never his mind on where he was") and reckless   All from .  I would have thought that, if at 9 Anakin was too old, Yoda would have seen Luke at 18+ and started off by saying, "No chance, he has".  So, what is the age to begin Jedi training?


How do I set up a PDF printer that will as for a filename ?  Thanks  Ubuntu 20.04 Mate

Is there a way to install a printer that prints to pdf?  There's a lot of discussions about this in the web foruns, but none seens to work.


Debate over dinner: we read on Wikipedia that . Then we remember seeing on TV ages ago an astronaut dropping a feather and bowling ball on the moon, confirming the truth of this matter. However, the objects fell on the moon much slower than they did on Earth - clearly, mass somehow does affect how quickly things "fall," despite the apparent fact that bowling balls and feathers fall at the same speed. Why else would things fall slower on the moon other than it's smaller? They say gravity on Jupiter is such that it would crush us - Jupiter is huge.   My family is of the opinion that bowling balls and feathers fall at the same speed because those aren't planets. I argue that they must fall at miniscul, perhaps immeasurably smal, different speeds, because as Earth "pulls" in them, do they not also "pull" in Earth? My family believes there's some magic size where objects are "the thing that makes gravity" versus "the thing falling into gravity," and if you're small you fall at the same speed and that's just how it is. It seems too magical for my tastes. Surely not?  Is it truly so, that all objects regardless of mass fall towards Earth at the exact same speed? Is mass of the falling object somehow irrelevant, the only relevant mass is the big thing towards which they fall?

The common understanding is that, setting air resistance aside, all objects dropped to Earth fall at the same rate. This is often demonstrated through the thought experiment of cutting a large object in half. The halves clearly can't then fall more slowly just by being sliced in two.  However, I believe the answer is that when two objects fall together, attached or not, they do "fall" faster than an object of less mass alone does. This is because not only does the Earth accelerate the objects toward itself but the objects also accelerate the Earth toward themselves. Considering the formula: $$ F_{\text{g}} = \frac{G m_1 m_2}{d^2} $$  Given $F = ma$ thus $a = F/m$, we note that the mass of the small object doesn't seem to matter as when calculating acceleration the force is divided by the $m$ term, its mass. However, this overlooks that the force is actually applied to both objects, not just to the smaller one. The acceleration on the second, larger object is found by dividing $F$, in turn, by the larger object's mass. The two objects' acceleration vectors are exactly opposite, so closing acceleration is the sum of the two:  $$ a_{\text{closing}} = \frac{F}{m_1} + \frac{F}{m_2} $$  Since the Earth is extremely massive compared to everyday objects, the acceleration imparted on the object by the Earth will radically dominate the equation. As the Earth is $\sim 5.972 \times {10}^{24} \, \mathrm{kg} ,$ a falling object of $5.972 \, \mathrm{kg}$ (just over 13 pounds) would accelerate the Earth about $\frac{1}{{10}^{24}}$ as much, which is one part in a trillion trillion.  Of course in everyday situations, we can for all practical purposes treat objects as falling at the same rate because of this negligible difference—which our instruments probably couldn't even detect. But I'm hoping not for a discussion of practicality or what's measurable or observable, but what we think is actually happening.  Am I right or wrong?  What really clinched this for me was considering dropping a small Moon-massed object close to the Earth and a small Earth-massed object close to the Moon. This made me realize that falling isn't one object moving toward some fixed frame of reference, but that the Earth is just another object, and thus "falling" consists of multiple objects mutually attracting in space.


I apologize if this has been asked many times before but I just cannot find where to adjust the font size in the app (ver. 1.0.95). It would be very surprising if such feature were simply not available but I can't find it for the life of me.  Upd.: Hmm, found other similar requests. Indeed, the feature seems to be not there. it is highly desireable, on an 8'' Tablet the font is very small.

I have a hard time reading questions and answer on Stack Exchange sites sometimes. I hate having to bring my phone or laptop very close to my face to read things sometimes. I would love if there was an option to increase the font size in the app. Can this please be done?


How can I put two figures side-by-side? Not two sub-figures, but two actual figures with separate "Fig.: bla bla" captions.  A figure is supposed to spread over the entire text width, but I have two figures which are narrow and long, and I need to save the space in order to withstand the pages limit.

I placed 2 figures side by side using the minipage method from , and the figures look perfectly fine. However, the caption of the right figure stick out into the margin, why is that and how can I fix it?    My code is like this:  \begin{figure}[htbp]   \centering   \begin{minipage}{.5\textwidth}     \centering     \includegraphics[width=6.6cm]{figure1.png}     \caption{Caption for figure 1.}     \label{fig:fig1}   \end{minipage}%   \begin{minipage}{.5\textwidth}     \centering     \includegraphics[width=6.6cm]{figure2.png}     \caption{Caption for figure 2, but longer.}     \label{fig:fig2}   \end{minipage} \end{figure}


I have the data series including these labels for my dataset:  s=['A','A','A','A','B','B','B','B','C','C','C','C','D','D','D','D','D']  I would like to know how can I get the index of first element B and the last element of C.

Is there any built-in methods that are part of lists that would give me the first and last index of some value, like:  verts.IndexOf(12.345) verts.LastIndexOf(12.345)


I need to sum numbers from a file line by line.  The file:  1.0 0.46 0.67   I want to sum, then divide 3.  I currently have:  while IFS= read -r var do    x=$(($var + $x)) | bc -l done < "file.txt" echo "$x / 3"   My error:  -bash: 1.0 + 0: syntax error: invalid arithmetic operator (error token is ".0 + 0")

Using echo "20+5" literally produces the text "20+5".  What command can I use to get the numeric sum, 25 in this case?  Also, what's the easiest way to do it just using bash for floating point? For example, echo $((3224/3807.0)) prints 0 :(.  I am looking for answers using either the basic command shell ('command line') itself or through using languages that are available from the command line.


I just recently noticed that the author thumbnail has no reputation.    Is this a bug or is this a conscious change?

I cannot see reputation of any questioner or answerer on their user cards, but editors' rep & badges are still shown. Questions tab with any filter(new, active) is unaffected. Mobile sites are unaffected. It appears to be a network-wide issue.     New contributor banner expands.


I am trying to get rid of the .0 left behind a float number when I add whole numbers together. ex. if i do 10+10 it will print out 20.0 but i want it to print out 20 unless there is a decimal in the number. P.S ive been looking all over on this site and cant find the anser to my question so why did someone make this a duplicate makes no sense.  float numOne = Float.parseFloat(numberOne.getText());     float numTwo = Float.parseFloat(numberTwo.getText());     float anser = numOne+numTwo;     String AR = String.valueOf(anser);         anserLabel.setText(AR);

A 64-bit double can represent integer +/- 253 exactly. Given this fact, I choose to use a double type as a single type for all my types, since my largest integer is an unsigned 32-bit number. But now I have to print these pseudo integers, but the problem is they are also mixed in with actual doubles. So how do I print these doubles nicely in Java? I have tried String.format("%f", value), which is close, except I get a lot of trailing zeros for small values. Here's an example output of of %f  232.00000000 0.18000000000 1237875192.0 4.5800000000 0.00000000 1.23450000  What I want is:  232 0.18 1237875192 4.58 0 1.2345  Sure I can write a function to trim those zeros, but that's lot of performance loss due to string manipulation. Can I do better with other format code?  The answers by Tom E. and Jeremy S. are unacceptable as they both arbitrarily rounds to two decimal places. Please understand the problem before answering.  Please note that String.format(format, args...) is locale-dependent (see answers below).


I'm not entirely certain when this occurred, though I'm suspicious that this might have first shown up when the new profiles were introduced. I just can't verify that at all. And since the link is missing from both new and old profiles, I just have to assume it's unrelated. On my most active site, and a few others, things are normal:  StackOverflow:   and Theoretical Computer Science:   are unaffected.  But MathOverflow and Computer Science are affected:      The list of my exchange sites where the Meta link has vanished:   SuperUser (Link is now there! See edit below...) Computer Science Reverse Engineering (Link is now there! More on that below...) Information Security Physics Mathematics MathOverflow Code Review   Notice that this is both new and old profiles. I first observed this on Reverse Engineering. So naturally I typed in the meta site address and navigated to it 'manually'. I posted my observation figuring this had something to with the recent changes (and that it might simply have been moved to some place that was different from every other site). Once I navigated back to the main site profile, the meta link was there! And has been there ever since. This led me to poke around all of my site profiles to see if something was really up, or I was just having some weird dyslexic moment.  I've done a search and nobody else seems to be reporting this by any means that I can find. This might be a feature of some kind, but then why am I seeing the meta link on several other of my exchange site profiles?  Edit: It seems that somebody else attempting to visit the meta profile of a site causes the link to appear, even if I've never attempted it myself. Super User now displays the meta link on my main profile.

Just noticed the "meta user" link under the picture and reputation on the Stack Exchange user's page. It doesn't seem to work for all users. Error is "Page Not Found".   Not working:  /  Working:  /    My guess is this is because they've never logged into the meta site.


Take a look at the screenshot at the bottom of my post. Refreshing it solved the problem.  I have a faulty Wi-Fi card, so the connection could drop at some time. What is more, my OS clock is acting strange (I can't force BIOS, Linux and Windows to show the same time) - I am providing those facts so you can better identify the case.  I think '2 hours ago' could be somehow connected with the fact, that my clock is showing the time for another timezone than the one I am currently connected to, despite the fact that I asked Windows to detect TZ automatically.

So, I left my computer for a little while, and came back to this:    Note all the time gap notifications for merely minutes, and seconds.  Refreshing the chat window and it all goes back to normal. Can't reproduce either I'm afraid.


I've been searching for a few days already and can't seem to find a proper answer to my question.  In my program, I need to have a first class (D) that reads a file and instanciate some basic objects, that will be used to create some others. Once they're created, I call a parsing function with a collection of objects PC, which are NECESSARILY of class or child of class P.  To do so, I've implemented a collection of PC, that is merely an encapsulation of a vector storing PC objects.    In D.h  class D {     /*...*/     template<typename PC>     parse(vector<string> cmdline, V<PC> vpcs); }     In D.cpp  template<typename PC> parse(vector<string> cmdline, V<PC> vpcs) {      /* parse options */      /* check with a functor if PC is really of class (child of) P */      vpcs.push_back( PC(args) ); }     In V.h  template<typename PC> class V {     /*...*/     vector<PC> vpcs; }       In main.cpp  {     D des;     vector<string> cmdline;     V<P*> vps;     des.parse(cmdline, vps); }     Why do I want to do this? Because I'm writing a library and we have to let the future developers create their own child of P for specialized programs so I want to do something really generic (therefore : templated :)). I've already implemented and tested my function with class P, fully working, now I want to improve this. But I don't manage to compile my code or neither understand what I've been doing wrong.  (Also, for the record : first time using templates so I've read a lot of documentation but application is always a bit difficult!)  Thanks for your future answers and let me know if I can add more details!  EDIT : Okay, so the post given as "duplicate" (which I never read during my research, maybe not the correct keywords I typed in?) helped me for one thing but in fact it was not this problem at all. I had another one that I manage to resolve. In fact, I intended to have a collection of pointers, so instead of passing as PC the class*, I decided to pass only the class and just create the smart pointer inside a method of my templated "vector" class. Now it works, thank you all :)

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


I have got a following question to solve and would appreciate some guidance and advice how to tackle this.  Let $G$ and $H$ be groups and let $f : G \to H$ be a homomorphism. Suppose that $K$ is a subgroup of $G$. Show that $f(K) = \{ f(k) : k \in K \}$ is a subgroup of $H$.  Thanks, Don

Why is an image of a homomorphism a subgroup of the codomain? I know that the image of any function is a subset of the domain, but I don't know how to proceed with the former statement.


In the sentence "So, who exactly is Darren; the character who/whom/of whom the film is centred around."  Should it be who/whom or of whom?

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


I have been searching a lot on how to make an octahedron, but everything doesn't seem to work in the newest update, so I'm just asking if there's been some new way added to make them.

Simply put, is there a way to make a cube balance solely on one point/vertex?  I'm struggling. I do not want to have to join two objects, nor have to extrude an object. I just want to have a simple eight-sided die created with one mesh.


Gravitational lensing causes light to be bent.If light changes direction how can it be travelling with constant speed?Where am I wrong.Thanks for any help.

Photons travel at the fastest speed in our universe, the speed of light.  Do photons have acceleration?


Hello I have a JavaScript button which used location.replace('some url with parameters') onclick and I used this button in few layouts . Now my org is moved to lightning and please suggest me the best way to implementing this in lightning. I learned that I can do this from quick actions but not getting exact idea of how to implement onclick functions in lightning.

We depend on a javascript button to allow our salesforce screens to interact with another web application. We read some elements from the salesforce contact, and then call a js func hosted on another web site to pass that contact info to the other web site. The js func has a call back, so when the other web site is finished, our js in salesforce can save some data to the salesforce contact.  But.... as lightning lacks javascript buttons, we have been locked out of lightning.  I just found this:    But it is not clear: Can I do a javascript button now in lightning, or do I still need to wait for more pieces from salesforce?  We would love to have a path forward with lightning.


I cannot distinguish if "could" in the following sentences shows "possibility" or "hypothetical situation".  A study published last week in the journal Cell found that antibodies in llamas’ blood could offer a defense against the coronavirus. The hope is that the llama antibodies could help protect humans who have not been infected.  I would be happy to receive your replies.

Please let me know if could in the following sentences shows a hypothetical situation or possibility.   He couldn’t lift that. It’s too heavy. He could lift that. It is not too heavy.


I am looking for the difference meaning between 'I don´t care' and 'I don´t mind'  Thank you

From an :     “don’t mind” sounds very polite and gentle. It’s like the person is   saying “It’s ok with me.”; however, “don’t care” sounds stronger and   it’s like the person is saying, “It doesn’t matter to me”.`   I'm curious: is it really just a matter of stronger emphasis, or is there more to it?


SX. I want frame number to have right alignment and frame title left alignment. And command \hfill does not help me with it. `  \documentclass[10pt]{beamer} \usepackage[utf8]{inputenc}  \usepackage[T2A]{fontenc} \begin{document} \begin{frame} \frametitle{Title \hfill\hfill\insertframenumber} \end{frame} \end{document}   `

I'm using a  developed by Christian Gogolin and I'm struggling to get the desired effect using the \hfill command in \frametitle{} in order to have a beamer button aligned completely to the right in the frame title.  Here is a MWE, using Gogolin's own wuerzburg beamer outer theme:  \documentclass[xcolor={x11names,svgnames,dvipsnames}]{beamer}  \usepackage[T1]{fontenc} \usepackage{lmodern}  \useoutertheme[nofootline]{wuerzburg} \usecolortheme{shark} %\setbeamertemplate{frametitle}[default][none] % uncommenting this gives proper placement but overrides the frametitle definition of the outer theme.  \begin{document}  \begin{frame} \frametitle{This is the frame title \hfill \beamergotobutton{right}} Some text \end{frame} \end{document}   This is the result:    The "right" beamer button is not aligned right as expected; its absolute position also changes based on the lenght of the title text.  I tried to implement the advice given : using \frametitle{Title \hspace{1 filll} Logo} (1 filll or 1 fill both do not work).  Using \setbeamertemplate{frametitle}[default][none] gives proper placement but overrides the frametitle definition of the outer theme.  I imagine that the fix would involve the definition of frametitle template in the wuerzburg theme:  \defbeamertemplate*{frametitle}{wuerzburg theme}[1][left] {   \nointerlineskip   \ifbeamercolorempty[bg]{frametitle}{\vskip0.5ex}{%     \hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@frametitletopmshade}\hskip-\Gm@rmargin}     \nointerlineskip%   }%   \@tempdima=\textwidth%   \advance\@tempdima by\beamer@leftmargin%   \advance\@tempdima by\beamer@rightmargin%   \begin{beamercolorbox}[sep=0.3cm,#1,wd=\the\@tempdima]{frametitle}     \usebeamerfont{frametitle}%     \vbox{}\vskip-1.7ex%     \if@tempswa\else\csname beamer@fte#1\endcsname\fi%     \strut\insertframetitle\strut\par%     {%       \ifx\insertframesubtitle\@empty%       \else%       {\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}%       \fi     }%     \vskip-1.3ex%     \if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...   \end{beamercolorbox}%   \nointerlineskip   \ifbeamercolorempty[bg]{frametitle}{}{%     \hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@frametitlebottomshade}\hskip-\Gm@rmargin}%     \vskip-1.5pt%   }% }   But I can't figure out what goes wrong here: the text width seems to be correct and I don't understand the role of \strut\par around \insertframetitle.  Any help is appreciated.


I started by listing all the possible values of the sides with regard to the Triangle Inequality. To me, there are only 2 possible triangles: 222 and 231. Finding the area of 222 is easy, but how would I find the area of 231?

Using Lagrange multipliers, it can be shown that a triangle with given perimeter has the maximum possible area, if it is equilateral. Is there a simple geometric proof of that fact ?


I'm trying to recall a word used to describe cases of hyperbole where a speaker refers to a given subject as the ultimate example of something.   For example, President Trump stated, "I am the least racist person you've ever interviewed" to a reporter recently.  Or if a student were to state, "I am the most open-minded person you will ever meet in your entire life."  Thanks!

I'm looking for a single word to most aptly describe a person possessing the following "qualities":   Appears to be superior in every technology/skill under the sun, which he deems worthy of knowing On being questioned/assigned the task, is found to have only superficial/no knowledge of the said skill. Inherent tendency to "one-up" anyone and everyone - example: "I didn't work hard at all in my undergrad days, but yet I have better/equal grades than you have! "   Could someone help?  Edit: I've got some very good responses, but despite popular opinion for "braggart", I'm going with "pretentious" as it suits what I was looking for more aptly IMHO.


I'd like to create a key strong such that the title of a frame appears in orange on a gray background when I enter \begin{frame}[strong].  The problem is that the change becomes global.  Is there a way to do so such that only frames with the strong key are modified?  \documentclass{beamer}  \makeatletter \define@key{beamerframe}{strong}[]{%   \setbeamercolor{frametitle}{bg=gray,fg=orange}} \makeatother  \begin{document}  \begin{frame}   \frametitle{My Normal Title} \end{frame}  \begin{frame}[strong]   \frametitle{My Strong Title} \end{frame}  \begin{frame}   \frametitle{My Normal Title}    This title should be normal \end{frame}  \end{document}

I am working on a beamer template which tries to mimick an existing .ppt-template from my institute. My problem now is, that the beamer template should be able to have frames with different styles for the headline within a single presentation. (do not ask why this would be necessary, I do not know)  After having a look into beamerbaseframe.sty and playing a bit with frame options, I came up with the following code  \documentclass{beamer}  \usetheme{mytheme}  \begin{document}      \begin{frame}         left     \end{frame}       \begin{frame}[rightslide]         right     \end{frame}       \begin{frame}         should be left again :(     \end{frame}       \end{document}   using beamerthememytheme.sty  \setbeamertemplate{headline}{%     \rule{.5\paperwidth}{14mm} }  \define@key{beamerframe}{rightslide}[true]{%     \setbeamertemplate{headline}{\hfill\rule{.5\paperwidth}{14mm}}% }   So the question is now: how can I revert to the default headline after the slide with the option rightslide?


We are using a trigger framework by  and I have a basic question about it. Why when I use Trigger.New inside one of the methods I have to cast it to a List of cases in order to use it?   public class CaseTriggerHandler extends TriggerHandler {      public CaseTriggerHandler() {         this.setMaxLoopCount(35);     }      private static Boolean isMethod1 = false;      protected override void beforeInsert(){         if (!isMethod1) {              method1(Trigger.new);              isMethod1 = true;         }      }      private void method1() {          for(Case c: (List<Case>)Trigger.New) {}      //<------------------      } }   If I write for(Case c: Trigger.New) then I get this error:     Operation: Compiling: C:\Users\Dante\proj\src\classes\CaseTriggerHandler.cls   Timestamp: Sun, 27 Aug 2017 18:29:00      Result: [OPERATION FAILED]: classes/CaseTriggerHandler.cls: Invalid loop variable type expected SObject was Case (Line: 1324, Column: 9)   Can someone explain?

I have written a method which I will call in a Trigger.While trying to save this code as Apex class, I am getting the error " Error: Compile Error: Loop variable must be of type SObject at line 7 column 13"   My code goes as below ,appreciate any help, thanks  public class LeadBefore {     public static void UpdateChapterEmailAddress (){          set<Id> JDRFLocationId = new set<Id>();         List<Lead> vLstLead = new List<Lead>();           for(Lead vLead:trigger.new)         {             if(vLead.JDRF_Location__c != null)             {                 JDRFLocationId.add(vLead.JDRF_Location__c);                 vLstLead.add(vLead);             }         }         Map<Id, JDRF_Location__c> vMapIdJDRFLocat = new Map<Id, JDRF_Location__c>([Select Id, Name, General_Email_Address__c from JDRF_Location__c where Id In: JDRFLocationId]);         for(Lead vLead: vLstLead)         {             if(vMapIdJDRFLocat.containsKey(vLead.JDRF_Location__c))             {                 vLead.Chapter_Email_Address__c = vMapIdJDRFLocat.get(vLead.JDRF_Location__c).General_Email_Address__c;             }         }     } }


If I want to prove a function $f(t)$ is continuous at $ t_o$.  By def of continuity, I need to show that for $\epsilon >0 $, there exist $ \delta>0$ s.t  $ |t-t_o| < \delta$ implies $ |f(t)-f(t_o)|< \epsilon $ .    If in order to show this, I need other condition to satisfy along with a bound on $ |t-t_o|$ to control $|f(t)-f(t_o)|$, then does it satisfy the def of continuity? since it seems that the only thing that we can control is $ |t-t_o|$ based on the definition of continuity.    For example, suppose $ h(t): [0,1] \to \mathbb{C}$ defined by $$ h(t) = \int_{\gamma_t} f(z) dz$$ where $\gamma_t $ is a family of closed curves for each $t \in [0,1] $ in $\mathbb{C}$.  If we want to show that $h(t)$ is continuous at $T$ in $[0,1]$, then we need to bound  $$ |h(t)-h(T)| = \bigg| \int_{\gamma_t} f(z) dz - \int_{\gamma_T} f(z) dz \bigg|$$ By triangle inequality, this is less than or equal to  $$ \bigg| \int_{\gamma_t} f(z) dz - \sum_{k=1}^n f(\gamma_t(t^*))(\gamma_t(p_k)-\gamma_t(p_{k-1}) ) \bigg|$$  $$ + \bigg| \sum_{k=1}^n f(\gamma_t(t^*))(\gamma_t(p_k)-\gamma_t(p_{k-1}) ) - \int_{\gamma_T} f(z) dz \bigg|$$ where $ P = \{p_o, p_1,...,p_n\} $ is a partition of the interval of integration.  Now suppose that I can control the first term to be less than $\epsilon/2$ by increasing the partition $P$ and I can also bound the second term to be less than $\epsilon/2$ by controlling $ |t-T| $. Then does this satisfy the def of continuous ? since I need to control not only $|t-T|$ but also the partition $P$ to achieve this???  sorry for the confusing question, thank you.


I tried to install webmin to my 18.04 erver. i folloved  's method.  When i did   sudo apt install webmin   The outpu was like:     Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  webmin : Depends: libauthen-pam-perl but it is not installable           Depends: apt-show-versions but it is not installable E: Unable to correct problems, you have held broken packages.   Thank you all your answes, Peter

How do you use terminal to enable Universe source? Or any those 4 from Software Sources: Main, Universe, Restricted, Multiverse Main is on by default and Restricted is on if durring Ubuntu installation i tick Enable Restricted Formats. Answer with line where version checked so it auto detects it. Like command I know for partner but that goes to Other Software tab sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"


I recently added another RAM module and while it is supported by my motherboard I'm not quite sure if it's of the same type as the one my notebook shipped with. How can I tell what RAM modules are used in my pc?

How shall I find out the frequency and type of my current RAM? My OS is Ubuntu 12.04.


Does there exist a metric under which $\mathbb{R}$ is incomplete?

I have to show that the real numbers equipped with the metric $ d (x,y) = | \arctan(x) - \arctan(y)| $ is an incomplete metric space.  Certainly, I have to search for a Cauchy sequence of real numbers with respect to given metric that must not be convergent. But I am unable to figure out that.  Can anybody help me with this.   Thanks for helping me.


We know changing magnetic flux induces electric field which makes current to flow .here in the below picture the flux is changing through only circular coil bout not through the rectangular part.so what induces electric field in rectangular part for current to complete the circuit ..Note that the electric field is required inside awire to make the current.]

We know changing magnetic flux induces electric field which makes current to flow .here in the below picture the flux is changing through only circular coil bout not through the rectangular part.so what induces electric field in rectangular part for current to complete the circuit ..Note that the electric field is required inside awire to make the current flow.


I found a tutorial in this  showing how to install Ruby. The problem is I found the terminal is asking to install packages that are already installed   Reading package lists...  Installing required packages: gawk, g++, libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, libffi-dev

I am interested in setting up a Ruby on Rails environment on my 10.10 laptop.   Is there anything special I need to keep in mind for installation (i.e. that could be new or unique to 10.10)?   Are there any suggested walkthroughs that I could follow along with?  Thanks in advance.


function sixthDate() {   var curr = new Date(); // get current date   curr.setDate(curr.getDate() + 6);   return curr; } console.log(sixthDate());     It is just showing me same 6th date every time! But I want the next 6th date everytime I call ( like : 18 june 2020 + 6 = 24 june 2020 , 24 june + 6 = 30 june ).

How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?


We have some Win7 Machines that don't use the shutdown Button but a custom Tool that checks for online PCs and shuts down the NAS if it is the last one online. Everything works fine but I use the command Process.Start("shutdown", "/s /t 0"); to shutdown the pc and it seems that this ignores pending updates. This results in the PC automatically shutting down some day while doing important stuff without saving.  Question how can the command be modified to do updates and shutdown instead of just shutting down. The cmd command would be enough, I can translate that into C# with no problem.  Sorry if this was asked multiple times but I need to be absolutely sure that my changes work...

I know that there is a simple way to shutdown the computer in command prompt, but is it possible to do system updates and then shutdown the computer in command prompt?   For example, when Vista needs to install updates, it will let me install them and shut down by clicking the Shut Down button (while relegating the normal shut down button into the menu). So is there a command to do this in command prompt?


When I try to install software I get this:  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I keep being told to enter apt-get -f install but when I do I get this message:  owner@owner-1005HA:~$ apt-get -f install E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   So, I need help with what it means and how to fix this.

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


Please forgive the vague details I have here. I heard about this story in passing and wasn't able to learn the title.  From what I gather, the story is set in a future time where food is so scarce that currencies as we know them have been replaced by calories. People trade them for actual food. People are given a base allowance of enough calories to keep them alive but starving, and they have to work in order to earn more calories.

I've been looking for the name of a sci-fi romance book about space travel but haven't been successful so far. I came across it a few years ago, read the plot on its back cover but didn't read the book. It is about two spacecraft pilots, a man and a woman, who travelled at light speed (or maybe FTL, I can't remember) in separate ships. Every time they return to Earth, centuries have passed on Earth because of time dilation. They meet each other for a few times on Earth in different eras, but don't know when, if ever, they will meet again. I don't know how it ends.   If anyone knows which book I'm talking about, could you please tell me the name? Thanks a lot!


I want to design/use a widget like this.    My main intention is to vary the green/yellow/blue portion/percentage as per the need. Is there any widget available like this.

Would anyone recommend a particular JavaScript charting library - specifically one that doesn't use flash at all?