I am sending tamil text from a form to php script but php is not recognize that.  Html Code  <form action="insert_into_db.php" method="post">   <textarea name="message" class="form-control message-box" rows="5" id="comment" placeholder="enter your message here"></textarea>  </form>   PHP code in insert_into_db.php  <?php $message = $_POST['message']; echo $message;   User Input :- இந்த டெமோ செய்தி உள்ளது  Output :- à®‡à®¨à¯à®¤ à®Ÿà¯†à®®à¯‡à®¾ à®šà¯†à®¯à¯à®¤à®¿ à®‰à®³à¯à®³à®¤à¯  expected output :- இந்த டெமோ செய்தி உள்ளது  Please help me Thanks in advance

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


Using JFrame as a static variable when I execute the main method this Null pointer Exception Occuers What is the Issue?

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


For unknown reason, some of downloaded pdf files in Firefox are opened by default by gedit, and some are by default by evince.  For those which will be opened by default by gedit, I want to select the executable file /usr/bin/evince when I initiate the download. But it always takes very long to show the many files under /usr/bin/, and sometimes forever. (See the picture below. Actually it should be "Open with" selected, not "Save File".).  I wonder what I can do to make it faster to select evince to open a pdf file when finish downloading it?  Thanks.    In my Firefox preferences:

Folder file appears empty for few minutes even though it contains file in it. any solutions to get rid of this. os is ubuntu 14.04


So the video starts off with two kids a boy and a girl and are around maybe 10 years old maybe or 8 years old (who are both speaking Spanish by the way). They wake up and find that their parents are gone and not only their parents but everyone in their town is gone. And so they pack up and try to find people and I know there's a scene where I'm pretty sure they destroy a car but I mean who wouldn't if no one existed. So they're traveling and they come across a big furry to totoro like monster in like a cave and the monster is cool. Then it shows us that there's a bunch of kids and they're all running around having a blast and there's also a bunch of other alien looking monsters but I mean they must be good cause they're not attacking anyone. And that's all I really remember I've looked everywhere for it and if you can help it would be awesome.So I watched the video maybe 5 or 6 years ago at least. I don't remember any females singing I'm pretty sure it was a band of guys. Hmm it wasn't heavy metal or anything it was more like pop maybe I don't remember much about the actual sound of it to be honest.

The video starts off with two kids a boy and a girl—both are speaking Spanish. They wake up and find that not only are their parents gone but also everyone in their town, so they pack up and try to find people.  I know there's a scene where they destroy a car.  When they're traveling they come across a big furry Totoro-like monster in a cave, and the monster is cool. Then it shows us that there's a bunch of kids and they're all running around having a blast and there's also a bunch of other alien looking monsters, but they must be good 'cause they're not attacking anyone.  And that's all I really remember. I've looked everywhere for it and if you can help it would be awesome.  I watched the video 5 or 6 years ago at least. I don't remember any females singing; I'm pretty sure it was a band of guys. It wasn't heavy metal or anything; it was more like pop. I don't remember much about the actual sound of it to be honest.


I am trying to calculate how much times user clicked the button. Using this flask code on server:  from flask import Flask, render_template, jsonify app = Flask(__name__)  nums=1 @app.route('/')  def index():     return render_template('index.html')  @app.route('/_get_data/', methods=['POST']) def _get_data():     nums=nums+1     myList = [str(nums)]     return jsonify({'data': render_template('response.html', myList=myList)})  if __name__ == "__main__":     app.run(debug=True)   and i get server error:     UnboundLocalError: local variable 'nums' referenced before assignment   For the client i use this html/javascript:  <!doctype html>               <meta charset="utf-8">                    <button id="btn">Click Me</button>

                       And a template response.html:
     {% for elem in myList %}
{{elem}}
      {% endfor %}
   So how to use global var's or what must i use just to calculate cliks??  UPD. THE ANSWER IS:  from flask import Flask, render_template, jsonify, session, redirect  class Test:     e=1  app = Flask(__name__) app.secret_key = 'xyz'  @app.route('/') def index():     session['my_object'] = Test.e     return render_template('index.html')  @app.route('/_get_data/', methods=['POST']) def _get_data():     my_object = session.get('my_object')     my_object=my_object+1     session['my_object'] = my_object     myList = [str(my_object)]     return jsonify({'data': render_template('response.html', myList=myList)})  if __name__ == "__main__":     app.run(debug=True)

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I have a laptop running Windows 8 and Ubuntu 12.10 but I have issues with installing programs in Ubuntu and the only option is to reinstall. I do not want to format my laptop, i.e. my Windows 8 should stay.  My desire is to install Ubuntu afresh on the partition where it is now without further partitioning. How do I install over the existing installation?  This question was flagged a duplicate but I the other post on a similar did not address my issue.  Sorry for the confusion guys. The link was really helpful.  many thanks.

How can I reinstall Ubuntu 13.04 safely, without losing anything except settings? Is it possible? Or at least keep only programs and the home directory?  I want to reinstall as I have recently experienced various issues like the scrolling being very jumpy and lightdm rendering weirdly. Can someone more experienced explain how to reinstall Ubuntu as I have been searching in vain for days. Thanks in advance.


peace upon you guys i was starting to learn python using head first book and i came across this  [::-1] in lists i know that when u dont include the "start" it equals to 0 by default and the "stop" equals the maximum index number in the list  so if we said the max is 5 so this means [0:5:-1] and if u run this u will get the first index but if u run this [::-1] it gives u the list in reverse order why? isnt [::-1] == [0:5:-1] but it seems it equals this instead [-1:5:-1]! so why the step index here define the start index !?     book = "The Hitchhiker's Guide to the Galaxy" booklist = list(book) booklist = ['T', 'h', 'e', ' ', 'H', 'i', 't', 'c', 'h', 'h', 'i',         'k', 'e', 'r', "'", 's', ' ', 'G', 'u', 'i', 'd', 'e',         ' ', 't', 'o', ' ', 't', 'h', 'e', ' ', 'G', 'a', 'l',         'a', 'x', 'y'] backwards = booklist[::-1] print(''.join(backwards))   output >>> yxalaG eht ot ediuG s'rekihhctiH ehT    backwards = booklist[0::-1]  print(''.join(backwards))  output >>> T  backwards = booklist[-1::-1] print(''.join(backwards))   output >>> yxalaG eht ot ediuG s'rekihhctiH ehT

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


What is the main differences between the first 'Spider-Man' Movie directed by Sam Raimi and 'The Amazing Spider-Man' by Marc Webb? And why there was a need to reboot a franchise which had a trilogy so recently?

I can understand the reboot of the Batman Series but I couldn't understand why Hulk was rebooted. And now why do we have to reboot Spider-Man, too?  Is it they are not able to write the script in the same back-drop as the previous movies in the series? Is it because they are not able to write sequels or prequels that will not conflict with the story already told in the previous movies?


When I use the WGS 84 CRS the Chukotka peninsula east of the 180 meridian is shown on the left of the map. If I project (on-the-fly) the map using a Lambert Azimuth projection, the Chukotka peninsula is shown as a whole, but the 180 meridian is shown as a line through the peninsula.  Can someone please tell me how I can either:    project my map so that the 180 meridian is not shown, or  tell me how I can hide the meridian in the vector layer, or merge the two polygons (there does not seem to be a Merge option in QGIS, unlike ArcGIS)   The syntax I am using is:  +proj=laea +lat_0=55 +lon_0=40 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs   I am using QGIS 2.14.1 on Windows 10.

I am having the issue where the International Dateline is splitting a polygon I am working with.  I have a layer of the "Federal Districts" of Russia, and the eastern most federal district is being "cut" by the international dateline.   I currently have the data frame's coordinate system set to Asia Lambert Conformal Conic and this places the two "cut" polygons next to each other (how they should be).  I really need the polygon to not be cut and show as a continuous polygon.   I've researched up and down, tried changing the projection/coordinate system, but with no luck.  I've attached a screenshot of the one multi-part polygon that is being split by the international dateline.  I would like it so that there is no cutting of the polygon, and therefore no boundary line going through the polygon.  I've even tried transforming this multi-part polygon into separate, single-part polygons, then merge them back together, but anytime any part of any polygon crosses this line, it gets cut.  Layout View:    Data View:


I just decided to move from Windows to Linux for my Android development, I just finished to setup Android Studio, I was able to import my project into it, but now I want to be able to run my application on my Google Nexus 5.  In my Android Device Monitor, my phone is detected as unauthorized.  I put :  SUBSYSTEM=="usb", ATTR{18d1}=="0bb4", MODE="0666", GROUP="plugdev"   Into :  ~/.android/adb_usb.ini

I'm trying to deploy and test an Android app on my Nexus 4 from my Ubuntu 11.10 computer, but ADB doesn't recognize it. I think I need the Google USB drivers, but I cannot find instructions on how to install them on Ubuntu.  How can I install the drivers on Ubuntu 11.10 so that ADB will recognize my N4?


There's a curious bug that keeps tripping me up on the Android app: votes sometimes appear to revert in the client, though they stick successfully server side. I'm using app version 1.0.54 on Android 4.4.3.   I've found a couple of ways this happens:   I'll give a post an up/downvote, the vote arrow will light up and the score will adjust. About a second later, enough time for a server ping and reply, the score will revert and the vote arrow will become unlit. This one happens sometimes. It's been happening for a while, but I'm not sure what version it started. I'll vote, and then leave a comment. When I leave the comment, my vote will revert: arrow becomes unlit, score reverts. This one happens every time. I am pretty sure it emerged just now in this version, 1.0.54.   In either case, if I attempt to re-cast my vote, the app will give me an error saying I've already voted on this answer and can't vote again. If I refresh, I see my vote has stuck, with the arrow lit and score adjusted accordingly. So the votes definitely get cast and stick server side, but the client side goes back to a state before they happened.  This one trips me up all the time: I'll vote, take some action (comment or read or scroll), then think "I thought I voted for that", try again, and get the error.  I suspect it might have something to do with reloading the posts in question from some kind of internal cache after a server reply, and the cached version doesn't have my vote recorded.

Related:   I am using 1.0.71 on KitKat.  Immediately after voting, the arrow is displayed in red and the vote count is correct. However, when I scroll to read answers and then back to the top, the arrow is grey again and the vote count is reset to the previous value.  A reload of the question (pulling the finger down) is needed to show the correct situation, which is kept from then on.  This case was on security.stackexchange.com but I observed the same behavior on other sites too.  Screenshots   original state:  upvoted:  scrolled down and back up  after a reload


I have some theories about why this could by wrong but I still haven't something that convinces me. What is wrong with this proof:  $ -1 = i^2 = i.i = \sqrt{-1}.\sqrt{-1} = \sqrt{(-1).(-1)}= \sqrt1 = 1 $  This would imply that: $1 = -1$  Which is obviously false.  So my theory is that it's not a great idea to write $i = \sqrt{-1}$, but I'm not sure why...

We know $$i^2=-1 $$then why does this happen? $$ i^2 = \sqrt{-1}\times\sqrt{-1} $$ $$ =\sqrt{-1\times-1} $$ $$ =\sqrt{1} $$ $$ = 1 $$  EDIT: I see this has been dealt with before but at least with  I'm not making the fundamental mistake of assuming an incorrect definition of $i^2$.


For example:   Right-click .pdf file Click "Open with..." "Choose default program"  (Reader is currently highlighted) Click Browse button Navigate to C:\Program Files\Inkscape\inkscape.exe, press Open   Nothing happens.  Inkscape doesn't appear in the Recommended Programs or Other Programs lists, and the highlighted program is still Reader.  It's impossible to select Inkscape.  I've had this working in the past, but now I can't select it.    I've seen this in the past with other programs.  Sometimes I can set a program as the default (or as a non-default option that shows up in "Open with" sub-menu), other times I can't.  Why?

I am running Windows 7 x64. I have a file type that I want to associate with Microsoft Access 2003.  I right-click on the file and select Open With->Choose Default program. In the "Open With" dialog, I select the browse button. I choose Program Files (x86)\Microsoft Office\Office11\msaccess.exe and press "Open".  I end up back at the "Open With" dialog, but nothing has changed. Access is not listed as a program to use to open the file with. The original program (Adobe Acrobat) that is associated with this program is still selected.  Any tips on getting this association to work?


Just a few minutes ago, a particular user created two accounts and posted threatening posts against a certain religion. In such cases, what should be the action taken because the user can just keep creating accounts and keep posting such things because flagging is not going to help either.  Here is a fully censored snapshot of a particular who just happened to do that.

When flagging, there are two special case options: spam and rude or abusive.   What is spam, and when should I flag content as such? What is considered offensive, rude or abusive content? How does the spam flag differ from the rude or abusive flag? What is the effect of these special flags? When are these flags removed?


I have zero knowledge of programming. The problem I am facing is when installing addon it is showing to upgrade to 2.8x version.  Here's the part of the code. where one of the warnings is showed.  def register():     bpy.utils.register_module(__name__)     bpy.types.INFO_MT_file_import.append(import_bob_menu)     bpy.types.INFO_MT_file_export.append(export_bob_menu)     bpy.types.INFO_MT_file_import.append(import_cob_menu)     bpy.types.INFO_MT_file_export.append(export_cob_menu)     bpy.types.INFO_MT_file_import.append(import_leveldefs)     bpy.types.INFO_MT_file_export.append(export_leveldefs)   def unregister():     bpy.utils.unregister_module(__name__)     bpy.types.INFO_MT_file_import.remove(import_bob_menu)     bpy.types.INFO_MT_file_export.remove(export_bob_menu)     bpy.types.INFO_MT_file_import.remove(import_cob_menu)     bpy.types.INFO_MT_file_export.remove(export_cob_menu)     bpy.types.INFO_MT_file_import.remove(import_leveldefs)     bpy.types.INFO_MT_file_export.remove(export_leveldefs) ```

Can you please tell me how to remake it for Blender 2.8x version?  def register():     bpy.utils.register_module(__name__)     bpy.types.INFO_MT_file_export.append(menu_func_export) def unregister():     bpy.utils.unregister_module(__name__)     bpy.types.INFO_MT_file_export.remove(menu_func_export) if __name__ == "__main__":     register()


I want to get a list of bib-keys from my .bib file which I don't actually use in my document.  I have found "" but since I'm using biblatex I don't have the information in the .aux files, so I can't use .  Is there a biblatex way to get such a list?

I need two bib-like sections: a "References" giving works explicitly cited in my text, and a "Bibliography" (or "Further reading" if you prefer) giving everything from my bibfile that didn't already appear in "References". The first is of course completely standard, but the second... I'm stumped.  Further loose constraints: I'm somewhat committed to biblatex and the biblatex-apa style. But I'll happily accept an answer not related to them if there's any chance I can adapt it.


I have a code that is supposed to create an object assign it an Object ID from a static int value and then increment the static value. as shown below;  public class ObjB implements Serializable{  private static int ObjNum = 00000100;   String OID;  public static Booking newObjBTerminal() {         Booking O = new ObjB();     String O_ID = "N" + String.valueOf(ObjB.ObjNum);     System.out.println("Object ID is: " + O_ID);     Booking.BkNum++;        O.OID = O_ID;      }  }   I am expecting an output of  Object ID is: N00000100  Instead I get  Object ID is: N64  Any idea on whats going wrong?

This prints 83  System.out.println(0123)   However this prints 123  System.out.println(123)   Why does it work that way?


class Pointgrejen{     public static void main (String [] args){         int[] a = new int[5];         a[3] = 7;          Point[] b = new Point[5];         b[3].x = 7;           System.out.print(a[3]);         System.out.print(b[3]);     } }   Why isn't the program executing? Point is a java class in java, but is the error in this code that I havent defined what type of data the array should hold in the point array? Or whats the bigger issue with this code?

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


I'm trying to alter a table to add the charachter X to every item in a certain row in my table.  I need to trunk all transaction’s in the table under a field to 40 characters, this needs to be done using a batch executed DML statement. The 40th character should be set to a X – to show its been shortened.  Currently I am trying to use SUBSTR just to trial a way of updating the lines  Note: On the below example is just some trial and error attempts, I created a sample table in SQL fiddle as I'm not allowed to update on main table yet  UPDATE test SET tester = SUBSTR(tester , 40, 1) + 'x';   However this returens NULL on all instances  I have tried   UPDATE test SET tester = tester + SUBSTR(tester , 40, 1) + 'x';   However this (when building schem in fiddler) returns  Schema Creation Failed: ORA-01722: invalid number   I have tried browsing through google and oracle data dictionary, but tbh my researching skills is pants, any ideas where I can look specifically?  I located  but I'm having trouble implementing  Any ideas would help.  Thanks

What is the string concatenation operator in Oracle SQL?    Are there any "interesting" features I should be careful of?    (This seems obvious, but I couldn't find a previous question asking it).


I've added this function to my .bashrc file:  SSH(){     ssh -X -o PasswordAuthentication=yes root@10.222.22.$* }   and while trying to perform for ex. SSH 101 I get message:  SSH: command not found

The problem I had was to get the .bashrc and .bash_profile and/or .profile scripts to execute by default when using the native Gnome terminal application.  I found a number of references which told me in order to get these to "run" you needed to have an interactive session with login but none of the threads I found explained how to do this with the native terminal application.  So my question is how do you get the .bashrc and .bash_profile scripts to run on Centos every time you use the Terminal Application on the Gnome desktop?


I am an illiterate in computer knowledge, more so with Linux. Vexed of Windows OS, I installed Ubuntu 16.04LTS on my PC for the 1st time and would like to stick with Ubuntu forever. But from time to time, the screen goes dull and windows freeze. It regains life after a few moments (of frustration).  Can someone here educate me on this annoying aspect please?

I installed Ubuntu 14.04 on a Toshiba C50D-A-133 laptop. After installation I opened a terminal, and ran sudo apt-get install with some packages. I remember PlayOnLinux , GIMP, etc.  While the packages were being installed I started Empathy to enter the access data from my jabber account. In the shell window I saw that the Windows fonts were unpacking. Empathy fades to gray, and after 1 or 2 seconds it goes back to normal, and I could enter the jabber account information. At the shell windows apt-get was unpacking the next packages. Then after this a window with an update notification appears. I chose there preferences, and I unmarked the checkboxes there. After closing, the windows turned gray too for about 1 or 2 seconds, then the notification "no updates needed" appears.  I think that the windows became unresponsive because the system was busy. Is this correct or could something be damaged or wrong with my system? No program crashed or was aborted, only turned gray for a second, and then ran normally.


I am asked to solve following limit problem:     $\lim_{x \to 0}\frac{\sin x}{x}$   It is pretty straightforward using :  Since $$ \lim_{x \to 0}\frac{\sin x}{x} = \frac{0}{0}$$ Then we take derivative of the numerator and denominator, getting: $$ \lim_{x \to 0}\frac{\cos x}{1} =1$$  However, I would like to know whether there is a way to solve the limit problem above without L'Hôpital's rule. Is there?

How can one prove the statement $$\lim_{x\to 0}\frac{\sin x}x=1$$ without using the Taylor series of $\sin$, $\cos$ and $\tan$? Best would be a geometrical solution.  This is homework. In my math class, we are about to prove that $\sin$ is continuous. We found out, that proving the above statement is enough for proving the continuity of $\sin$, but I can't find out how. Any help is appreciated.


Nowadays sites have different password strategies. In example:   Facebook: 6 characters min, no restriction Ameli.fr: 8 characters min, all should be numbers. StackExchange: 8 characters min, upper case, lower case, a number or a special Char ...   Some users have several passwords, it could be:   For security reasons :they can use the common one for spam sites, complex one for the bank etc.. Historical reason : they were used to have a 6 character password, then they had to create a new one for 8 Characters with an UpperCase.     What happens when they try to connect to a website?  There are no signifiers on the password strategy used, they have to guess which password they have to use.  If it's a website they don't visit often they will at a point use the forgot password link, then go to their mail client, go back to the website, save the new passwords with the displayed strategy. This is even more true with the "remember me" option which allows the user to forget his password for a period.  Then they will repeat the same workflow every month until they memorize the password strategy of the website.   I would like to do add usual password validation on the login form, to help user retrieving his matching password. It could be a discreet message like "your password has at least one upper case letter" etc, the same way than registration forms provide it. I don't see any security problem since the password strategy is directly available in the registration form.  Is this idea a good step forward, or can anyone come up with another solution?

I have frequently bumped into this issue: sites ask for my password (e.g. Stack Exchange itself) when I want to do something like updating my profile. This is per se a low priority site for me so I use my weakest password in mind that fits the minimum requirements. The event (profile update) is also rare so I forget my password completely. I then face the issue of not being able to login then go to the password reset screen where the criteria are written black and white. After that I return to the login screen and enter the correct password.    The question is not whether or not I am a moron but why the criteria are not shown when I mess up my password for the first time.  An example to weakest password:   Anything is permitted: dodge  Uppercase and lowercase needed: Dodge At least 8 characters and uppercase: Dodgerman At least 8 + uppercase & number needed: Dodge1014


When I start the Update Manager it shows me this message:     Could not initialize the package information   An unresolvable problem occurred while initializing the package information.   Please report this bug against the 'update-manager' package and include the following error message:  'E:Type '/tualatrix/ppa/ubuntu' is not known on line 3 in source list /etc/apt/sources.list.d/tualatrix-ppa-natty.list"    How can I solve this problem?

Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed?


What books on machine learning are recommended for a CS graduate student without a huge background in statistics?  I do have some background in ML (and of course linear algebra, probability, etc.) but not really a great/firm background in statistics.  I saw a lot of recommendations for:   PRML:  Pattern Recognition and Machine Learning by Bishop.  ESL:  Elements of statistical Learning by Hastie et al.  MLaPP: Machine Learning - a Probabilistic Perspective by Murphy.   Which ML book is recommended for a grad student with my background? I see MLaPP is pretty new but seems to include a lot of topics including deep learning etc. - I'd love to know what did someone who read it though of it.

I find resources like the  and  incredibly useful. They obviously serve well as references but also help me to organize my thoughts on a subject and get the lay of the land.   Q: Does anything like these resources exist for machine learning methods?  I'm imagining a reference card which for each ML method would include:   General properties When the method works well When the method does poorly From which or to which other methods the method generalizes. Has it been mostly superseded? Seminal papers on the method Open problems associated with the method Computational intensity   All these things can be found with some minimal digging through textbooks I'm sure. It would just be really convenient to have them on a few pages.


So I have a Nikon D5500 with kit lens and wish to take nicer pictures of the moon, I have a tripod and remote control.  Can someone tell me what I need lens wise, AF-s(??) DX(??) make(??), all I know so far is to look for 70-300mm. I would like as cheap as possible, and probably second hand via ebay.  Any advice?

Hi I am a photography hoobyist. At the moment I am using a Nikon D3100 with the standard kit lens (18-55mm). I am interested in taking photos of the moon. I am debating whether to buy a 55-200mm lens or a 55-300mm lens. Which one would be better?  P.S I am on a tight budget and I am looking for a lens for personal use, not commercial.  Would appreciate any answers!  Thank you!


Please do not mark as duplicate because I have been searching so long on other posts but they don't work for me. Please give me a step by step tutorial as an answer and be VERY SPECIFIC. I am not a tech savvy and my cousin downloaded ubuntu (which I regret) so I honestly know nothing. I bought minecraft for $26 and it sucks that Ubuntu won't let me open. I need as many answers as I can get, because like I said before, I tried other users advices but none of them worked.Thank you so much.  *Also I asked to not mark as duplicate and of course TWO of you marked it as duplicate oh whale i understand    ok so i did this:    java -jar Minecraft.jar    Error: Unable to access jarfile Minecraft.jar  nvm I got Windows back :) thank you for your help and to those who say I need to write everything out, I'm really sorry but it was really late when I tried to fix it so I was trying so many things and I was so frustrated that I fell asleep on my desk.. I honestly know that I did try every answer to this question on this website.   But I'm glad that some people took time to answer and I apologize greatly that my question was "all fluff and no substance." I hope that you all have a wonderful day~

I'm wondering something. Whenever i right click on minecraft and click open with another application, i try to find Java JDK. I have installed it for minecraft itself, but i just cant find where java is on the list of other applications. Any help?


I am curious as to whether set blacksmith plans sometimes drop only from certain sources. I am under the impression (right now) that all blacksmith plans drop unniversaly and random. Unlike the legendary crafting materials where you have to fight specific super-bosses.  Is this the case?  Can I get all pieces of the "Hallowed" set () Randomly throughout the rift, without having to farm a specific situation?

I just learned from looking at the official Diablo 3 site that there are a variety of  that you have to require in order to craft certain rare and legendary items.  I have not seen any of these drop so far in my game, nor have I seen them for purchase at the Blacksmith or other vendors.    Does anyone know how you get access to these plans?


System.out.print("Hi " + name + ", which do you choose? (O)dds or (E)vens? ");          String userChoice = null;          while ((!userChoice.equals("O")) || (!userChoice.equals("E"))) {              userChoice = input.nextLine();         }          if ( userChoice.equals("O") ) {             System.out.println(name + " has picked odds! The computer will be evens.");         } else {             System.out.println(name + " has picked evens! The computer will be odds.");         }  Cheers guys, I am new to Java and I have no clue why this is not working. I want to ask the user for his choice until he chooses "O" or "E". Otherwise re-ask the user for his input. Therefore my idea was to check if userChoice does not equal "O" or "E" > ask again. Thank you in advance for your help! I get this error when running the code:  Let´s play a game called "Odds and Evens" What is your name? Ron Hi Ron, which do you choose? (O)dds or (E)vens? Exception in thread "main" > java.lang.NullPointerException at com.ronwalter.Main.main(Main.java:18) Process finished with exit code 1

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


there are 3 colors in a fair die with 2 faces each. which means that the probability of getting each color is 1/3. Let N be the number to get all the colors. What is the expected value oh N: E(N)? (i.e there are only 2 colors on N-1 throw)

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


import java.util.Scanner;   public class Calculator { static double num1 = 0, num2 = 0; static Scanner input = new Scanner(System.in); static int choice = 0; static double answer = 0;    public static void main(String args []){     enter(num1, num2); }  public static void enter(double num1, double num2) {     System.out.println("********CALCULATOR*********");     System.out.println("Type in your first number.");     num1 = input.nextDouble();     System.out.println("Type in your second number.");     num2 = input.nextDouble();     System.out.println("Enter the number associated with what you would like to do.");     System.out.println("1. Add them");     System.out.println("2. Subtract them");     System.out.println("3. Multiply them");     System.out.println("4. Divide them");     choice = input.nextInt();     operations(num1, num2, choice);  }  public static void operations(double num1, double num2, int choice) {     if(choice == 1){         answer = num1 + num2;     }else if(choice == 2){         answer = num1 - num2;     }else if(choice == 3){         answer = num1 * num2;     }else if(choice == 4){         answer = num1 / num2;     }     printAnswer(answer); }  public static void printAnswer(double answer) {     boolean re;     String tryAgain;     System.out.println("The answer is " + answer);     System.out.println("Would you like to use it again? Yes or No.");     tryAgain = input.next();     if(tryAgain == "yes"){         re = true;         restart(re);     }else if (tryAgain == "no"){         re = false;         restart(re);     }  }  public static void restart(boolean re) {     if(re == true){         enter(num1, num2);     }     if (re == false){         System.exit(0);     }  } }   I'm trying to make a calculator, but I ran into a little problem... The problem is occurring after  tryAgain = input.next();   I don't think the rest of my code is being run The Scanner works properly but the program quits after I type something in.

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


I "accidentally" ran   sudo chmod -R 0755 /usr/lib   And now many things in my system don't work. Is there a cure for this (Manjaro 17.1) that doesn't involve re-installing my entire system?

I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?


I have two tables .  1-> SM_Employee       (1) employeeid     (2) roleid  (3) storeid    2-> SM_SalesRepWorkflow    (1) workflowid  (2) Salesrepid   foreign key to employeeid  (3) QuantityAssigned  (4) QuantityLeft  (5) month   (6) year    By these tables I need to select first row of every SalesRep Details from   SM_SalesRepWorkflow order by SalesRepId for CurrentMonth and CurrentYear.  Example  Workflowid   SalesRepId  QuantityAssigned  QuantityLeft  Month  Year     WF_101   :   EMP_101  :      100        :     90      :   May :   2013   WF_101   :   EMP_102  :      100        :     100     :   May :   2013   WF_101   :   EMP_103  :      100        :     80      :   May :   2013   WF_102   :   EMP_101  :      100        :     70      :   May :   2013     So result i want is      WF_101   :   EMP_101  :      100        :     90      :   May :   2013   WF_101   :   EMP_102  :      100        :     100     :   May :   2013   WF_101   :   EMP_103  :      100        :     80      :   May :   2013     So There can be many Workflow for a SalesRep.  But i want the first one for every SalesRep for current month and year.

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


I bought a new Wi-Fi card (ASUS PCE-AC68). I have both Windows 10 and Linux (Ubuntu). In Windows 10 the card works great, but in Ubuntu it isn't operational. I tried to run inxi -N: Network:   Device-1: Intel Ethernet I219-V driver: e1000e             Device-2: Broadcom BCM4360 802.11ac Wireless Network Adapter driver: bcma-pci-bridge             Device-3: Qualcomm Atheros Killer E2400 Gigabit Ethernet driver: alx   Device 2 is the new card. Then I tried to run ip link, but it showed only lo:, eht0 and eth1. So how what can I do to make the card working also in Ubuntu, not only in Windows? Thanks for help.

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I managed to this before, but now I'm getting errors with the same format of a command. The idea is I'm attempting to make a blockdata command that will set a sign to say something (which works before adding the tellraw) that has a ClickEvent running a tellraw command that will display the info of the map. The problem is, the command gives me this error:     [00:44:34] Data tag parsing failed: Expected '}' but got 't' at: ...d\",\"value\":\"tellraw @p [\{\"t<--[HERE]   I can't figure out what is wrong with that point, though. Like I said in the beginning, I've done this before in a previous map, using what I think was the same command aside from the actual data of what the sign and tellraw said.   What is the problem with this command?  /blockdata ~ ~1 ~ {Text1:"{\"text\":\"Right Click\",\"color\":\"blue\",\"bold\":true,\"underlined\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"tellraw @p [\\{\\"text\\":\\"Welcome to \\",\\"color\\":\\"gold\\"},{\\"text\\":\\"World of Lights\\",\\"bold\\":true,\\"italic\\":true,\\"color\\":\\"green\\"},{\\"text\\":\\" \\",\\"bold\\":true,\\"color\\":\\"gold\\"},{\\"text\\":\\"by \\",\\"color\\":\\"gold\\"},{\\"text\\":\\"jackmaster110\\",\\"underlined\\":true,\\"color\\":\\"yellow\\"},{\\"text\\":\\"!\\",\\"underlined\\":true,\\"color\\":\\"gold\\"},{\\"text\\":\\"\\n\\"},{\\"text\\":\\"Info:\\nTo play you must click the \\\\"play\\\\" sign behind you. Then you will be dropped into the map.\\nThis is a map where you must get through the \\\\"World of Lights.\\\\" There will be challenges such as parkour,puzzles,and some other kinds of awesomeness.\\nIf you enjoy the map please check out the other maps and minigames available on the server.\\",\\"color\\":\\"gold\\"},{\\"text\\":\\"\\n\\"},{\\"text\\":\\"Have fun!!!!\\",\\"color\\":\\"gold\\"}]\"}}",Text2:"{\"text\":\"asdasdfasdgdasfeasdf\",\"color\":\"green\",\"underlined\":true,\"strikethrough\":true,\"obfuscated\":true}",Text3:"{\"text\":\"asdasdfasdgdasfeasdf\",\"color\":\"green\",\"underlined\":true,\"strikethrough\":true,\"obfuscated\":true}",Text4:"{\"text\":\"For Info\",\"color\":\"blue\",\"bold\":true,\"underlined\":true}"}

Often, when making a command block contraption, you need to set an entity's data tag. These tags can sometimes be very long, with many layers of nested curly and square brackets. For example, this is the command to summon a villager with a single custom trade:  /summon Villager ~ ~ ~ {Profession:3,Career:2,Offers:{Recipes:[{buy:{id:minecraft:diamond,Count:6b}},sell:{id:minecraft:diamond_hoe,tag:{ench:[{id:16s,lvl:10s}]}]}}   The single-line command block interface of Minecraft makes it incredibly difficult to find and fix errors, especially when it comes to mismatched brackets. In fact, for illustration purposes, I put an error in the above command.  What techniques can I use to find and fix unbalanced square or curly brackets when writing long and complicated data tags?


This has been in my mind for a long while now and I can't seem to figure it out myself. Neither do I find any useful information about this, out there, so I hope to get some answers here instead.  I'm using jQuery which is integrated into my site, together with a lot of PHP GET parameters to control what content you're watching. However jQuery doesn't seem to be available when code inside an if-block with a GET parameter tries to reach it.  Example PHP:  if($_GET["page"]) {     echo "
Click me
"; }   Example jQuery:  $(".box").click(function() {     alert("Box!"); });   When you press "Click me", nothing would happen, as it the jQuery code doesn't exist. Why is this happening and is there any workarounds for this?

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.


I have this code:  double timeTillTick = 15.0; private void lower_Tick(object sender, EventArgs e) {     if (timeTillClear > 0)     {         timeTillClear -= 0.1;         clearingIn10SecondsToolStripMenuItem.Text = "Clearing in " + timeTillClear + " seconds.";     }     else     {         lower.Enabled = false;     } }   lower ticks once every 100 milliseconds. When it:   Gets to 8 Gets to 5 Gets to 1   it increases by 0.000000000000001. Why?

I understand that floating point calculations have accuracy issues and there are plenty of questions explaining why.  My question is if I run the same calculation twice, can I always rely on it to produce the same result?  What factors might affect this?   Time between calculations? Current state of the CPU? Different hardware? Language / platform / OS? Solar flares?   I have a simple physics simulation and would like to record sessions so that they can be replayed.  If the calculations can be relied on then I should only need to record the initial state plus any user input and I should always be able to reproduce the final state exactly.  If the calculations are not accurate errors at the start may have huge implications by the end of the simulation.  I am currently working in Silverlight though would be interested to know if this question can be answered in general.  Update:  The initial answers indicate yes, but apparently this isn't entirely clear cut as discussed in the comments for the selected answer.  It looks like I will have to do some tests and see what happens.


Are all symbiotes from Trill and are they native to someplace else?

The title says it all.  How did the people of Trill decide that it was a good thing to put symbionts inside themselves?    The symbionts seem to be quite wise, but unjoined symbionts lack any obvious means of communicating with other life forms, and therefore don't have an obvious way of saying,     "Hey, humanoid!  Yeah, you!  Put me in your abdomen!"   Only a fraction of the Trill population get joined, and in the DS9 episode  we see a pool of healthy, unjoined symbionts being tended to, and so joining is not essential to the survival of either species.  How was the practice of joining Trill humanoids and symbionts initiated?


I have a row in a div with a button at the end, when I click on the button it logs in the console.  I add another row via jquery with the same class but when I click on the button on the second row the event does not fire.  See the example here   Click add (to add second row) then on 'X' for each row (whilst monitoring console). Only row 1 works for me  code also below: HTML

Description 1

                                     <input id="button_1" class="removeTaskButton" type="button" value="X">

  <button id="addTaskButton" type="button"                             class="btn btn-sm btn-primary">Add Task</button>   JS  $('.removeTaskCol').on('click', function(){            console.log("Clicked X");     });    $('#addTaskButton').on('click',function() {         $('#tasksTableDiv').append('
'                                 + '
Description 2'                  + '
'                                 + '
'                                     + '<input id="button_2" class="removeTaskButton" type="button" value="X">'                                 + '
'                             + '
');      });


The docs say that  is deprecated and should be replaced with some untrivial spell with Calendar (magic phrase, I mean). A bit more extensive search tells me that the proposed remedy is no better and Calendar is arguably the worst JDK API.  Finally I found .  But what I have not  is  concise, simple explanation (and not an obscure reference to "internationalization problems"):  1) Why Date is bad,  2) Why Date.UTC() is bad, and   3) Why Calendar & friends are bad.  These classes may have problems for the general case, but probably they are ok for my specific problem?  For example, Date is mutable, it is wrong in the long run, but I myself can live with that right now. Yes, the ranges are crazy, but after I add/subtract 1, will I have other problems?  (What I need right now boils down to an alarm-clock that works across time zones. No dates-without-time or dates-in-documents, leap seconds are irrelevant.)  EDIT Folks, I understand that this question and  are roughly about the same topic, but the questions are different:  1) Android means restricted resources, therefore there is a counter-argument of 100+ classes in the .apk  2) My question is different: the question Why Date/Calendar is bad? means that I want to know what problems will be there if I decide to use these classes. I want a concise explanation of the reasons behind the story with these date/time classes.

I'm creating a web based system which will be used in countries from all over the world. One type of data which must be stored is dates and times.  What are the pros and cons of using the Java date and time classes compared to 3rd party libraries such as ? I guess these third party libraries exist for a good reason, but I've never really compared them myself.


I have tried and tried to download and burn Ubuntu 13.04 without success. The first time took 18 hours. Where and from whom can I purchase a installation disc in Atlanta, Georgia.

I need to upgrade my existing Ubuntu system, and I also want to install Ubuntu on a new laptop.  I would like to have an installation CD or DVD to do both of these.  Where exactly I can order or request an Ubuntu installation CD/DVD/USB?


I have recently bought a Wacom CTH480 (Intuos pen and touch small) (I am using Ubuntu 13.04 --64 bit)  The Wacom Graphics Tablet application present under System Settings is showing "No Tablet Detected".  lsusb detects the Wacom device as connected, but   xsetwacom --list devices shows no output.  The light (white) itself on the device glows when connected to the computer and other light (blue) glows when the stylus is brought near to the active area. The mouse pointer does not move when the stylus is moved over the active area on the tablet.  I have visited some forums discussing the problems relating Wacom tablets and the Linux Wacom project, but got nowhere on how to start troubleshooting the problem.  Any help will be greatly appreciated.

I need a little help trying to install a , model number CTL-480/S. My installation of Ubuntu 13.04, 64bit, doesn't seem to be able to detect the device. I've tried an few different USB ports on my machine and get the same result.  I believe there is an issue because when I open the System Settings app from the launcher and browse to the Wacom Tablet section under hardware, it reports that there is 'No table detected'.  When I use lsusb I can see the device is detected:  Bus 003 Device 004: ID 056a:030e Wacom Co., Ltd   I've also pulled the following from the syslog:  Oct 16 16:51:05 earth kernel: [ 7062.388031] usb 3-5: new full-speed USB device number 4 using ohci_hcd Oct 16 16:51:05 earth kernel: [ 7062.611038] usb 3-5: New USB device found, idVendor=056a, idProduct=030e Oct 16 16:51:05 earth kernel: [ 7062.611042] usb 3-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Oct 16 16:51:05 earth kernel: [ 7062.611045] usb 3-5: Product: Intuos PS Oct 16 16:51:05 earth kernel: [ 7062.611047] usb 3-5: Manufacturer: Wacom Co.,Ltd. Oct 16 16:51:05 earth mtp-probe: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:02.0/usb3/3-5" Oct 16 16:51:05 earth mtp-probe: bus: 3, device: 4 was not an MTP device   I'd really appreciate any suggestions to help debug and install this device.


Should you also perform feature scaling/mean normalization when predicting with a model, that was trained and tested on with feature scaling/mean normalization?

I am doing a project on author identification problem. I had applied the tf-idf normalization to train data and then trained a svm on that data.  Now when using the classifier should I normalize test data as well. I feel that the basic aim of normalization is to make the learning algo give more weight to more important features while learning. So once it has trained it already knows which features are important, which are not. So is there any need of applying normalization to test data as well?  I am new to this field. So please ignore if the question appears silly?


I accidentally deleted /usr/lib/jvm through the terminal.   How can I fix this problem?

I deleted the  /usr/share/themes directory, how can I recover it? Is there any way to check if there is any missing file/directory in /Computer directory? This was a bad try to change GIMP and Inkscape themes ("gtkrc" file). I changed all "gtkrc" files that I found in the system (stupid me...) and now my windows and apps are distorted =(


I need to find $|GL_2(F_p)|$, I am very very uncomfortable in counting, so please help here I proceed,  $\begin{pmatrix}a&b\\c&d\end{pmatrix}$ be such an invertible matrix, so we need and sufficient that $ad\neq bc$, so if i chose all non zero $a,b,c$ arbitrarily and chose $d\neq a^{-1}bc$ and form matrices then the cardinality   will be $(q-1)^3\times (q-2)$, well now if one of $a,b,c,d$ be zero then other three can be anything nonzero so in this case cardinality will be $4(q-1)^3$, so finally if two entries are $0$ then they must be opposite to each other i.e diagonally, but other two must be nonzero, so cardinality in that case $2(q-1)^2$, so total number is just sum of three cases.

Let $\mathbb{F}_3$ be the field with three elements. Let $n\geq 1$. How many elements do the following groups have?   $\text{GL}_n(\mathbb{F}_3)$ $\text{SL}_n(\mathbb{F}_3)$   Here GL is the , the group of invertible n×n matrices, and SL is the , the group of n×n matrices with determinant 1.


I don’t have a lot of experience with large-format prints and was assigned a task of creating a wall vinyl banner 2,80 m × 2,92 m. I’m working on a smaller artboard in InDesign (25 % of given measurements). There’s a picture that I need to use and it’s quite small for this job: 15 cm × 17 cm, 300 dpi. How much could I enlarge it so that it would fill the good amount of the canvas but it wouldn’t be blurred or pixelated?  I would also appreciate the help with the text size on this project. What is the usual size for heading, body text, dates?

For wall-sized graphics and large banners (e.g. 3m × 5m), what is an acceptable PPI for print? As I understand it 300 ppi is the typical for 'small' artworks (esp. for clean text resolution). However, for small artworks, the audience usually engages at a much closer distance. Therefore, in the interests of keeping a bitmap file down to a reasonable size, can you get away with a much-reduced PPI for a large format/banner print?


While disabling windows path length limits makes it possible for some applications to use longer paths others are still not capable of dealing with long paths, because they have some internal checks. How do I get around that?

I wanted to copy files from a Windows 7 Machine to a Windows 10 Machine and used Network transfer via LAN, however, I wasn't able to copy all the data because I received an error at the end:  Destination Path Too Long --- The file name(s) would be too long for the destination folder...   I researched and found this , and after doing the workaround on that site, I was able to copy all the remaining data, however, when I tried to open these files from the Windows 10 Machine another error appeared, with the file location becoming:  \\\?D:\Users\Username\Desktop\Super\Long\Path\Filename...   The file location is not complete. The files are not corrupted and can still be opened if I try to shorten the path.   Question: Is there a way to open a file with long path in Windows 10 without shortening the path?


I was trying to make a snowman from scratch and when I tried to import the file into blender it showed the xyz axis thing but no object, so I checked the format and it was a .MTL file. I've been trying to find a .MTL to .OBJ converter to fix this problem because .OBJ files have worked in the past. I've found none and was wondering if there was a solution at all.

I am new to Blender. I downloaded a .obj file of a plant model. When I unzipped it I found two files (.obj and .mtl).  I imported the .obj file and I couldn't do the same with the .mtl to apply the material and the textures.


In my report I have a long url in my bibliography section. it is not formatted as the other references. I followed  and  articles for that. But I cannot solve my issue. I am using LyX  This is my reference url I have an issue with  . 2014. . [ONLINE] Available at: http://www.stat.purdue.edu/~doerge/BIOINFORM.D/FALL07/MarjoramTavareNRG2006.pdf. [Accessed 29 November 2014].   this is how it is shown in pdf    In my preamble I tried the answers in above articles. But I ended up with no luck.  This  is my preamble.  \usepackage{makeidx} \usepackage{multirow} \usepackage{multicol} \usepackage[dvipsnames,svgnames,table]{xcolor} \usepackage{epstopdf} \usepackage{ulem} \usepackage{hyperref} \author{Viraj Gamage} \title{}   \newenvironment{indentation}[3]{\par\setlength{\parindent}{#3} \setlength{\leftmargin}{#1}       \setlength{\rightmargin}{#2}% \advance\linewidth -\leftmargin       \advance\linewidth -\rightmargin% \advance\@totalleftmargin\leftmargin  \@setpar{{\@@par}}% \parshape 1\@totalleftmargin \linewidth\ignorespaces}{\par}%   % new LaTeX commands   \newcommand*{\titleGP}{\begingroup % Create the command for including the title page in the document \centering % Center all text \vspace*{\baselineskip} % White space at the top of the page  \rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % Thick horizontal line \rule{\textwidth}{0.4pt}\\[\baselineskip] % Thin horizontal line  {\LARGE Information Technology Based Tools and Approaches \\ For \\[0.3\baselineskip]  ~Genetic Analysis}\\[0.2\baselineskip] % Title  \rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % Thin horizontal line \rule{\textwidth}{1.6pt}\\[\baselineskip] % Thick horizontal line  \scshape % Small caps A LITERATURE REVIEW PRESENTED TO UNIVERSITY OF COLOMBO SCHOOL OF COMPUTING \\ % Tagline(s) or further description IN CANDIDACY FOR THE DEGREE OF BACHELOR IN COMPUTER SCIENCE \\[\baselineskip] % Tagline(s) or further description SCS 3017,  LITERATURE SURVEY\par % Location and year  \vspace*{2\baselineskip} % Whitespace between location/year and editors  COMPLETED by \\[\baselineskip] {\Large m.g.w. lakshitha \\ reg: no - 2011cs081 \\ index no - 11000813\par} % Editor list {\itshape University of Colombo School of Computing\par} % Editor affiliation  \vspace*{2\baselineskip}  SUPERVISED by \\[\baselineskip] {\Large Mrs. m. w. a. c. r. wijesinghe \\ BSc(Pdn), PGDip(Col), MSc(Col), MPhil(Col)\par} % Editor list  \vfill { REFERENCE STYLE : HARVARD \\ WORD COUNT : 5266\\ TOOLS USED : LyX, Mendeley \par}   \vspace*{2\baselineskip}  { december 10, 2014 \par}   \endgroup}   Can you please tell me how to solve this issue. And where to put any codes in preamble  Thank you!

I am writing my survey report using LyX. In my bibliography section, there is unusual behavior in my pdf. One reference breaks the margin. This is the issue  You can see that one line is out of standard formatting. Why does this happen? Can I solve the problem?


I searched for this first and couldn't find it already suggested.  I'm finding I'm coming across posts (often from new users) where an ordered list is included but is not formatted properly, because they've used brackets rather than periods.  1) Here is an example 2) of what they do   When really They wanted it to look like this   It can be fixed with a quick edit, but not all users do this (or know how). I was wondering whether the markdown parser could be extended to also recognise this alternative notation?

The Markdown editor knows that an empty line, followed by a number, followed by a period, followed by a space, is a list item.  This works great It's almost magic  The problem is that I almost always use a close parenthesis for my lists. I think it's a pretty common practice, but the problem is that the editor / Markdown parser doesn't accept parenthesis as an acceptable list delimiter:  This fails horribly This is on the next line I swear


In this program the answer/output is false can you explain how is it so?  I have tried the code and i got output "false"  class eq { public static void main(String args[]) { String s1 = “Hello”; String s2 = new String(s1); System.out.println(s1==s2); } }   i expect the output to be "true"

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


It's much harder to closer a door if you push near its hinges as opposed to pushing at the edge of the door. I understand that this is because the torque is calculated by $r \times F$, but I'm trying to get a feel for why the distance from the rotation axis matters. How does the door (or long rod) that I'm trying to turn know how far I am away from the rotation axis? If I peel everything back, I'm just pushing some atoms in the door, which then pull neighbouring atoms along for the ride etc..

Why does a body rotate faster if force is applied away from the pivot? I need an intuitive answer to this. Like why does a door rotate slower if I push at it closer to its hinge, or faster if I push at it farther away from its hinge? What actually makes that happen?


Is this possible or something we're all waiting on?  When I go to slide a vertex along an edge (G,G) I can't snap it to another vertex along that line (from a different mesh).    -James F

I am a precision modeler, which means I like to be exact instead of "eyeballing" things when I model. I am very happy to see the option to Edge Slide with Clamping Off in v2.75a, but I don't seem to be able to snap the edge slide destination to a vertex point elsewhere on the model. Is this possible and I am just missing something?


I'm working on a video game project with a friend. I use blender and he uses Unity, but we have a problem trying to make a very simple object, a stone. We made a first stone elongated on the x-axis that seems to work, then another elongated on the z-axis. This one doesn't work well and arrives lying on unity. I tried to apply a -90° rotation on the X axis and it didn't work. What can I do?

When I create something in blender and than I export it to unity as an fbx, it is rotated -90 degrees on the x axis to keep it correct rotation but can I export it with (0,0,0) rotation by default ? So it will be correctly rotated and its rotation would be (0,0,0).


I uninstalled some python packages in ubuntu using sudo pip uninstall packagename and after that my pip got corrupted. When I do pip -V its showing this     from pip._internal.download import PipSession   File "/usr/local/lib/python2.7/dist-packages/pip/_internal/download.py", line 15, in <module>     from pip._vendor import requests, six, urllib3   File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 97, in <module>     from pip._vendor.urllib3.contrib import pyopenssl   File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>     import OpenSSL.SSL   File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>     from OpenSSL import rand, crypto, SSL   File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>     SSL_ST_INIT = _lib.SSL_ST_INIT AttributeError: 'module' object has no attribute 'SSL_ST_INIT'   The first thing I did to solve this problem is to reinstall pip itself so I did  sudo apt remove python-pip --purge sudo apt install python-pip   But pip -V gives the same error. So I then again completely removed pip without reinstalling sudo apt remove python-pip --purge; sudo apt autoremove.   Now I have completely purged pip from my system but even after this when I did pip -V I am getting same error?

With pip on Ubuntu 14.04, I am getting this error:  Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 21, in <module> from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 64, in <module> vendored("cachecontrol") File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 36, in vendored __import__(modulename, globals(), locals(), level=0) File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/__init__.py", line 9, in <module> File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in <module> File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 4, in <module> File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/__init__.py", line 52, in <module> File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/__init__.py", line 59, in <module> File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/__init__.py", line 32, in vendored File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 47, in <module> File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module> SSL_ST_INIT = _lib.SSL_ST_INIT AttributeError: 'module' object has no attribute 'SSL_ST_INIT'   How can I solve this?


I'm using windows 7 and when I look at the processes' memory usage I see that the process svchost.exe(netsvcs) is taking 1.2 GB of the physical memory. Is this normal?  Note: when I start windows the svchost.exe(netsvcs) just uses as little as 14 KB of memory, but after some minutes it starts to take 1.2 GB of the memory.

I'm having a problem with Windows 7 64-bit. I thought it was slow and all, but then I saw that the CPU usage was always around 80% and started searching for a solution.  There are two svchost.exe's consuming around 30% each and in the resources monitor there's a system interrupts consuming 45% all the time. I tried closing the applications, but it makes no difference.  I tried some other things that I've found on Google, like disable system updates, but it didn't work.  I don't know if it will help but here's my specifications:  Core 2 Duo 4400 ATI Radeon 4850 4 GB DDR2 RAM     EDIT  I ran the suggested program and got this information; did I get it right?      EDIT  As you asked here it is, did I get it right now? The other TCP/IP there's nothing.    EDIT  I ran msconfig and took the services that one of the svchost.exe processes was using out of the startup and now my CPU is around 50%, but I still would like to improve it further. I can't lose that much CPU power just because of Windows...    EDIT  Yeah, there's nothing I can do here. I am going to reinstall Windows XP soon, it's really weird...


I contacted two professors six weeks before the deadline. One prof emailed me back immediately. The second one still hasn’t. It is due in 3 weeks. I emailed him last Friday asking him again if he would be willing to be a reference but still no response. I don’t have his phone number and he doesn’t work at the university. I really don’t want to annoy him, but should I email him again? I do have his gmail address (I’ve been emailing him from his work one). Usually he contacts me from his work one but I have received ones from his gmail account in the past. But I am afraid this would be frowned upon and looked on as being too invasive? I am really at a loss. I do have another reference, however, she is more a professional reference and I am not sure if that is allowed (the school isn’t getting back to me on this question).   This question is not a duplicate. I am wondering if I should email the professor for a third time or if that would be considered inappropriate?

When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email?  Examples include:   Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can do research with them, join a group, get into a program Scheduling a meeting, exam, or defense Letting them know about a change of plans Letting them know about a life event affecting your work or studies (e.g., wedding, funeral, sickness, vacation)


Consider this sentence:     This is the best book I have ever read.   Now if I transform this into a sentence and use positive degree as   Never have I read a book as good as this.   Is this sentence correct and complete or do I have to add 'one' at the end? Then the sentence would be   Never have I read a book as good as this one.

I have seen people using "This one is Daddy's" with the word "one" before a form of the verb be. I am confused about which is more accurate, to use:     This is Daddy's.   or     This one is Daddy's.   Hope you can address my concerns, thank you.


newbie here. I'd like to know what are the best ways to invest ~10k euros here in Europe. I don't have any debt and I am able to save 1k euros every month moving forward. I can't buy property yet, because I can't get a loan in my home country (not employed there) and can't get a loan in my current country because I ain't a citizen. I was looking at savings accounts but earnings are really low. 0.4% a year isn't that fun.   If you folks could point me in the right direction so that I could learn more, I would appreciate it a lot.

I am young, just started my career, and looking to begin investing so I can make my money work for me. I'm still living like I did in college (occasional purchase on myself, but most of it goes into savings) and I would like to take the extra money and invest it.   What would you suggest are the best options for me to begin? I was considering getting a personal investor [a financial advisor] for perhaps a year or so, but I've heard that they really are not worth the money. I wanted to get the input of the great minds here.


I know this question already has an answer. I have read this [answer][1]. But it doesn't work for me. Since I am new to regEx and js, I didn't understand why they use these kinds of code like below for passing parameter.   var replace = "regex"; var re = new RegExp(replace,"g");   I have attached my code which I wrote in JSP. I used bootstrap validator. Please find it below  /* Get the domain name from the controller */   var domainName = ${domainName}                    /*Validation part*/            email: {                     trigger: 'blur',                     validators: {                         notEmpty: {                             message: 'The email address is required'                         },                         regexp: {                             regexp : /"^([\w-\.]+)@" + domainName/,                             message: 'The domain name is wrong and your domain name is: ' + domainName                         }                     }                 }   Here I have written regexp as /"^([\w-.]+)@" + domainName/. In message I have written the variable name as domainName. So the message has been shown in the GUI. I need to know how to pass the variable (domainName) to regEx. Please explain how to do that?  EDIT 1: If I hardcode regEx like this, it works. But hardcoding is not great idea.             regexp : /^([\w-\.]+)@(example.com|example1.com|uk.co|gmail.com)$/,   ANSWER: I solved this issue.  Once I got the domain name, I have divided the regex and domain name in separate variables and concatenated them in variable(pattern).      var domainName = ${domainName}          const pattern1 = String.raw`([\w-\.]+)`;         const pattern2 = (domainName);         const pattern = new RegExp("^" + pattern1 + "@" + pattern2 + "$");   I have mentioned the variable "pattern" in validation part and its worked successfully.                  email: {                     trigger: 'blur',                     validators: {                         notEmpty: {                             message: 'The email address is required and cannot be empty'                         },                         regexp: {                             regexp : pattern,                             message: 'The domain name is wrong and your domain name is: ' + domainName                          }                      }                 },    [1]: https://stackoverflow.com/questions/494035/how-do-you-use-a-variable-in-a-regular-expression

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


I can't find a way to modify the touchpad gestures Unity uses by default on Ubuntu 12.04/12.10.  Tried with Ginn, but it shows error subscribing to gestures and it seems because of Unity.  Is there a way of customize the trackpad gestures of Unity?

I wanted to know how I could configure multi-touch gestures in Ubuntu. In windows I can do this using the synaptics driver software.  I have already used synclient to configure the taps, palmdetect, scroll, etc. But I'd also want gesture support. Is is even possible?  System-Info: Ubuntu 12.10, Synaptics clickpad


I would like to know the best way to photoshoot clothing so it will be perfect to show on e-shop . The details of the clothing must be very clear and look like 3D. Please let me know what i must use ( Devices ,Programms, Lighting) and how i will do it Im attaching you aslo some photo to understand better what i want   .  Thanks a lot

I'm looking into taking some product photography and I would like to get the ghost mannequin effect, but I can't find any proper documentation.  Something a bit like this:    Can you please give a stepped process (ie 1,2,3) (don't need too many details) .  Thanks for any advice.


I am having troubles solving this exercise:  Deduce that the random variable $f(X)$ that minimizes $E[((Y-f(X))^2|X]$ is $$f(X)= E[X|Y]. $$  I proceeded in this way: $$E[(Y-f(X) + E[Y|X] - E[Y|X])^2|X]$$ $$E[(Y-E[X|Y])^2 + (E[Y|X] - f(X))^2 +2(E[Y|X] - f(X))(Y-E[X|Y])|X]$$  Now it seems to me that $f(X)= E[X|Y] $ is indeed right if the last terms were $\ge 0$ but   $$2(E[Y|X] - f(X))(Y-E[X|Y])$$ can be negative. right? so how would you solve this?

I try to minimize mean squared error function defined as:  $E\left[Y - f(X)\right]^2$  I summarized the minimization procedure from different online sources (e.g.,  (p. 4),  (p. 8)) in the following lines.  First add and subtract $E[Y | X]$:  $E\left[\left\lbrace(Y - E[Y | X]) - (f(X) - E[Y|X])\right\rbrace^2\right]$  Expanding the quadratic yield:  $E\left[\left(Y - E[Y|X]\right)^2 + \left(f(X) - E[Y|X]\right)^2 - 2 \left(Y - E[Y|X]\right)\left(f(X) - E[Y|X]\right)\right]$  First term is not affected by the choice of $f(X)$; third term is $0$, so the whole expression is minimized if $f(X) = E(Y|X)$.  Question 1: I wonder what is the motivation to add and subtract $E[Y | X]$ in the first step of the procedure?  Question 2: How to explain in plain English why third term in quadratic is $0$?


It would be awesome if the top bar stays always on top, so if i scrolled down it doesn't disappear..  See  as an Example.

In Excel, the window can be frozen in place in such a way that you can always see the name of the column even though you go way down below the 'fold' of the screen.  On SE, when you scroll, the whole page goes up (or down). This means the top navigation bar is scrolled off screen. I'm not sure if it would be a good idea or not to fix the top navigation to the top of the screen and let the rest of the content scroll.  What do you think about this, in terms of pros and cons?  [Update]  With the new Top navigation bar, kudos to the design team, I think this question becomes relevant again. I'm aware of the busload of downvotes, but still.  The top navigation bar doesn't occupy much space and has two notification areas:   Inbox Achievements   Having these two notifications visible at all times would be nice, IMO.  [Update]  I've just noticed that I haven't used the word "optional" in this discussion... My bad. In Excel, the Freeze function is controlled by the user. You can optionally Freeze part of the interface, and you can eliminate the Freeze at will.


I'm going to be two weeks in Thailand and need a micro-sim for my iPhone (non jail broken). The main use will be data but obviously I will use it for calls and text too.   What are the recommended carriers? Where can I buy the sim? What are the rates?

Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?


I have been trying to look for an answer, but couldn't figure it out. I hope someone can help.  My mother flies into Heathrow on Dec 22nd from Copenhagen (Scandinavian Airlines) to terminal 3.  She has a 6h layover. Then she flies from T2 to L.A with Virgin Atlantic.  The same day and during the same hours, my boyfriend will be landing from LA and traveling to Copenhagen- he wants to take her to the T5 BA first class lounge and have a coffee and meet up before Xmas.  Questions is: Is it possible for my mother to take a train from Terminal 2 to Terminal 5 and go through security and meet him?

We will be flying into and out of Terminal 5 at Heathrow. Now, my wife has taken fancy to a certain duty-free store located at Terminal 3. Assuming we factor in enough time before boarding our outbound flight from Terminal 5, are we allowed to enter Heathrow from Terminal 3, shop and then shuttle over to Terminal 5?


How can I show that a real symmetric matrix has real eigenvalues?

This question is in reference to  proof of the Spectral Theorem.   Let $A$ be a symmetric matrix. Take $u$ to be an orthonormal vector (such that $u^Tu=1$). Then if $u$ is an eigenvector of $A$, then $Au=\lambda u$. This implies that $\lambda=u^TAu$.   The article says that this proves that $\lambda$ is real. I don't follow why this is. Both $u$ and $A$ can contain complex entries! Why would $u^TAu$ have to be real?


java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference   This is the line where the exception is pointing to    String tot=avg[i+2];              total=Float.parseFloat(tot);   and    adapter=new VivaAdapter(Attendance.this,gedata());   I am recieving data in form of string and then converting it into float  ,but the app runs fine first time but second time it throws exception  I tried to change avg[i+2].trim() but dint worked  App crashes every alternative time  Eception log:  /AndroidRuntime: FATAL EXCEPTION: main                                                                                Process: com.example.rushabh123453.attendancepict, PID: 643                                                                                java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference                                                                                at java.lang.StringToReal.parseFloat(StringToReal.java:304)                                                                                at java.lang.Float.parseFloat(Float.java:306)                                                                                at com.example.rushabh123453.attendancepict.Attendance$Networking1.onPostExecute(Attendance.java:189)                                                                                at android.os.AsyncTask.finish(AsyncTask.java:636)                                                                                at android.os.AsyncTask.access$500(AsyncTask.java:177)                                                                                at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)                                                                                at android.os.Handler.dispatchMessage(Handler.java:102)                                                                                at android.os.Looper.loop(Looper.java:211)                                                                                at android.app.ActivityThread.main(ActivityThread.java:5389)                                                                                at java.lang.reflect.Method.invoke(Native Method)                                                                                at java.lang.reflect.Method.invoke(Method.java:372)                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

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


I would appreciate an explanation to either of the trigonometric identities. Are these used to verify an important identity? If $A$, $B$, and $C$ are angles of a triangle, $$2\cos{A}\sin{B}\sin{C} = \sin^2{B} + \sin^2{C} - \sin^2{A},$$ or equivalently, via the Pythagorean Identity, $$2\cos{A}\sin{B}\sin{C} = \cos^2{A} - \cos^2{B} - \cos^2{C} + 1.$$

Given $A + B + C = 180$, prove that $$\sin^2(A) + \sin^2(B) - \sin^2(C) = 2\sin(A)\sin(B)\cos(C).$$ I tried all identities I know but I have no idea how to proceed.


I'm new to this platform, please bear with me. I answered a question on SO today, where the asker needed a specific SQL query. As soon as I had answered it and before anyone else could read or upvote it, the author deleted the question, rendering my answer useful to him but to no one else. From what I read here on META, this has been a pattern of behaviour of some users for years, and it seems like nothing has been done to prevent the negative impact on people who make an effort to answer:      For me, this was the fourth or fifth question all in all that I answered on all of the SE platform, and I have to say, as a newbie, this is a really sobering start. The question was perfectly valid albeit pretty simple. The UI states clearly that the user deleted the question himself. I can only speculate on his reasons of course, but I strongly suspect that the question would still be open if I hadn't answered it. Are there any plans to prevent this kind of lame behaviour with a technical solution? Since this problem seems to have existed for so long, I suspect no. How do others here prevent this from happening to them? Are there any best practices you can recommend like waiting longer or commenting/upvoting before answering?

Today I was looking at the question of this . The question was pretty simple, he was looking for the eval function in  not knowing of it's existence. He received a comment and while I was finishing reading the question, I saw him commenting      Thanks, eval() is what I was looking for.   and then he deleted his question. In my opinion, such behavior isn't appropriate. So, should I just ignore this or can I do something about it?


We are doing Laurent series, singularity & Identity theorem at the moment, and I've been struggling to find a lead on this one. $f = \sum_{n=1}^{\infty} a_nz^n$ is analytic in $\left\{|z| < 1 \right\} \cup{} \left\{1 \right\}$ and $a_n \ge 0$, and I am supposed to prove that the convergence radius is greater than 1. I've tried to prove that since I can input 1 into the equation and $f(1)$ is a value, than the sum $\sum_{n=1}^{\infty} a_n$ converges, but that only proves the radius is greater or equal to 1. Feel like I should probably use one of the things I mentioned above, but haven't really been able to find how. Would love even a hint! Thanks :)

Show that if $f(z)=\sum\limits_{n\geq0}a_nz^n$ is analytic in $\{z\in\mathbb{C}:|z|<1\}\cup\{1\}$ and $\forall n\geq0:a_n\geq0$ then the radius of convergence of the power series is strictly larger than $1$.  My approach:   Let $D=\{z\in\mathbb{C}:|z|\leq1\}$.  We have that $f(1)$ converges, so $\sum\limits_{n\geq 0} a_n<\infty$. Moreover since the $a_n$'s are all positive we have that $|a_n|=a_n$, therefore $\sum\limits_{n\geq 0} |a_n|=\sum\limits_{n\geq 0} a_n<\infty$.  Let $f_n(z)=a_nz^n$, then $\forall z\in D, n\geq 0$ we have:  $$|f_n(z)|=|a_nz^n|=|a_n|\cdot|z^n|=a_n\cdot |z|^n\leq a_n\cdot 1^n\leq a_n$$  Then, applying Weierstrass M-test we get that the power series is convergent in $D$.  Now, I need to "find" an open ball $B$ such that $D\subset B$ and the power series is convergent in it.  Edit  $f$ is analytic in $1$, so there is an open set $U$ that contains $1$ such that   $$f(z)=\sum\limits_{n\geq 0} b_n(z-1)^n$$  Does it mean that the series is convergent in $U$?   I can see that we have that the two series coincide in $D\cap U$.


I have everything currently installed on a 120GB SSD. I've recently installed a 2nd drive (480 ssd) which I've partitioned for about 90% personal use and 10% in case I add 'other' purposes. I@ve not yet stated a mount point in fstab.  I want to shift my complete home folder to this drive (its main partition).  I know the answer is 'google it', and I've done that but can't seem to get a definitive answer and nothing directly referring to 18.04.  Can someone please point me towards a good guide for doing this? Do I need to boot into a live distro?  Many thanks.

I have 2 HDD drives in my computer. At the moment second drive is mounted as /media/storage.  How can I move my user data from /home to /media/storage/home?  Can I just move the data over there and then simply symlink it back?


I have a navigation menu. When the user leaves the li I want the menu to wait for a short value of time before closing. Previously I made the code apply which worked fine until I wanted to give different delays. The issue is the event does not trigger.  I tried making a version of the item on jsfiddle which works fine -   My code:    $("#nextLeftNav li, #prevLeftNav li").on("mouseleave", function (event) {             var element = $(event.currentTarget);             element.removeClass("hover");             var delayMs = 600;             if($(this).is("#nextLeftNav li"))             {              delayMs = 3000;             }             timeOutMethod = setTimeout(timeoutNavbar, delayMs, element);      });  function timeoutNavbar(){     console.log("timeOutNavBar") }

     When I inspect prevLeftNav's only li I see the dimensions of around 200x20 and can physically see the li.

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.


Thanks first of all for the previous times that I have already found answers to my problems without having to post anything!  My problems is as follows: when I compile my main file only after I have done Bibtex on my chapter, it gives the following errors:  ! Extra \else. \@include ...ediate \closeout \@partaux \fi \else                                                    \deadcycles \z@ \@nameuse ... l.26 \include{MWE}  I'm ignoring this; it doesn't match any \if.   Same for Extra \fi.   An MWE for the main file is:   \documentclass[         twoside,openright,titlepage,numbers=noenddot,headinclude,                 cleardoublepage=empty,                 BCOR=5mm,paper=b5,fontsize=9.5pt, DIV=14,                 dutch,american, % Languages                 ]{scrbook}  \input{classicthesis-config}                  \begin{document} \include{MWE}  \end{document}   For the chapter MWE it is:  \chapter{MWE} \label{MWE}  \noindent \lipsum \cite{Abramowitz:1972}  \bibliographystyle{aa} \bibliography{Bibliography}   I further use    \PassOptionsToPackage{round,authoryear}{natbib}   and   \usepackage{lipsum}   in the classicthesis-config.tex and the following style file:     Compilable example:  \begin{filecontents*}{\jobname.bib} @Book{        Abramowitz:1972,   author    = {{Abramowitz}, M. and {Stegun}, I.~A.},   title     = "{Handbook of Mathematical Functions: with formulas, graphs, and mathematical tables}",   keywords  = {Functions, Mathematics},   booktitle = {Handbook of mathematical functions},   address   = {New York},   publisher = {Dover},   year      = 1972,   adsurl    = {http://adsabs.harvard.edu/abs/1970hmfw.book.....A},   adsnote   = {Provided by the SAO/NASA Astrophysics Data System} } \end{filecontents*} \begin{filecontents*}{\jobname-chap.tex} \chapter{MWE} \lipsum \cite{Abramowitz:1972} %\bibliographystyle{aa} \bibliographystyle{plain} \bibliography{\jobname} \end{filecontents*} \documentclass{scrbook}  \usepackage[round,authoryear]{natbib} \usepackage[sectionbib]{chapterbib} \usepackage{lipsum} \begin{document} \include{\jobname-chap} \end{document}

In my document I want to create a separate bibliography for each chapter. This works fine by using the chapterbib package. However, \bibentry does not work anymore in included files when invoking the chapterbib package. The MWE shows that the full cite is present in the main document, but does not show in the chapter.  \begin{filecontents}{mytestbib.bib} @Article{einstein1911,  author        = "Albert Einstein",  title         = "On The influence of gravitation on the propagation of light",  journal       = "Annalen Phys.",  volume        = "35",  pages         = "898-908",  year          = "1911"} \end{filecontents}  \begin{filecontents}{testchap.tex} \chapter{light} A full in-text cite of \bibentry{einstein1911}.\\ A regular citation: \citep{einstein1911}. \bibliographystyle{apalike} \bibliography{mytestbib} \end{filecontents}  \documentclass{scrbook} \usepackage{filecontents} \usepackage{natbib} \usepackage{bibentry} \usepackage[sectionbib]{chapterbib} \nobibliography*  \begin{document} A full in-text cite of \bibentry{einstein1911}.\\ A regular citation: \citep{einstein1911}.  \include{testchap}  \bibliographystyle{apalike} \bibliography{mytestbib} \end{document}


I live in Nepal. I  will be 16 this December but I need to travel to India in September. I will get my citizenship only when I am 16. I neither have passport or voter card. I will be travelling alone. Can I travel? What are the documents required?

I'm a citizen of India and I'm travelling to Nepal by air. Is an Aadhaar Card a valid document used for travelling to Nepal by air?


If a Stack Exchange site has, say, 25k questions, then not all of them are necessarily "open" questions, i.e., many are put on hold as well (duplicate, offtopic, etc.).  I wish to know if there's a method to know the total count (and if possible, view all) of the open questions on a Stack Exchange site.

Is there a way to search against ONLY questions (e.g. no matches from answers)?  Is there a way to filter out results from closed questions (only get matches from open ones)?


I know it's possible to deny access for the whole node, but I need it only for the full view, so anonymous users can see the teaser; when they access the node, they will get a 403 error. Is it possible?  I've tried premium content modules, but this is not what I want.

I have a content type with multiple fields. Some of the fields are accessible to everyone and there are other fields for which the access is controlled.   Example: There is a content type called Reports with fields like title, summary, body etc. Title and summary should be visible to everyone but the access to body field is controlled.  For implementing this I need to have 2 view modes. one of them will have the fields title and summary displayed with the rest of the fields hidden. The other view mode will have only the body field visible. I am planning to implement the hook hook_node_access to derive the access permissions for the node. So how can I get the view mode in this hook so that I can have my access check based on the view mode.


I'm trying to set up SPF for our domain to prevent or reduce spoofing. The difficulty I'm having is with how to look at any particular email and determine if it would pass SPF.  We of course know which internal mail servers we have that are sending mail for our domain. The problem is finding the external ones, like constant-contact, etc, that have been used by the marketing folks to send mail as users in our domain that should be included in our SPF record.  I understand it analyzes the "MAIL FROM" data and references it with the IP address of the connecting server. Often times I see "MAIL FROM" something like "user@ac.example.com" but the mail is actually "From:" user@example.com" yet it passes SPF.  When checking to see if a particular email would pass an SPF test, how is the "From:" field considered, when "MAIL FROM" is the real return-path sender?

This is a  about setting up .     I have an office with many computers that share a single external ip (I'm unsure if the address is static or dynamic). Each computer connects to our mail server via IMAP using outlook. Email is sent and received by those computers, and some users send and receive email on their mobile phones as well.  I am using  to generate an SPF record and I'm unsure about some of the fields in the wizard, specifically:   Enter any other domains who may send or relay mail for this domain Enter any IP addresses in CIDR format for netblocks that originate or relay mail for this domain Enter any other hosts which can send or relay mail for this domain How stringent should SPF-aware MTA's treat this?   the first few questions i'm fairly certain about... hope i have given enough info.


I have understood that I have problem with driving High Side MOSFETs as their Gate Voltage must be bigger in respect to their Source voltage. How do I provide a higher voltage supply rail for the gate drivers than what is used for output positive voltage rail so as to turn on the MOSFETs?

I have bought 4 N-Channel MOSFETs to build an H-Bridge Motor Driver. My Motor drive and my power supply voltage is 12v. My TTL logic voltage is 5v as I want to speed up/down the motor with uC PWM. Now I have understood that I have problem with driving High Side MOSFETs as their Gate Voltage must be bigger in respect to their Source voltage. What are my options now? shall I change them to P-Channel MOSFETs?


I'm having problems solving this equation. I always get the wrong answer. Can somebody please help me solve it. Appreciate any help. I would appreciate the steps as well since I dont know where i messed up.  Thanks

After reading , the most popular answer use the identity $$\sum_{t=0}^n \binom{t}{k} = \binom{n+1}{k+1}.$$  What's the name of this identity? Is it the identity of the  modified.  How can we prove it? I tried by induction, but without success. Can we also prove it algebraically?  Thanks for your help.    EDIT 01 : This identity is known as the  because, on Pascal's triangle, when the addends represented in the summation and the sum itself are highlighted, a hockey-stick shape is revealed.


A stranded astronaut needs 40-something identical parts to fix his engine, but the machine that was able to produce these parts out of nothing was so intelligent that it saw no point in repeating itself 40 times. He ended up using all sorts of suitable materials, then spent time convincing it that repetition is good. Finally he asked the machine to make another machine that would produce one part and yet another machine until he got what he needed.

I once have read a story about the spaceship and a device, than can produce anything, but only once in a lifetime.  Then, the spaceship encountered with an asteroid and crew start to fix it with all possible Mendeley's table elements.


On Arch, I could just makepkg -s and get the files I needed to change, then makepkg -sci. I'm sure the same can be accomplished on Ubuntu for those who want to alter the code to suit their needs like dmenu or i3-wm for me so the i3bar and dmenu look the same. Is there a wiki on Ubuntu I could find to do this or what would I need to install? Many thinks for reading and hope to find an answer soon :-)

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update them?   I have a couple applications I use regularly that aren't being actively developed any longer and I would like to add features. Where would I go to get the rights to update these applications?  In this case specifically, I am referring to the hellanzb package


int main() {   struct node   {     char i;     int a;   };   printf("sizeof(struct node) =%d\n",sizeof(struct node));   return 0; }   The output for this program is 8 byte. Here sizeof(int)+size(char) is not equal to 8 byte. Still, we are getting 8 byte. It is because of padding. Thats fine. But in the following program, this very concept is being violated. Why?  int main() {   struct node   {     double i;     int a;   };   printf("sizeof(struct node) =%d\n",sizeof(struct node));   return 0; }   if sizeof(double) is 8 byte then sizeof(struct node) should be 16 byte(as per first program). But it is printing 12 byte. Why?

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


Its a pretty basic question.  If the definition of factorial is $n!= n\times(n-1)!$, then how can $0!=1$ since if we feed $0$ into the equation we get $0!=0\times (-1)!$?  This comes after a  where they explained that you can write $4!=\frac{5!}5$ then you can say that $0!=\frac{1!}1$ which equals $1$.  They also say that there is one way to arrange nothing but I would say there are $0$ ways to arrange nothing since there is nothing to arrange.

How can I prove  from first principles that $0!$ is equal to $1$?


I don't understand why I keep getting the null exception. I've checked for null with while hasNextLine() loop. Here is my code. Please help me out! Thanks!      public class SpellCheckerTool {    private HashSet<String> hashedDictionary;   private ArrayList<String> listDictionary;    /**    * Instantiate this SpellCheckerTool.    * @param dictionaryFileName the dictionary to use for testing    * spellings   */   public SpellCheckerTool(String dictionaryFileName) {     // inialize both dictionaries     try{       Scanner sc = new Scanner(new File(dictionaryFileName));       while (sc.hasNextLine()){         String input = sc.nextLine();          hashedDictionary.add(input);         listDictionary.add(input);          }     }      catch (FileNotFoundException e){       System.out.println("File Not Found");     }

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


How to merge only index of array itself, I have only one and I want to combine its index, I want to make 3d to 2d array. I just want to combine index of one array with in one index.This is one array,I am not asking for merge two different array.  Array ( [0] => Array     (         [East] => 2     )  [1] => Array     (         [North] => 2     )  )   Now I want to format this array like below format.there can be nth no of indexes with in same array.  Array ( [0] => Array     (         [East] => 2         [North] => 2     )  )

It's probably beginner question but I'm going through documentation for longer time already and I can't find any solution. I thought I could use implode for each dimension and then put those strings back together with str_split to make new simple array. However I never know if the join pattern isn't also in values and so after doing str_split my original values could break.  Is there something like combine($array1, $array2) for arrays inside of multi-dimensional array?