How can you create the JavaScript/JQuery equivalent of this Java code:  Map map = new HashMap(); //Doesn't not have to be a hash map, any key/value map is fine map.put(myKey1, myObj1); map.put(myKey2, myObj2); //Repeat n times  function Object get(k) {     return map.get(k); }

As made clear in update 3 on , this notation: var hash = {}; hash[X]  does not actually hash the object X; it actually just converts X to a string (via .toString() if it's an object, or some other built-in conversions for various primitive types) and then looks that string up, without hashing it, in "hash". Object equality is also not checked - if two different objects have the same string conversion, they will just overwrite each other. Given this - are there any efficient implementations of hashmaps in JavaScript? (For example, the second Google result of  yields an implementation which is O(n) for any operation. Various other results ignore the fact that different objects with equivalent string representations overwrite each other.


I've tried to install boot repair and failed  sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt-get update   The error is:  $ sudo apt-get install -y boot-repair Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package boot-repair   I've never had this error before on other versions of Ubuntu or Mint, though.

After upgrading Ubuntu 13.10 to 14.04, grub failed to load Ubuntu and threw the error symbol 'grub_term_highlight_color' not found. I followed the solution offered in the  but this failed for me, throwing the error failed to get canonical path of /cow.   Now, I'm trying to install Boot-Repair to fix this problem on a live pen-drive, using these commands.   sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && (boot-repair &)   But after adding and updating the repositories, it shows ppa:yannubuntu/boot-repair 404 Not Found error.  W: Failed to fetch http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found   Is this problem solvable or is there an alternative PPA for Boot-Repair?


I'm using Ubuntu 18.04.3 and I'm not very educated about it. Can you describe to me what is the easiest way to hide or change my IP adress while I'm using my browser ( Chromium ).

I'd like to watch BBC Iplayer...but it only works in the UK. I am currently living in Spain. Is there a way to hide my ID and make the bbc website believe that I have a UK IP or something?


I am not exactly sure why the hashCode() method is returning the same value. Can someone provide more detailed explanation of this?  Source code (Java):  public class Equality {  public static void main(String [] args) {     String str = "String";     String strOne = new String("String");        System.out.println(str == strOne);     System.out.println(str.equals(strOne));      System.out.println(str.hashCode());     System.out.println(strOne.hashCode());  }   }

What issues / pitfalls must be considered when overriding equals and hashCode?


There is no cute pdf writer. How can i convert excel spreadsheet 2007  to pdf in linux

Does anyone know how to convert an ODT file (LibreOffice) to PDF?


In my PhD thesis, I often used the first person singular during the description of the problem and the discussion of the results. One comment from the reviewer states that because I did not use the third person, the entire thesis must be revised accordingly.  I understand that in a journal article one should use the third person to describe the problem and discuss the findings. However, I always supposed that one can use the first person in a PhD thesis because I saw many researchers doing so. Could anybody give me a suggestion about how to deal with the reviewer who doesn't accept my choice to write in the first person?

Is there a non written rule to which person to use in the PhD thesis, 5 years of using "We" in the papers have brought me to the innate necessity to do it every time I describe something.  Recently, though, one of my lab-mates told me that I should use I, since it is your work, if the thesis were co-written, then it would be a different story.  Is there any standard in your universities, or do you have any preferred practice.


Background about site : I have a website which is similar to question and answer site like StackOverFlow, but NOT user generated content and only one answer. Me and a few friend create the pages / posts. And this site is for programmers.  Example Page of my website:     How to Add your WordPress custom post types to your sites main RSS feed by   default?      Registering a custom post type does not mean it gets added to the main   RSS feed automatically in WordPress.You need to use  to add custom   post types to main RSS feed.  // Add 'books' custom post types on main RSS feed function add_book_post_types_to_rss($qv) {     if (isset($qv['feed']) && !isset($qv['post_type']))         $qv['post_type'] = array('post', 'books', );     return $qv; } add_filter('request', 'add_book_post_types_to_rss');    Currently we have 75+ posts and we hope to add 500+ pages within two years. Almost all pages are very similar to above page.  The problem we have faced  We targeting mostly SEO traffic for this site. But we have very less organic traffic even our website is one year old.  We thought following reason is the main reason for it.   Lack of content in single page / post : As you already see this page has about just 50 words and we don't like adding some garbage words to just increase word count. We are focusing on adding more pages/ posts and make big resources collection about WordPress, PHP, JavaScript, etc.   Is there any solution for overcome this problem?

What are the best ways to improve a site's position in the Google search results?


i have a problem with my code, when I write content in my admin dashboard, the textarea to make a new line not working, what's wrong with my code ? this is the view
     <?php      if(isset($error_upload)) {         echo '
         <button type="button" class="close" data-dismiss="alert" aria-label="Close">                         &times;                     </button>' . $error_upload . '
';     } ?>

                     <?php                          echo form_open_multipart('artikel/input');?>

                                     Judul                                     <input name="judul" class="form-control" type="text" value="" id="example-text-input" placeholder="Masukkan judul" required>

                                     Konten                                     <textarea name="konten" class="form-control fwMultilineTextbox" aria-label="With textarea" style="width: 800px; height: 400px;" placeholder="Masukkan konten" required></textarea>

                                     Masukkan Gambar                                     <input type="file" name="gambar" class="form-control-file" id="exampleFormControlFile1">

                                     <button type="submit" class="btn btn-success btn-sm mb-3"> Simpan</button>                                     <button class="btn btn-info btn-sm mb-3" onclick="goBack()"> Kembali</button>
                                  <?php echo form_close(); ?>

How do I save user-entered line breaks from a <textarea> HTML element to a database?  It always removes the line breaks.


Why is the radius of curvature the reciprocal of the curvature? How to see this intuitively as well show it rigorously?

My textbook Thomas' Calculus (14th edition) initially defines curvature as the magnitude of change of direction of tangent with respect to the  arc length of the curve (|dT/ds|, where T is the tangent vector and s is the arc length) and later by intuition conclude that κ = 1/ρ (where, κ=curvature,ρ = radius).   Is there a way to prove this equation mathematically ?  Edit: If curvature was defined as the inverse of radius of curvature, then how does the textbook define and derive an expression of curvature first and then provide a relationship between it and the radius of curvature.


I'm new in c#.  I have read many examples regarding yield keyword but still don't understand the usage,so i have created an example to as you help me understand it.  Here is class which returned using yield:  public  IEnumerable<int> returnWithYeil() {     List<int> testList = new List<int> {5,6,7,8,9,10 };                         foreach (int i in testList)     {         if (i > 6)         {             yield return i;         }     } }   here i call it:   foreach (var number in cls.returnWithYeil())         Console.WriteLine(number.ToString());   here is a method without using yield :  public IEnumerable<int> returnWithoutYeiled() {     List<int> testList = new List<int> { 5, 6, 7, 8, 9, 10 };     List<int> temp = new List<int>();     foreach (int  item in testList)     {         if (item > 6)         {             temp.Add(item);         }     }      return temp; }   here i call it:  foreach (var number in cls.returnWithoutYeiled())         Console.WriteLine(number.ToString());         Console.ReadLine();

In the  question one of the answers had the following code snippet:  IEnumerable<object> FilteredList() {     foreach(object item in FullList)     {         if(IsItemInPartialList(item))             yield return item;     } }   What does the yield keyword do there?  I've seen it referenced in a couple places, and one other question, but I haven't quite figured out what it actually does.  I'm used to thinking of yield in the sense of one thread yielding to another, but that doesn't seem relevant here.


Someone is trying to hack my website, I have a website built on PHP (7)/MySQL in Laravel framework. The owner of the /var/www is www-data and folder permission is set 700 for all folders and file permissions are set to 600. Still, the hacker is able to modify the content of index.php and also he was able to delete few PHP  files. The server is Ubuntu 17.04 and the web server is Apache.    I need immediate guidance on how he is able to write files in a folder which has a permission 700. I would really appreciate your help and guidance. Please let me know if you need more details to understand the problem.

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


So I have a friend who had an ssh server running on his Raspberry Pi (This question isn't a problem specific to RPi, so that's why I'm posting here). I logged in over ssh, and ran :(){ :|: & };:, as a joke. He texted me and asked me what I did, and why his Pi was lagging so bad, and I told him and he sent back the laughing emoji. He asked how to fix it, so I told him to reboot. He did and told me that it was still lagging, but he had a minute or so before it froze up again. I did not know that the fork bomb would persist after a reboot. He has managed to (kinda) fix this. I just asked him what he did, and he replied with "First I tried ulimit, that had minimal effectiveness. Then, I ran a while loop from terminal that killed the process every second." I have no idea how he got the process name to kill.  So the problem is that even though there is a script running to kill the processes every second, his Pi keeps jumping off of the network. I don't know why this is happening. How can we completely eradicate the fork bomb?  (By the way, he is not mad at me [That I know of], and he has said he is not mad)

To prevent fork bomb I followed this   ulimit -a reflects the new settings but when I run (as root in bash) :(){ :|:&};: the VM still goes on max CPU+RAM and system will freeze.   How to ensure users will not be bring down the system by using fork bombs or running a buggy application?  OS: RHEL 6.4


In the special theory of relativity, each event is a point in 4d spacetime. And we can represent our life as a world line in the spacetime. Then, if we somehow find out the mathematical equation of somebody's world line, then can his future be predicted?

I'm not sure if this is the right place to ask this question. I realise that this maybe a borderline philosophical question at this point in time, therefore feel free to close this question if you think that this is a duplicate or inappropriate for this forum. Anyway, I'm an electrical engineer and I have some basic knowledge of quantum mechanics. I know that Schrödinger's equation is deterministic. However, quantum mechanics is much deeper than that and I would like to learn more. If this question is not clearly answerable at this point than can anyone point out some recognized sources that try to answer this question. I would appreciate it if the source is scientific and more specifically, is related to quantum theory.


I'm having issues where my texts are sending through my iCloud. I've read the other threads in here and tried the following:  Go to Settings → Messages → Send & Receive  However, under "you can be reached by iMessage at" has my phone number greyed out and two email addresses (my icloud and my apple email).  Under "start new conversations from" it only shows my email addresses and not my phone number.   I think this is also affecting my ability to send texts via my Apple Watch.

iMessage won't verify my phone number. When I try to select my number for messages to be sent, it's greyed out. So I receive my iMessages over email which I don't want to do.   I've tried: turning iMessage on and off, resetting network settings, rebooting my phone and nothing's worked.   Any ideas?


I am trying to retrieve all the files(no directories) which doesn't end with .txt and store it in a variable or array.  My command is running properly in the command line. I don't have any editor in the unix server(aws). so I am writing script in windows notepad++(EOL conversion unix) and copying the script into the server and running the script from command line. I am getting a syntactical error.  PFB code: #!/bin/bash var1=$(ls -p !(*.sh) | grep -v /) echo $var1   Error: ./test4.sh: command substitution: line 3: syntax error near unexpected token `(' ./test4.sh: command substitution: line 3: `ls -p !(*.sh)|grep -v /)'

Say I want to copy the contents of a directory excluding files and folders whose names contain the word 'Music'.  cp [exclude-matches] *Music* /target_directory   What should go in place of [exclude-matches] to accomplish this?


Something just happened which caused the beta site names to be prefixed by a > sign. For example, on :        This does not appear to affect graduated sites.

I'm relatively certain that's not supposed to be there.


Below is my sum program in Python.  import time start_time = time.time()  sum = 0 for num in range(0,10000001): sum = sum + num print(sum) print("--- %s seconds ---" %.2f (time.time() - start_time))   Output:  50000005000000 --- 6.02535605430603 seconds ---   The question is how to get the output up to 2 decimal points.

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


I am working with Alteryx and I really have troubles writing regular expressions.  My data sample:  /abc/04. bcc/cc /ab bn/uat/ab /abnm ag/adgr gada/rfd/dfd/cv   I need two regular expression sentences to get the part of string in the first / / and the other in the second / / in two separate columns.  Desired result:  First column:  abc ab bn abnm   Second column:  04. bcc uat adgr gada

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


My sw ntfs shared directory is an installation directory on a windows 2008 server. I'm using Ubuntu 12.04  I did the mkdir /media/sw and smbclient -L successfully... then while in root I tried   mount -t cifs -o user=username,ro //132.72.116.14/sw /media/sw    and got:   mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Via Gnome Nautilus I can easily mount Samba shares from my Ubuntu Server.  However, these "mounts" are kinda of fake.  Many applications I run do not recognize that Gnome has mounted these server folders and therefore cannot open files off my server.   In the past I created an /etc/fstab entry and mounted them globally, the /mnt folder, but this isn't going to work as other people share my Ubuntu laptop.  What's the easiest way to create a "real" samba mount in my (and other people's) home directory?  It's fine if its a command or a GUI application that can run when I log in.  These server folders don't have to be mounted all the time.


Addressing this problem:  Let X1,...,Xn be independent identically distributed exponential variables with parameter θ, i.e. with pdf, f(x)=(1/θ)*exp(−x/θ). What is the distribution of the sample variance, Xbar - Xbar^2?  This is to be done by proof, not by simulation/sampling. Everything online says simulation/sampling, so is there no formal mathematics for determining this distribution?

Addressing this problem:  Let $X_1, ..., X_n$ be iid exp($\theta$) with pdf,  $f(x)=\frac{1}{\theta}e^{-\frac{x}{\theta}}$. What is the distribution of the sample variance?  This is to be done by proof, not by simulation/sampling. Everything online says simulation/sampling, so is there no formal mathematics for determining this distribution?


To elaborate a bit more, let's say I have a tex file like this:  \documentclass{article} \usepackage[style=ieee,backend=biber]{biblatex} \addbibresource{references-global.bib}  \begin{document} \cite{myref1,myref2} \printbibliography \end{document}   In its folder, there is no references-global.bib file, so naturally I have an error when biber is called:  ERROR - Cannot find 'references-global.bib'!   My question therefore is: can I place this references-global.bib in a location where it would be found by biber regardless of where my tex file is located (much like a package or so)

Possible Duplicate:          I recently started using TeX to write journal articles. I use TeX Live version 2009-10 on a laptop running Ubuntu 10.10 (64-bit). I edit and compile the tex files using vim and vim-latexsuite.   Currently for each journal article I have all associated tex, bib, eps, etc. files in individual folders. I would like to simplify my life a bit and have a dedicated folder containing a "master" bib file - And maybe another folder for my custom style files.   My problem is that can't figure out how I should define the PATH, and other environment variables in my .bashrc file to find the necessary support files (e.g., the .bib file). Which variables do I need to set? PATH? MANPATH? TEXINPUTS? BIBINPUTS?


In general English doesn't seem to cater well for identifying relationships between people, and the classic example seems to be the term 'cousin' because you can't really work out whether it is someone from your father or mother's side, and you can't even work out if they are male or female. Is there a reason why these words don't exist in English whereas in a language like Chinese this is well established? I thought it might be because back then there are larger families in China and it is difficult otherwise to identify people specifically, but then in English we do have words like uncle and aunty (without specifying the side of the family they are from), and we do have words like brother-in-law or mother-in-law to identify other types of relationships.

Please refer the following questions asked elsewhere on this site:       I am a native Hindi speaker; Hindi has a plethora of terms referring to relationships. To take a trivial example, the term uncle may refer to father's elder brother, father's younger brother, mother's brothers, father's sister's husband, mother's sister's husband, all of which have specific addresses in Hindi.  I discussed the same with one of my teachers. She had the opinion that the development of language mirrors the cultural moorings of the society that uses the language. Now, since all of the above relationships have distinct status and reverence in the Hindi speaking society, that calls for different addresses. That may well not be the case in English speaking societies.  Is that correct? What other linguistic reasons may account for such a dearth of vocabulary in English in this area?


This question has always haunted me, so I decided to settle it for good. Suppose I am saying "We provide space-and time-efficient algorithm for approximating [the number of cats in apartment building]". Here, is my us of hyphen in "space-and time-efficient" correct?  EDIT: So, one way of saying this is "Our algorithm is space efficient, and also time efficient". Now, I would like to shorten this by something like "space-and time-efficient". My question is, do I need a hyphen after "and"? Or, how to correctly hyphenate in this particular case? Although the links in the comments do deal with similar problems, their case is just that -- similar, but not identical to mine.

I wrote:     An open -source and -society loving person   and had this corrected by a native English speaker to      An open-source-and-society loving person   Which to me changes the meaning of the phrase. The first one is meant to be short-hand for prefixing both "source" and "society" with "open", while the second one does not seem to connect "society" with "open".  Is either of the forms more correct than the other? Should it be written differently all together?


For a programming class, we have to make a procedure that only take in as parameter the pointer for an array: void myprocedure(int * myArray) and then outputs the elements in it. Since I only know how to do so using a for loop,I tried first to calculate the length of the array by using the line sizeof(myArray)/sizeof(int), only to later realize that sizeof(myArray) doesn't give the size of said array, but rather the size of the pointer.  I need a code that would either let me calculate the size of the array from my procedure, or output the elements in the array without having to know how much are there in.

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


Something I have been wondering for a while is looking at cancer from an evolutionary standpoint.  It's easy to conclude (from observations today) that cancer is something we would rather avoid. However I kept asking myself what would be the purpose of cancer existing in the first place? In my experience of studying biology if a organism or mechanism in nature exists it is because there was a pressure to create it.  It has led me to think that perhaps early on, when cells were just beginning to clump together forming very very primitive organisms, that cancer was a way for a cell to proliferate very quickly and make their particular genomic sequence more common within what would have been organisms made of a lump of cells. Perhaps the different organs we have today exist not just because there was environmental pressure to have a specific organ with a specific function. Perhaps the cells descended from a "cancer" that proliferated faster over other cells in a primitive ancestor of that organism.  The answer that "cancer exists because our bodies make mistakes" doesn't satisfy me when everything else around us evolved and formed due to a multitude of different pressures.  In an effort to make this question less broad my question is basically this:  Is it plausible that cancer is a phenomenon that began to occur relatively early in Earth's evolutionary history as a form of survival for cells in primitive organisms or am I applying evolutionary theory incorrectly?  (I know there is a better word for "pressure" to describe the variables that guide evolution but right now my brain can't come up with anything better).

Could cancer be in itself a evolutionary process? Maybe in some way could it be a process of variation? Or would this idea be completely without support, if so, why?   I don't mean that each case would lead to evolution, but that within an entire group of organisms, it could lead to case of of individuals developing ways to resist what caused the cancer, maybe in cases of individuals beating the cancer or in cases of successive generations of off spring from individuals with cancer?   Could it be possible that in rare cases it could lead to the development of new organs or specialized cells?


In the manual [1] on page 90, there are two charts shown. The upper one is of interest for me. (The cyclic with the percentages. It's like a loading bar.)  Could someone point me, how I could draw that? If there is the code somewhere in the manual, tell me. I wasn't able to find that.    [1a]  (old) [1b]  (actual)

I really like the 'ring chart' or 'wheel chart' given as an example on page 88 of the PGF manual. It is like a pie chart, but with a label in the centre. Unfortunately, the manual doesn't give the source for that chart. Does anyone have an example? Thanks.


I have a picture, drawn with tikz, that contains a few slanted hyperrefs (in fact, document-internal references). For these, the colored underline that I have told hyperref to draw are not slanted, so they greatly impair the prettiness of the drawing.  Is there a way to modify hyperref’s options, in particular hidelinks and/or colorlinks only temporary?

I found that the link-color for TOC text is identical to the link-color for Figures and Tables. When I change the color to black in the TOC also the color for Figures/Tables citation etc. is changed.  Is there a way to separately set the colors inside the TOC and outside?


What for are these red lines in that ? They don't seem selectable

There are red and pink edges on my mesh.  What do these colored edges mean? How can I use them?


I am trying to add js by #attached, as I understand it's better from a caching perspective then drupal_add_js(). I try to use hook_page_alter() in template.php. I have the following code:       function mytheme_page_alter(&$page) {  $theme_path = drupal_get_path('theme', 'mytheme' );    if (!isset($page['content']['#attached']))     {       $page['content']['#attached'] = array       (         'js' => array(),       );     }    $page['content']['#attached']['js'][] = array($theme_path . '/test.js'); }   (this is adapted from , I first tried to attach [#attached] directly to $page by means of  $page['#attached'] = array... , but as I faced the problem described below I tried to test some code suggested by other people).   The problem is that the elements of the js are not properly set. After the 'js' => array(), The Aptana Debugger shows what I'd expect :    After $page['content']['#attached']['js'][] = array($theme_path . '/test.js'); , however, the array values are not set:  Still the value of array($theme_path . '/test.js')is what it 'should' be:      It's as if the ascription did not go through. What did I do wrong?

I tried to add js to pages by means of #attached, as it seems to be the recommended way. From what I understand, this involves altering a render array. hook_page_alter seems to me like good candidate.      As per  (and answers below), I came with:   function MODULE_page_alter(&$page) {   $my_path = drupal_get_path('module', 'MODULE' );   $page ['#attached']['js'][] = array(     'js' => array(     'type'=>'file',     'data' => $my_path . '/module_test.js'),   ); }   The file does not get attached, though. If I use    drupal_add_js($my_path . '/module_test.js');   it does get attached (it's not a problem of the js file, access persmissions, etc.).  What is wrong?  PS. I asked a related, but apparently wrong-headed question


I am getting errors while running 32-bit windows applications via Wine 1.7 on Ubuntu 14.04 64-bit. Please help.

Currently I'm running Ubuntu 11.10 64 Bit on my laptop and I want to install some Windows programs with Wine (Dreamweaver CS5/Starcraft II etc) but these programs require the 32Bit version of Wine to work even being in a 64Bit environment... I'm a Fedora user most of the time and in that distro installing 32Bit versions of apps inside of a 64Bit system is never a problem, but didn't find a way to do that on Ubuntu.


I have a problem with jquery. I created a new project and in my project you can add html tags to an article tag with jquery like 2 col or 3 col with this code:  this is my html code
    Plaese Click Me!
   and when I click on an article tag, I run this code  jQuery("article").click(function (e) {     var name = $(this).attr("name");     $(".object").attr("name", name);     alert(name);     e.stopPropagation(); });   and when I click on an object button, I add these html tags to article tag with this jquery code  $(".object").click(function () { var name = parseInt($(this).attr("name"), 10); var id = '#' + name;  var content;      content = "
salam

Bye
"; $(id).html(content); });   and when I click again on an article child jquery give to me parent name and I want when I click on child article tag give me child name  thanks

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


In ubuntu 18.04 desktop, I used to install gnome-open via: sudo apt install libgnome2-bin  So that I could open a folder from terminal via command line, e.g: gnome-open /mnt/star/note  But, seems in ubuntu 20.04, libgnome2-bin is not available, so how can I install gnome-open, or how can I open a folder from terminal via command line?

I used to open images with gnome-open from a terminal, but after installing Ubuntu 18.04, the library is missing and if I search from apt, it shows:  ➜  data git:(master) ✗ apt search gnome-open                    [18/06/14|11:35AM] Sorting... Done Full Text Search... Done libgnome2-bin/bionic 2.32.1-6 amd64 Deprecated GNOME 2 library - binary files   Are there any substitution for this command?  Thank you!


Let $ (G,\cdot ) $ be a group and let $ a $ be the only element of the group which has order 2. Prove that $ a\cdot x=x\cdot a,\forall x\in G $ .

I'm stuck at this question. Can someone please help me?     Prove that if a group contains exactly one element of order 2, then that element is in the center of the group.   Let $x$ be the element of $G$ which has order 2. Let $y$ be an arbitrary element of $G$. We have to prove that $x \cdot y = y \cdot x$.  Since $x$ has order $2$, \begin{equation} x^2 = e \end{equation} That is, \begin{equation} x^{-1}=x \end{equation}  I don't really know how to proceed. I've tried a number of things, but none of them seem to work.


KDE Wallet keeps popping up whenever try to add or remove connections in the Network Manager. I would like to disable the KDE Wallet system altogether.  In Kubuntu 14.04 I could disable KDE Wallet from System settings → Account Details → KDE Wallet. However, in Kubuntu 15.04 I can't find any option to disable KDE Wallet anymore.  I've removed the wallet from KDE Wallet's interface and now it crashes upon launching it. I have already tried deleting the ~/.kde/share/apps/kwallet/kwallet.kwl file, but that didn't work.

I'm using Ubuntu Maverick (Gnome), a month ago I updated like usual whenever Update Manager informed me of new updates. The thing that happened is that a program called kdewallet  got installed on my machine, and every time I try to do something that requires password like svn, it pops up and starts getting really annoying. How can I get rid of it? It's not even in the Synaptic Package Manager.


When I go in Jorrvaskr, my active quest tells me to go down to the Jorrvaskr living quarters, and the quest arrow leads me to where Kodlak is usually sitting - but there is no one in the seat. Kodlak is dead and everyone is "mourning" but when I speak to anyone in the companions they act as if nothing happened.   For example I have the option to train from them still and ask "Why did you join the companions?"  Will it still work for me if I start the quest to retrieve the helm of winterhold and run through driftshade refuge or use invisibility potions to get the helm without killing anyone? (I have a saved game right when I started Bloods Honor and before I have killed any witches).  Note: I have not cleared driftshade refuge and I have not completed the quest to find the helm of winterhold.

I just finished the quest, "Blood's Honor" for Kodlak Grey-Mane, but there is an attack on the Companions before I can hand in the quest. Now, all the Companions NPCs are sitting and mourning all the time ("Forever Mourning" bug) and I can't get any new quests or anything.  How do I fix this and move forward in the quest line?


Let $k$ be an algebraically closed field. Is $k[x,y,z]/(y^2-xz)$ a UFD?    I think it is not. Assuming that the elements $x,y,z$ are irreducible, the polynomial $f=xz$ can be written in two ways as a product of irreducible polynomials, namely $f=xz=y^2$.  How do I show $x,y,z$ are irreducible and that $y^2-xz$ is prime (i.e. that the $k[x,y,z]/(y^2-xz)$ is an integral domain)?

I am trying to show that $k[x,y,z]/(xz-y^2)\not\cong k[x,y]$.    The latter is a UFD, so I am trying to show the former is not. Clearly $x$ is not prime, since $x\mid xz$ which implies $x\mid y^2$, but $x\mid y$.      So if I can show that $x$ is irreducible then $k[x,y,z]/(xz-y^2)$ is a not a UFD, because irreducible implies prime in UFDs.    Attempt: Assume $x$ is reduced into $ab$ in $k[x,y,z]/(xz-y^2)$, then we know there exists $c\in k[x,y,z]$ such that $x=ab+c(xz-y^2)$ in $k[x,y,z]$, or more usefully as $x-ab=(xz-y^2)c$. Someone suggested that I write $a,b$ such they are degree at most 1 in $y$, that is, replace every $y^n$ using $xz$. This means the LHS is degree at most 2 in $y$ and the RHS is degree at least two in $y$ in  $x-ab=(xz-y^2)c$. I am not sure where to go from here just by knowing that $c$ has no $y$ terms though. Ultimately I want to show that this forces $x=ab$ in $k[x,y,z]$ which, since $x$ is irreducible there, shows that either $a,b$ is a unit, which means $x$ is irreducible in $k[x,y,z]/(xz-y^2)$.


I am acquinted with the independent event derived from the the conditional probability.But In my book I read that mutual independence always imply pairwise independence but the converse is not always true.But I find difficulty when I was trying to find out an example to understand the matter well.Please give a suitable example which will meet my purpose.Thank you in advance.

I've just read in a stochastics textbook:     Let $(\Omega, P)$ be a discrete probability space.      (a) The events $A_i \subseteq \Omega, i=1,2, \dots$ are called independent, if   $$P(A_{i_1} \cap A_{i_2} \cap \dots \cap A_{i_k}) = P(A_{i_1}) \cdot \dots \cdot A_{i_k}$$   for all finite sets $\{i_1, \dots, i_k\} \subsetneq \{1,2, \dots\}$ and all $k \geq 2$.      (b) The events $A_i \subseteq \Omega, i=1,2,\dots$ are called pairwise independent, if   $$P(A_{i_1} \cap A_{i_2}) = P(A_{i_1}) \cdot P(A_{i_2})$$   for all pairs $\{i_1, i_2\} \subsetneq \{1,2,\dots\}$.   After these two definitions it states that pairwise independent events are not always independent.  Do you have an example?


I'm trying to check if an enum option is contained in the available options. Its a little bit difficult for me to explain it in english. Here's the code:  public enum Fruits {     Apple,     Orange,     Grape,     Ananas,     Banana }   var available = Fruits.Apple | Fruits.Orange | Fruits.Banana; var me = Fruits.Orange;   I'm trying to check if the me varliable is contained in the available variable. I know it can be done because it's used with the RegexOptions too.

From time to time I see an enum like the following:  [Flags] public enum Options  {     None    = 0,     Option1 = 1,     Option2 = 2,     Option3 = 4,     Option4 = 8 }   I don't understand what exactly the [Flags] attribute does.  Anyone have a good explanation or example they could post?


Let $(X,d)$ be a metric space. Assume every continuous function on $X$ is bounded. Prove that $X$ is compact.  Well, i don't know which continuous function should i fix to start an argument. I tried to fix a function $f(x)=d(x,x_0)$, but i think it doesn't work. How do i prove this?

Let $X$ be a metric space. Prove that if every continuous function $f: X \rightarrow \mathbb{R}$ is bounded, then $X$ is compact.  This has been asked before, but all the answers I have seen prove the contrapositive. Realistically, this may be the way to go, but is there way to exhibit an unbounded continuous function (under the assumption $X$ is not compact) without appealing to results beyond introductory real analysis (e.g., the solution I've seen involves the Tietze Extension theorem)?  Because we're working with metric spaces, it's clear that the assumption that $X$ is noncompact (towards proving contrapositive) will lead us to extract a sequence of points in the space with no convergent subsequences. But how can we infer the existence of an unbounded continuous on the space knowing only about some sequence of points in this space (without using anything too advanced)?


i want to make a good design for products, services and offers in a mobile application and i need users opinions about this, So i am asking what is the best for usability a "5-Start" rating or a "Like"?

I'm wondering what is the best voting system for site that have ranking like top 10 / top 100.  Like/dislike     stars rating (from 1 to 5)    single thumb up    thumb up/thumb down    What you think?


Is that possible that I can make Thunderbird Mail app runs at the startup or as soon as I log into my Ubuntu? This is my first time using Ubuntu, I create a Dual Boot Ubuntu and I learn about Linux from my Introduction to Linus course at my college. I hope I can learn a lot here about Linux/Ubuntu as I am sick of Windows. Thanks.

to set start Thunderbird in minimized mode at startup, but it wasn't helpful.   After following the instructions, I could not even start Thunderbird. So I was forced to start TB in safe mode to delete the "FireTray Plugin" and fix this issue. After that it started to work but it deleted all my email accounts and I had to do that chore all over again .  So is there any working way to start Thunderbird minimized on start-up?


The release of two out of three prisoners has been announced. but their identity is kept secret. One of the prisoners considers asking a friendly guard to tell him who is the prisoner other than himself that will be released, but hesitates based on the following rationale: at the prisoner's present state of knowledge, the probability of being released is $\frac{2}{3}$, but after he knows the answer, the probability of being released will become $\frac{1}{2}$, since there will be two prisoners (including himself) whose fate is unknown and exactly one of the two will be released. What is wrong with this line of reasoning?

Three prisoners are informed by their jailer that one of them has been chosen at random to be executed and the other two are to be freed. Prisoner A asks the jailer to tell him privately which of his fellow prisoners will be set free, claiming that there would be no harm in divulging this information because he already knows that at least one of the two will go free. The jailer refuses to answer the question, pointing out that if A knew which of his fellow prisoners were to be set free, then his own probability of being executed would rise from 1 3 to 1 2 because he would then be one of two prisoners. What do you think of the jailer’s reasoning?  If the jailer refuses to say anything, then the probability that prisoner $A$ is excecuted is $\frac{1}{3}$. If the jailer says to prisoner $A$ that prisoner $B$ will walk free, then $2$ prisoners remain to be considered, $A$ and $C$. One dies, one does not. Heads or tails essentially. $\frac{1}{2}$ ought to be the conditional probability that $A$ dies given that $B$ walks free no? Apparently not though, allegedly the correct answer is still $\frac{1}{3}$. Even my attempt to calculate the correct answer yielded the result $\frac{1}{2}$.   Let $A_D$ and $C_D$ respectively denote the event of $A$ and $C$ dying. Let $B_F$ denote the event that $B$ walks free. Assume that the jailer tells prisoner $A$ that prisoner $B$ will walk free.   Here's my attempt.  $$P(A_D\mid B_F)=\frac{P(A_D\cap B_F)}{P(B_F)}=\frac{P(A_D\cap B_F)}{P((B_F\cap A_D)\cup (B_F\cap C_D))}=\frac{P(A_D)P(B_F\mid A_D)}{P(A_D)P(B_F\mid A_D)+P(C_D)P(B_F\mid C_D)}=\frac{\frac{1}{3}\times 1}{\frac{1}{3}\times 1+\frac{1}{3}\times 1}=\frac{1}{2}$$  What am I doing wrong?  Edit 1: Intuitively I am still troubled but I understand now that $B_F$ may occur even though the jailer does not necessarally say $B$.   Edit 2: I suppose that it makes some sense if the faiths of the prisoners had already been decided before prisoner $A$ asked the jailer the question. If the jailer decides to reveal one of the others who will walk free then that must've been the case.


Let n be a natural number, show that at least one of $(n^5)-1$, $(n^5)$ and $(n^5)+1$ is divisible by $11$.  I started by considering two cases: $n$ is even. $n=2k$, so the three numbers become $32(k^5)-1$, $32k^5$, and $32(k^5)+1$ In mod $11$, it is equal to $-(k^5)-1$, $-k^5$, and $-(k^5)+1$  If $n$ is odd, $n^5=32k^5+80k^4+80k^3+40k^2+10k+1$ in mod $11$ it is $-k^5+3k^4+3k^3+7k^2-k+1$  And I want show that one of them eventually become $0$ in mod $11$, but it doesn't seem to help...

Fermat's little theorem and its generalization, Euler's theorem holds for pair of relatively prime integers. Are there any analogous results for not relatively prime integers ? Thanks in advance.


Trouble here. Is it correct to use 'whom' in this case? Thanks!  "By submitting assignments accurately and in a timely manner, I gained professors’ trust, whom then granted me more advanced theoretical tasks."

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


In the sense of: it can emit data but it can also receive data. Or water. Or gas. Or whatever.

The context: I have 2 databases. The source database where I retrieve data and the target database where I insert data.   What is the collective name I can use for source and target in this context? Target can also be called destination.


Let $R(v_{\bullet}, w_{\bullet})$ be some $P$-time computable relation between two binary strings $v_{\bullet}$ and $w_{\bullet}$. $NP$ problems are problems of the form: Given $v_{\bullet}$, determine whether there exists an $w_{\bullet}$ so that $R(v_{\bullet}, w_{\bullet})$. The $\# P$ problems are problems of the form: Given $v_{\bullet}$, count the number of $w_{\bullet}$ satisfying $R(v_{\bullet}, w_{\bullet})$.  There are certainly examples of $R$ from which the counting problem is hard but the existence problem is not:  Determining whether a graph has a perfect matching is in $P$, but counting the perfect matchings is $\# P$-complete.  What are examples of relations $R$ for the existence problem is $NP$-complete but the counting problem is, subject to reasonable conjectures, not $\# P$-complete?

Let $X$ denote a (decision) problem in NP and let #$X$ denote its counting version.  Under what conditions is it known that "X is NP-complete" $\implies$ "#X is #P-complete"?  Of course the existence of a parsimonious reduction is one such condition, but this is obvious and the only such condition of which I am aware.  The ultimate goal would be to show that no condition is needed.  Formally speaking, one should start with the counting problem #$X$ defined by a function $f : \{0,1\}^* \to \mathbb{N}$ and then define the decision problem $X$ on an input string $s$ as $f(s) \ne 0$?


I'm trying to make my thinkpad's fan run on higher speeds because of overheating. I've enabled fan_control in thinkpad-acpi module, at least I think so:  $ cat /sys/module/thinkpad_acpi/parameters/fan_control  Y   However, it does not seem to respond to changes:  $ echo 'level 7' > /proc/acpi/ibm/fan   No error, but no reaction either. Any advice on how to proceed? Does it mean my Thinkpad does not support fan control?  Note that this question is NOT the same as  - my fan_control is apparently on, and I do not get any invalid argument error when I'm trying to echo new level.

I'm having trouble with the thinkpad_acpi module on my Thinkpad T400. While the processor temperature can vary, depending on the CPU activity, from 40 to 85 deg. Celsius, my fan speed remains almost constant, in the range of 2600-3000 rpm. I was expecting the fan to speed up as the temperature rises, but it's not happening.   Before digging deeper into why it doesn't work as one would expect, I tried to check if manually increasing the fan speed works. According to , I should be able to control the fan speed by writing level [1-7] to /proc/acpi/ibm/fan, but I get the "Invalid argument" error whatever the value.  I realize this is an obscure problem, but may be someone has an idea what might be valid arguments. Here are some of my attempts:  # cat /proc/acpi/ibm/fan status:     enabled speed:      2966 level:      auto # echo 5 >/proc/acpi/ibm/fan bash: echo: write error: Invalid argument # echo 'level 5' >/proc/acpi/ibm/fan bash: echo: write error: Invalid argument # echo 'enable' >/proc/acpi/ibm/fan bash: echo: write error: Invalid argument # echo 'level auto' >/proc/acpi/ibm/fan bash: echo: write error: Invalid argument


My work experience and education have provided me with an extensive background in business.  Do i use have/has here?

I am working on my resume. I don’t  know if I should use make instead of makes in this sentence.      I believe that my passion for teaching and my knowledge of the English   language makes me an ideal candidate for a teaching position at your   school


This question is in the book 'The thrill and challenge of precollege mathematics'. I intend to attack this problem using Fermat's Little Theorem (FLT).  Notice that each term on LHS must be either of the form $5k$ or according to FLT $5k +1$ but the if $x^4$ is of the form $5k$ then $x=5c$ for some integer c. I can't think of any think after this.  I have also used the property that any fourth power when divided by $4$ leaves remainder $1$ if it is odd and $0$ if it is even. Using this I think there are only $2$ things possible. Either, $x,y,z$ are odd and $w$ is even or $x,y,z$ even and $w$ odd.  Thanks in advance. Don't give me answer tho just tell me which concept to apply, or if this is right approach, the how to attack the problem.

Find all the integral solutions of   $$x^4+y^4+z^4-w^4=1995.$$  Please elaborate the solution. I tried but can't understand what to do.


i have a few different web sites w/ Analytics loaded on.    One site is not showing up in my analytics reports because i think it was set up by someone else working for me at the time.  I know the "UA-xxxx" code.   How do i find out which analytics account it is associated with so i can get in there to see the data and/or transfer elsewhere?

I set up Google Analytics for a client some time ago, so the tracking code is installed.   I can't for the life of me find which email account I used to set it up, so now I can't access the stats.  We haven't actually wanted to track anything until now.  Is it possible to somehow find out what email/Google account is associated with the UA-XXXXXXX-X id?


I'm new to Ubuntu. I downloaded cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64.deb for Ubuntu 16.04 from the official  website.  I ran these two commands from the terminal:  sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64.deb sudo apt-get update   What is the name of the package required to install to complete the installation?  sudo apt-get install <name?>

For TensorFlow I would like to install CUDA. How do I do that on Ubuntu 16.04?


ive downloaded the disk image of ubuntu  14.1 and am now attempting to format my flash drive to be able to transfer the disk image and be able to run it. the problem i have run into is turning the usb into a bootable drive via command prompt. ive created a partition on the drive, however i seem to be unable to select the partition to assign it as a mount point. these are the instructions i followed to clarify any confusion.

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


I Just need some clarification on why while loop cannot use variables outside the function. It keeps saying the variables has not been assigned yet even though it has. Does it has something to do with precedence? On how python sets up variables? Or is it just unique to while loops? test1 = True test2 = True  while test1:     print("Test 1 " + str(test1))     test1 = False  def test_loop():     print("Test 2 " + str(test2))     # while test2:     #     print("Test 2 " + str(test2))     #     test2 = False test_loop()    OUTPUT:  Test 1 True  Test 2 True  This works fine when the while loop in the function(test_loop)is commented out. Just to test if I can use the variable test2 and print it out. On which it can. But when I UNCOMMENT the while loop in the function, the variable test2 is unassigned. Which confuses the hell out of me. I get this error:  in test_loop print("Test 2 " + str(test2))  UnboundLocalError: local variable 'test2' referenced before assignment

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


Using Workbench i have retrieved the Address setting using package.xml  XML :  <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata">     <types>         <members>Address</members>         <name>Settings</name>     </types>     <version>42.0</version> </Package>   I have downloaded the Zip file and have added some countries in the Address.settings file. When I deployed the file my changes haven't reflected in the org.    Please help me out.   Also I have referred the below link also   This is the result i got in workbench .  Also when check in the deployment status i got Payload error says " No package.xml found"

I'm having problems understanding how to deploy Address.settings with the Metadata API.  As in:  how do I structure the package.xml?    I have this as Address.settings (shortened for brevity)  <?xml version="1.0" encoding="UTF-8"?> <AddressSettings xmlns="http://soap.sforce.com/2006/04/metadata">     <countriesAndStates>         <countries>             <active>true</active>             <integrationValue>Andorra</integrationValue>             <isoCode>AD</isoCode>             <label>Andorra</label>             <orgDefault>false</orgDefault>             <standard>true</standard>             <visible>true</visible>         </countries>         ....         </countriesAndStates>         </AddressSettings>   And this is the package.xml:   <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata">     <types>         <members>Address</members>         <name>Settings</name>     </types>     <version>42.0</version> </Package>   After zipping this up and deploying through the Metadata API in Workbench I get this error:  The object 'Address' of type Settings was included in the manifest file package.xml but the associated settings metadata is missing from the 'settings' folder   Can you see what is wrong with the package.xml in this case?


There are $N$ distinct objects and i want to distribute them into $M$ distinct boxes .No balls have to be left without box but there can be empty boxes. I tried myself to find answer by trying approaches similar to stars and bars method but didn't reached the solution after considerable efforts. Note : this problem is not related to the problem linked . I think answer of this problem is $M^N$ .Since each ball can be put into $M$ boxes thus the answer.

We have $n$ distinct balls ($n>7$) and want to randomly (and independently) distribute them into $N$ distinct boxes ($N>n$) which are placed one next to the other. a) What is the probability that all balls are placed in consecutive boxes? b) What is the probability that all balls are placed in consecutive boxes and balls with number $1$, $4$ and $7$ are also placed in consecutive boxes?  I am not sure but I will try: a) There is a block of n balls which must be placed in one of the $N-n+1$ gaps formed if we arrange the boxes and fill $n$ consecutive of them. So there are $N-n+1$ places place this block. The $n$ balls in the block can be arranged in $n!$ ways. Also the N boxes can be arranged in $N!$ ways. So all in all we have $n!N!(N-n+1)$. b) Again we have $N!$ ways to arrange the boxes but the balls can be arranged in $(n-3)!$ ways, right? I don't know what is the total number of ways to place all balls in the boxes - plus that I see no restriction regarding the number of balls per box. Any help?


Hollow every one,  Iam beginner in latex. I have a problem when I build my pdf with latex. The following message error is always displayed: Latex error: file 'tabu.sty' not found or enter new name.< default extension: sty>  any help will be appreciated  thanks

I'm trying to compile a document that only works with an up-to-date distribution, so I'd like to know: how do I update my distribution? Please provide screenshots where appropriate.  List of answers           To keep an eye on what’s going on at CTAN you may subscribe to the  or the RSS feed feed://www.mail-archive.com/ctan-ann@dante.de/maillist.xml


so today I decided to quit windows and starting using Ubuntu in a daily basis. First of all I'd like to apologize if this is a duplicated post, but I've searched all over stackexchange and found noone with the same errors I have. So I went to Ubuntu's website, grabbed the  version, looked for a , followed every step to create the bootable USB, booted from it and selected the option Install Ubuntu. And then got stuck on a scary screen that made me realize that something was not right. I'm gonna try to illustrate the process as best as I can:      First I selected on my  from what disk I wanted to boot my PC. NOTE: First I tried the KINGSTONDataTraveler (Without the UEFI) and I got an error message along the lines of "Reboot and select a proper Boot Device, or insert boot media device and press a key", so I rebooted and selected the UEFI one.Then on my second screen I got the . So I went and clicked Install Ubuntu. Everything looks fine for now. And here it comes all the trouble... My monitor remains black for a good 4-6 seconds, and then  strange dotted line appears on top of the screen. And like 2 or 3 seconds later my screen gets filled with , what looks like a VERY distorted set of characters.    My screen remains stuck with that pattern indefinitely, so I need to power off my computer directly from my power button. I tried reflashing the USB drive, tried others USB drives, re-downloaded the iso file to make sure it was not corrupted. Pretty much everything I can think of... I don't know what to do now, any suggestion? These are my computer specs: Motherboard: Gigabyte Z97X-Gaming 3 CPU: Intel Core i7-4790K 4.0Ghz GPU: Gigabyte GeForce GTX 970 WindForce 3X OC 4GB DDR5 RAM: G.Skill Trident X DDR3 2400 PC3-19200 16GB 2x8GB CL10  SSD: (1x) Samsung EVO 850 Series 250 GB SSD2: (1x) Samsung EVO 840 Series 250 GB HDDs: (2x) WD Blue 1TB  NOTE: When I was on windows, my 2 SSD and my 2 HDD were on raid 0 (2 on 2). I don't know if I'm missing something, hope that's enough to solve my problem.

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


I found the zenity file path dialog but I how can I get the path to a folder? Any help is appreciated.

Suppose I have a script like this:   (The example depicts an rysnc use case)  #!/bin/bash echo -n "Enter Source Directory:" read srcdir echo -n "Enter Destination Directory:" read dstdir rsync -av --delete "$srcdir" "$dstdir"   The idea here is to prompt the user to enter the "Source" and "Destination" directories for rsync to work with. As is, the user will have to manually enter /path/to/directory/ via the command-line.  Instead, I want to prompt the user to enter the paths through a GUI interface.  Something like this:     What commands can I use to prompt the user with a GUI selection window that returns the file path to the command-line?


I am wondering if Predictive Equation and similar abilities count as Assets in the Cypher system. While some explicitly state that they grant an asset, Predictive Equation instead says that     The next time you interact with it (possibly in the following round), the difficulty of a related task (such as persuading the creature, attacking it, or defending from its attack) is reduced by one step.   Similarly, Destroy Metal states     the difficulty of this task is decreased by three steps (compared to breaking it with brute strength)   which would seem to contradict the following statement if it counted as an asset:     The important thing to remember is that a skill can reduce the difficulty by no more than two steps, and assets can reduce the difficulty by no more than two steps, regardless of the situation. Thus, no task’s difficulty will ever be reduced by more than four steps without using Effort.   In Numenera, these abilities would not count as Assets:     Some rare abilities allow the player to ease tasks and don't count as assets or training. Therefore, if an ability allows a character to ease a task, and does not state that it is an asset or training, it does not count towards the character's limits.   but I can find no such statement within the Cypher System Rulebook.  Where in the Cypher System Rulebook do the rules say if Predictive Equation and similar abilities count as Assets in the Cypher system?

The rules as interpreted in this question:   state that you cannot ease a difficulty by more than 2 levels with assets, however through the book there are examples of situations that would allow one to ease a task without stating it counts as an asset, as all assets ease a task, but nothing says that all eases count as an asset.  So does everything that eases a task ignore the  An example: Say you have a player with the 'Murders' focus attacking an enemy with a light weapon and has gained surprise, the breakdown of all the bonuses in play(All highlighting my own):   'Murders' focus power (+1 asset)     Tier 1: Surprise Attack. If attacking from a   hidden vantage, with surprise, or before an   opponent has acted, you gain an asset to your   attack. On a successful hit with this surprise   attack, you inflict 2 additional points of   damage. Enabler.      Numenera Discovery pg.82  Light Weapon (+1 ease)     Light weapons inflict only 2 points of   damage, but they ease the attack roll because   they are fast and easy to use.       Numenara Discovery pg.95  Surprise (in this case +2 eases)     When a target isn’t aware of an incoming   attack, the attacker has an advantage. Attacks   by a ranged sniper in a hidden position,   an invisible assailant, or the first salvo in   a successful ambush are all eased by two   steps. For the attacker to gain this advantage,   however, the defender truly must have no idea   that the attack is coming. If the defender isn’t   sure of the attacker’s location but is still on   guard, the attacks are eased by only one step.      Numenara Discovery pg.113    So in this case does the player lower the difficulty of the attack by 4, as they only had one named asset, or do they lower it by only 2, treating all these as assets, essentially invalidating half of their benefits?


The app keeps asking for a nickname, and I have entered dozens of names, but it keeps saying that the names aren't available. How can I find an available name?


I am an Indian national, living and working in Australia for a year. I’m on a bridging visa here. Now I’m going to India and my flight from Sydney is transiting through Seoul airport. It has a layover of more than 20 hours. Can I go out of the airport transit area?

I am an Indian passport holder travelling to Germany via Seoul and would like to stay in Seoul for a couple of days. I have my flight tickets to Germany and a German residence permit.  Do I need a visa to enter Seoul (via Incheon Airport)?


I'm new to blender and im trying to put an image into blender. These are the steps I'm taking:    shift A to add an image in N to bring the properties panel enable background image than chose the image I want   is there a step I'm missing? I've seen multiple questions on this but I just can't work them out I am in in orthographic view but the image doesn't show up. I want to use it so that I can make a rig and compare it

How do I put a backdrop behind the model that I am creating so that I can compare the picture to the model while editing?


I know I can shutdown from commandline - without a password:  but I can't see how to open the shutdown GUI. Is this possible?

I would like to use a gesture to shutdown/restart my computer and I need to know the command that launches the shutdown dialog:


I have an old laptop Dell Inspiron 9400 running Windows Vista. Can I format it and do a clean install of Ubuntu 16.04 from a flash drive or should I  burn it on a DVD and do so?  Also, where can I get an installation DVD for the above, in Indianapolis?

I would like to see a full how-to guide on how to install Ubuntu.


I've been learning about ZFC set theory on my own for a moment now, and since it's expressed in the language of first order logic I thought I might as well look into that and language theory too. But when I did I immediately ran into a confusion: the notion of a formal language requires the notion of an alphabet, which is understood to be a set of symbols.  So if the notion of a language requires the previous notion of a set, then how can any theory that tries to formalise the notion of sets come after a theory of languages? To me this looks like a catch-22...  Basically what I'm asking is if there is any way to make a theory of formal languages that doesn't requires the notion of sets, of is somehow the fact that languages imply the previous notion of sets is not a problem for set theory.  Can someone with a deeper and more educated understanding of all this enlighten me? Is there some crucial subtelty I'm missing? Or is there no satisfactory answer to this question yet? My head is starting to run in circles...

I am trying to understand what mathematics is really built up of. I thought mathematical logic was the foundation of everything. But from reading a book in mathematical logic, they use "="(equals-sign), functions and relations.  Now is the "=" taken as undefined? I have seen it been defined in terms of the identity relation.  But in order to talk about functions and relations you need set theory.  However,  seems to be a part of mathematical logic.  Does this mean that (naive) set theory comes before sentential and predicate logic? Is (naive)set-theory at the absolute bottom, where we can define relations and functions and the eqality relation. And then comes sentential logic, and then predicate logic?  I am a little confused because when I took an introductory course, we had a little logic before set-theory. But now I see in another book on introduction to proofs that set-theory is in a chapter before logic. So what is at the bottom/start of mathematics, logic or set theory?, or is it circular at the bottom?  Can this be how it is at the bottom?  naive set-theory $\rightarrow$ sentential logic $\rightarrow $ predicate logic $\rightarrow$ axiomatic set-theory(ZFC) $\rightarrow$ mathematics  (But the problem with this explanation is that it seems that some naive-set theory proofs use logic...)  (The arrows are of course not "logical" arrows.)  simple explanation of the problem:  a book on logic uses at the start: functions, relations, sets, ordered pairs, "="  a book on set theory uses at the start: logical deductions like this: "$B \subseteq A$", means every element in B is in A, so if $C \subseteq B, B \subseteq A$, a proof can be "since every element in C is in B, and every element in B is in A, every element of C is in A: $C \subseteq A$". But this is first order logic? ($(c \rightarrow b \wedge b \rightarrow a)\rightarrow (c\rightarrow a)$).  Hence, both started from each other?


I have 4 public classes, with a bunch of properties each: MoveUpdateEntry, FullServiceEntry, SeamlessAcceptanceEntry, and UndocumentedEntry. I have a dictionary containing excerpts of a given filename, along with a correlation in place to determine the string equivalent of the class's name I need to instantiate: private static Dictionary<string, string> dEntryCorr = new Dictionary<string, string>() {     {"MU_MU", "MoveUpdateEntry" },     {"FS_BQ", "FullServiceEntry" },     {"FS_BF", "FullServiceEntry" },     {"SE_NS", "SeamlessAcceptanceEntry" },     {"SE_U_", "UndocumentedEntry" } };  , but simply trying to run the following gives me an error: string fileToProcess = "MU_MU.json"; Type entryType = Type.GetType( dEntryCorr[ fileToProcess.Substring(0,5) ], true );  System.TypeLoadException: 'Could not load type 'MoveUpdateEntry' from assembly 'DataLoaderJSON, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.' My end goal here is to be able to dynamically pick a type to make a List<> of, based on the filename. (e.g. MU_MU.json will create List<MoveUpdateEntry>, FS_BQ.json creates List<FullServiceEntry>, etc.) Is this possible in C#? TLDR: I want to create a List<> with a class type that is determined by a string. This is a matter of abstraction.

Is there a way to create an instance of a class based on the fact I know the name of the class at runtime. Basically I would have the name of the class in a string.


I've read plenty of forums and watched many videos, and yet none have worked. I just want to install Libra Dark theme on my computer (I'm new to Ubuntu), so please help me guys.

How can I install themes in ubuntu 12.10 ?   For example, how can I install the following themes on ubuntu:


Below is the last screen output up to the failure: Distro set to: Ubuntu 16.04  Initializing. Please wait...   SECURITY PACKAGES ----------------- AppArmor is installed.  AppArmor protects the application from external intrusion attempts making the application secure  Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y   RUNNING PRE-INSTALL COMMANDS ---------------------------- OK   RUNNING HPLIP LIBS REMOVE COMMANDS ---------------------------------- None OK   RUNNING SCANJET DEPENDENCY COMMANDS ----------------------------------- sudo apt-get install --assume-yes python-pip (Scanjet-depend step 1) sudo pip install --upgrade pip (Scanjet-depend step 2) sudo apt-get install --assume-yes libleptonica-dev (Scanjet-depend step 3) sudo apt-get install --assume-yes tesseract-ocr (Scanjet-depend step 4) sudo apt-get install --assume-yes libtesseract-dev (Scanjet-depend step 5) sudo -H pip install tesserocr (Scanjet-depend step 6) sudo apt-get install --assume-yes libzbar-dev (Scanjet-depend step 7) sudo apt-get install --assume-yes python-zbar (Scanjet-depend step 8) sudo apt-get install --assume-yes python-opencv (Scanjet-depend step 9) sudo apt-get install --assume-yes python-pypdf2 (Scanjet-depend step 10) sudo -H pip install imutils (Scanjet-depend step 11) sudo -H pip install pypdfocr (Scanjet-depend step 12) sudo -H pip install scikit-image (Scanjet-depend step 13) sudo -H pip install scipy (Scanjet-depend step 14) OK   PRE-BUILD COMMANDS ------------------ OK   BUILD AND INSTALL ----------------- Running './configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib --prefix=/usr --enable-qt4 --disable-qt5 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-libusb01_build --disable-foomatic-ppd-install --disable-hpijs-install --disable-class-driver --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build --enable-apparmor_build' Please wait, this may take several minutes... Command completed successfully.  Running 'make clean' Please wait, this may take several minutes... Command completed successfully.  Running 'make' Please wait, this may take several minutes... error: 'make' command failed with status code 2

Let's assume that one has some HP printer and/or scanner and checked its support status on the corresponding page of HPLIP site - .  So one have the following information: the device Model name, Min. HPLIP Version and Driver Plug-in need.   What should one install to make Ubuntu fully support the HP printer and/or scanner?


I have created one file upload component page and using that page in the community portal but when I'm uploading a file a file its not working.  If I'm doing the same with a console app, then it is working. So I think some permission issues I have because its working for system admin profile but not for community profile.  Can Anyone have some Idea on this? what I need to do to fix this.

I would like to be able to upload files using <lightning:fileUpload which is on a public community page.  The community is using template: Customer Account Portal.  The files would get attached to a custom Questionnaire object.  What are the minimum permissions required on the custom Questionnaire object for the Questionnaire profile & user to be allowed to upload files via a public community page?    I've given the Guest Profile & User full permissions over the custom Questionnaire object and it still errors:     There was a problem uploading your file. Please try again   And nothing appears in the Debug log.  Note: I mistakenly tested the public community using the same browser that I was logged in as Sys Admin, and it uploaded fine. But having tested again using Incognito mode, it does not upload.


I am using Kubuntu 14.04. I want to change default OS from Kubuntu to windows 8.1   I want information about Kubuntu only I searched and find out for Ubuntu not for Kubuntu

How do I set the bootloader so that in my dualboot with Windows 7/Ubuntu 11.04, Windows start up as standard instead of Ubuntu?


As I say in the title, I need to create a bootable USB drive with OSX El Capitan using Windows 10.   I can't start my Mac using OSX anymore and I want to perform a clean install. If I use Recovery my OS will be restored via internet, and it would be Mountain Lion. Is there a way to avoid this?

My MBA 2012 with OS X 10.9.4 Mavericks won't boot anymore - it simply freezes after the initial jingle. I already tried resetting NVRAM and SMC, but to no avail. I don't have any time machine backups.  However, I still have a disc image of Mavericks sitting on an external hard drive, a USB stick and access to a notebook with Windows 7.   I haven't yet found any tutorial on how to create a bootable USB drive on Windows in order to reinstall OS X on my beloved Macbook Air.  Any help would be greatly appreciated!


I'm taking several images of my company products, and  what I considered the best shot. However, it has a sort of "rippling effect", which is more clearly visible when it's not viewed full screen.    Why does this happened?  I'm taking the picture using a 15 mp smartphone camera, if that helps.

What is the image defect called "moiré"? What causes it, and how can we avoid or reduce it? Is it related to "false color"?


What is minimum size ground do I need for a 200 amp panel? I need to bond the hot and cold in the water heater and already have a ground rod in the ground. I also need to bond the water and gas.

Is there an international standard that specifies the size of the grounding conductor to bond a metallic part of the installation to a grounding bar?.  And to connect the grounding bar to the grounding rod?.  By "installation" I mean any metallic stuff such as the steel structure of the building, the case of an electrical panel, and so on.


When I run echo $XDG_CURRENT_DESKTOP or $XDG_SESSION_DESKTOP I can see values on my Linux machine.  When I run same commands on my machine from remote machine showing empty results.    IMO, those variables are set only for its session.  How to get which desktop environment is running on the remote machine?   I was developing an application that has a feature to check which desktop environment is running on Linux machine.   Tried (getting empty results):   bash -c "echo $XDG_CURRENT_DESKTOP"  source ~/.profile && echo $XDG_CURRENT_DESKTOP

Let's assume we have a computer with Ubuntu Desktop installed on it. There are a few desktop environments (DE) installed such as: Unity, Gnome, KDE, XFCE, Mate, etc.   Also few users have their accounts and they regularly using the computer. Each user could change its DE according to its free will :)   How to determinate which is the current user's desktop environment, for certain user, through CLI within limited environment?   This question could be fragmented in this way:   In which file is stored this information? What is the best way to read it through a script executed within an limited environment such as ssh session or cron? How to read this information for random user? I'm finding for one line command solution if it is possible.


I am using drupal 7 contact form in my site and I want to rename  some field names, like  "Subject" to "Emne" etc..

I have a blog with comments and I need to change the "Your name" field to something different and make it a required field.  Can I do this from  hook in template.php or in a comments template?


Will there be any sense of time during the heat death of universe? Since there is no interesting events I think you cannot measure time.

From my (honestly limited) knowledge of what the Heat Death of the Universe is, I understand that HDotU is the point when energy levels across the entire Universe reach equillibrium, thus energy doesn't flow anymore absolutely anywhere, and thus nothing will ever happen anymore.  If that's the case, would time still be? Even when there's not a single event happening inside it and nobody's there to observe the ticking, does time (or space, come to think of it) exist? Or would HDotU cause something that ends the entire spacetime?


I have ASUS Vivobook x512 laptop which has 256 GB SSD and 1 TB HDD. I want to dual boot my laptop with Windows and Ubuntu. Windows comes pre-installed on SSD. Now I want to to install Ubuntu. Should I install Ubuntu in SSD  or I should install on HDD? Would there be any booting problem if I install Ubuntu on HDD? How do I dual boot on my laptop? If I connect a bootable USB drive to my laptop for installing only the 256 GB SSD is shown not SSD (the 1 TB HDD???).

first of all thank you for answering.  I have a 120GB SSD and a 1TB HDD and I want to dual boot with Windows 10. I tried with this configuration:  SSD  / (ext4 20GB) /usr (ext4 15GB) /boot/efi (ext4 250MB)  HDD  /var (ext4 3GB) /tmp (ext4 8GB) /home (ext4 50GB) swap (none 24GB) (RAM 16GB)  I don't know if I am doing OK, as I tried to install it but installation gets stuck at "Saving installed packages..." and it doesn't continue. I wonder if it could be cause I didn't  partitioned as I had to. I don't find any post where this happens so I ask here.  Thanks!


I have installed wine-staging from  in my lubuntu 16.04 box , and also installed WPS 2016 (setup.exe) in wine.  So after installing WPS successfully ,i am trying to run WPS spreadsheet from wine using command line but i am not able to find its executable file i,e .exe for spreadsheet.  For example i have also install MS office 2007 in wine & executable for MS office(2007) Excel file is located at   /home/wineuser/.wineprefix/drive_c/Program Files/Microsoft Office/Office12/EXCEL.EXE   And it can run using below command from terminal :  WINEPREFIX=~/.testadmin WINE=/opt/wine-staging/bin/wine /opt/wine-staging/bin/wine ~/.testadmin/drive_c/Program\ Files/Microsoft\ Office/Office12/EXCEL.EXE   So my question is how can i run WPS spreadsheet under wine in lubuntu box 16.04 , where its executable actually located ?

Trying to locate a file, how can I search the entire hard drive for a file?


I know that if one astronaut falls into a black hole, then a distant observer will see him take an infinite amount of time to reach the event horizon (provided the observer can see light of arbitrarily large wavelengths).  But the falling astronaut will only take a finite amount of time to reach the horizon.  My question is: What will the falling astronaut see if he "looks backwards" while falling. Will he see the distant observer growing old and all the stars dying by the time he reaches the horizon ?

This question was prompted by . Notoriously, if you calculate the Schwarzschild coordinate time for anything, matter or light, to reach the event horizon the result is infinite. This implies that the universe ages by an infinite time before someone falling into the black hole reaches the event horizon, so could that person see the universe age by an infinite time?  To be more precise, suppose the observer starts falling from rest at time $t = 0$ and some initial distance $r > r_s$. If we wait for some time $T$ then shine a light ray at the falling observer. Will the light ray always reach the falling observer before they cross the event horizon? If not, what is the formula for the longest time $T$ that we can wait and still be sure the ray will catch the observer? If $T$ is not bounded it implies that observer could indeed see the end of the universe.  I can think of a qualitative argument for an upper limit on $T$, but I'm not sure how sound my argument is. The proper time for the observer to fall to the event horizon is finite - call this $\tau$. The proper time for the light ray to reach the horizon is zero, therefore the light ray will reach the observer before they cross the event horizon only if $T < \tau$. Hence $T$ is bounded and the observer won't see the end of the universe.  I think a more rigorous approach would be to determine the equations of motion (in the Schwarzschild coordinates) for the falling observer and the light ray, and then find the condition for the light to reach the falling observer at some distance $\epsilon$ from the event horizon. Then take the limit as $\epsilon \rightarrow 0$. In principle this seems straightforward, but in practice the algebra rapidly defeated me. Even for a light ray the radial distance:time equation isn't closed form (Wolfram claims it needs the $W$ function) and for the falling observer the calculation is even harder.


My bevel tool seems to be broken. It works normally on simple objects, but not on long objects. Look:   I want to know how to make the edge of the second image like the first image. Ask for more details if needed

First off I'll let you know I'm a total noob at blender I've used 3ds Max up until this point, but the company I'm working for at the moment needs me to use blender so I'm trying to make the transition over.  Literally all I'm making at the moment is a simple book and cannot understand how the bevel tool isn't working similar to how the chamfer tool would in 3ds Max.  I want a nice curved edge for the spine of the book however when I press control + B and try to bevel it bevels the edge unevenly with the new bevel pushing forward.    Is there a way I can get it to bevel evenly like it does in Max?


Prove that: $$\frac {2\sin x}{\cos 3x}+\frac {2\sin 3x}{\cos 9x}+\frac {2\sin 9x}{\cos 27x}=\tan 27x - \tan x$$  My Work,  If we multiply the numerator and denominator of first, second and third term of left hand side by $\cos x$, $\cos 3x$ and $\cos 9x$ respectively and further use the compound angle formula, then we get RHS. But, I want to know if there is any other alternative solution to this problem??

Show that  $$\frac{\sin x}{\cos 3x}+\frac{\sin 3x}{\cos 9x}+\frac{\sin 9x}{\cos 27x} = \frac{1}{2}\left(\tan 27x-\tan x\right)$$


How can I find the IP of my Ubuntu System in local network?

I am on a network with PPPoE connection for internet acces.I want to find out my network ipv4. Example:  -on Windows 7 I can see both my PPPoE's connection ip and local network ip, either from properties of the connection, either from cmd with ipconfig command  -on ubuntu I can only see the PPPoE's ip  I cam across this problem after trying to lookup another ubuntu pc on the network.  How can I check my Local area connection(Windows terms) ip and/or how to see the other ubuntu pc from my network?    If I connect to my DSL account I can see my ip(ipv4 and 6) from my DSL connection but not my eth0 ip.  If I connect to my Wired connection I can see my ip from my eth0 connection but after that I cannot connect to the internet.  I cannot have both?


My question is that many documentation over mutable strings, I have read that StringBuilder gives faster result as compare to StringBuffer. People gives reason that, StringBuilder is not synchronized and StringBuffer is synchronized, but it gives same result even with single thread. Please give me the valid reason for that.

What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?


I have a problem. In my viewport, model shows as choppy broken model when I m in perspective view. When I change to orthographic view, it shows fine. Here is the comparison. But in rendering view, both perspectives are rendered fine. Is this a bug or anything wrong in my settings?

I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?


Is it possible to make the URL index.php?view=something back into /something?

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


So im playing a necromancer wizard and was wondering is there any way to heal my undead after battle?

Fifth edition seems to have removed any means of healing undead.  The positive/negative energy duality of 3rd edition seems to be gone. Negative energy spells now do necrotic damage; some undead are resistant or immune to necrotic damage, but it isn't listed as healing them. Classic negative energy spells like inflict wounds and harm don't list undead healing as a possible effect.  For zombies and skeletons it might not matter, but liches and vampires would never risk their necks if they didn't have some way to recover hit points. What is it?


I would like to change my Views (page display) title programmatically.   For Drupal 6 I found , but it doesn't work for me.      function mymodule_views_pre_build(&$view) {   if ($view->name == 'view_machine_name') {     $view->display['display_machine_name']->handler->options['title'] = 'New Display Title';   } }

I am using views and drupal 7 . I pass arguments in the URL and i want this as view page title. This is possible by using override title check-box. But i want to modify this title. i.e do some formatting and some trim of the content and show only what i require as title. how can i do it.


I am traveling from India to Prague with a Schengen visa. On my way back, I have a long transit (34 hours) at London. I picked this as I got the best rates. Can I step out of the airport & take in a couple of sites without a UK visa? appreciate your help!

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I have set up a bounty on a question to reward an existing answer, and found that the "custom message" box behaves strangely on Firefox 19.0.2 on OS X.  When typing, as the cursor gets close to the right-hand side of the textarea, the whole modal div appears to scroll to the right, when in fact JS shouldn't be doing anything - the text cursor should just auto-wrap in the textarea automatically.

I was attempting to create a bounty for a question over on Stack Overflow and ran into a rendering glitch on the last page. After entering a sentence that exceeds the length of a single line, the popup contents scroll slightly to the right and strange characters start showing up:    There is no '(' in my sentence so it's strange that it's showing up in the textarea. When you move the cursor it around the line edge, the textarea scrolls from right to left and back.  Here's what I've got:   Ubuntu 12.10 64-bit Firefox 18.0.2   This is also occurring on Firefox 24.0 on Windows 7 Enterprise Service Pack 1.    The data entry starts out fine:    Then it goes all wacky as I complete the second line:


Can you help me solve this problem?     Simplify: $\sin \dfrac{2\pi}{n} +\sin \dfrac{4\pi}{n} +\ldots +\sin \dfrac{2\pi(n-1)}{n}$.

How can we sum up $\sin$ and $\cos$ series when the angles are in arithmetic progression? For example here is the sum of $\cos$ series:  $$\sum_{k=0}^{n-1}\cos (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \cos \biggl( \frac{ 2 a + (n-1)\cdot d}{2}\biggr)$$  There is a slight difference in case of $\sin$, which is: $$\sum_{k=0}^{n-1}\sin (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \sin\biggl( \frac{2  a + (n-1)\cdot d}{2}\biggr)$$   How do we prove the above two identities?


I prefer using attributes like lang, dir, id, class and others to store useful data for some javascript functions that reference these objects - I do this to avoid using an array that may have to be updated after every action or change. The problem is that this is a bad practice and I cannot always use the attributes I want, because they're already in use or not available on some tag types. Is there a better way?  Note that I dont like using multiple values split with a separator as this is slow when dealing with massive amounts of objects.

I'm making a page which has some interaction provided by javascript. Just as an example: links which send an AJAX request to get the content of articles and then display that data in a div. Obviously in this example, I need each link to store an extra bit of information: the id of the article. The way I've been handling it in case was to put that information in the href link this:     I then use jQuery to find the a.article elements and attach the appropriate event handler. (don't get too hung up on the usability or semantics here, it's just an example)  Anyway, this method works, but it  a bit, and isn't extensible at all (what happens if the click function has more than one parameter? what if some of those parameters are optional?)  The immediately obvious answer was to use attributes on the element. I mean, that's what they're for, right? (Kind of).     In  I asked if this method was valid, and it turns out that short of defining my own DTD (I don't), then no, it's not valid or reliable. A common response was to put the data into the class attribute (though that might have been because of my poorly-chosen example), but to me, this smells even more. Yes it's technically valid, but it's not a great solution.  Another method I'd used in the past was to actually generate some JS and insert it into the page in a


Oxford advanced dictionary: native speaker  a person who speaks a language as their first language and has not learned it as a foreign language  Collins dictionary: native speaker A native speaker of a language is someone who speaks that language as their first language rather than having learned it as a foreign language.          Could someone speak three language: Germany, Italian, and English, described as “a native speaker of three language”?       Consider someone whose father is American, mother is Italian, and he was born in Germany and raised there.  Would he be a native speaker of three languages?      He would Learn English from his father, Italian from his mother, and Germany from friends, school and street.

I think this particular phrase creates a lot of concern in English learners. From general conversation to posts here, we see native speaker a common usage when talking about a person who speaks English by birth. So according to this definition, inhabitants of all the countries considered as  should be considered as native speakers. But herein lies my confusion. Would we conclude a random inhabitant of these countries to be a native speaker (as there is a chance of them to be a English speaking person)?    Also, I think Native speaker can also be one whose mother tongue is not English but uses English a lot in day-to-day life. For example, I don't speak English by birth, but as , I have to use English daily for at least 5 hours a day in my normal life. So can I consider myself as native because I use it frequently?  UPDATE 1 - From Googling, I could not find any dictionary sites explaining this phrase. The results only include different forum answers. So I thought of asking the question here and perhaps wise users here can help me out with the actual meaning.  UPDATE 2 - Later I thought it is worth adding that Anglo Indian families (and some purely Indian families too) who are born and raised here in India, speak English from birth and their first language is English and English is their primary means of communication although I cannot admit they fully abide by or understand all English cultural values like a British or an American. So what can I call them? Are they native?


A topology on a countable set may be uncountable, such as discrete topology on natural numbers. Although that topology has uncountably many set, it is first countable, indeed, second countable. I wonder that is there a topology on natural numbers being not first countable?

Are countable spaces (i.e. $\mathbb{N}$ with any topology) second-countable? A countable space can have at most $2^\omega$ open subsets which suggests that a counterexample may exist. On the other hand both discrete and anti-discrete (or more generally with countable topology) spaces are second-countable. Also note that obviously a countable space is separable. So if it is additionally metrizable then it is second-countable.  But I couldn't prove that in general. Or is there a counterexample?


Is there is a way I could get email notifications of new replies to my questions posted on Stack Exchange?  I have searched about this question already and can't find the options mentioned in other answers.

Is there a feature on Stack Exchange that will allow me to receive an email notification when someone comments on my question or answer, or answers my question?


I want to prove the following: $$\sum_{k=1}^{n}k\binom{n}{k}=n\cdot2^{n-1}$$ what I did is(use binominal): $$\binom{n}{k}X^k\cdot 1^{n-k} = (X+1)^n$$ $$k\binom{n}{k}X^k\cdot 1^{n-k} = k(X+1)^k-1$$ now I replace $k$ by $n$ and insert $X=1$ , I will get now $n\cdot2^{n-1}$ what you are suggesting? there is another way to do that? thanks!

I am trying to prove this binomial identity $\sum_{r=0}^n {r {n \choose r}} = n2^{n-1}$ but am not able to think something except induction,which is of-course not necessary (I think) here, so I am inquisitive to prove this in a more general way.  The left side of an identity occurs while solving another problem (concerning binomial theorem) so I am more interested in deriving the right side from the left side, else I have to remember it now onward.  EDIT: I am more interested in an algebraic proof rather than combinatorial argument or something involving calculus (however I liked  and  solution), hence I am removing the combinatorics tag.