I tried what  question's answer says. This is my code:    $("document").ready(function() {   $("#add-receiver").on("click", function() {     $("#userlist").append("
user 1
");   });   $("#userlist li").on("click", '.userlist-item', function() {     alert($(this).text());   }); }); .top-heading {   font-family: 'Lobster', cursive;   font-size: 50px;   text-align: center; }  .input-boxes {   position: relative;   left: 35%;   top: 20px; }  .button {   position: relative;   left: 30px;   background-color: #4CAF50;   border: none;   color: white;   padding: 12px 20px;   text-align: center;   text-decoration: none;   display: inline-block;   font-size: 15px; }  input[type=text] {   width: 20%;   padding: 12px 20px;   margin: 8px 0;   box-sizing: border-box;   border: 3px solid #ccc;   -webkit-transition: 0.5s;   transition: 0.5s;   outline: none; }  input[type=text]:focus {   border: 3px solid #555; }  #userlist {   list-style-type: none;   width: 30%;   padding: 0;   margin: 0; }  #userlist li {   border: 1px solid #ddd;   margin-top: -1px;   background-color: #f6f6f6;   padding: 8px;   text-decoration: none;   font-size: 14px;   color: black;   display: block; }  #userlist li:hover:not(.header) {   background-color: #eee; } <!DOCTYPE html>      <title>Dashboard</title>   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">         <link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">

Welcome       <%= data.username%>

<input type="text" name="names" id="names" placeholder="Enter Receiver Name"><button class="button" id="add-receiver">Add Receiver</button>

<input type="text" name="names" id="message" placeholder="Enter Message"><button class="button" id="send">Send</button>

        First click on add receiver button. An item will be appended to userlist. As you click on this item, an alert should apper with the text of clicked item.  But my code doesn't work as expected. I couldn't spot any error. Please help me to get this thing working. Thank you!


cities = ['LED', 'KUL', 'MOW'] sp = AirwaySpider(cities)   gives the error  sp = AirwaySpider(cities) TypeError: __init__() takes exactly 1 argument (2 given)   From the AirwaySpider code:  class AirwaySpider(scrapy.Spider):     def __init__(self, **kw):         super(AirwaySpider, self).__init__(**kw)         cities = kw   while this would work  sp = AirwaySpider(domain="sdf")   I understand what the "self" is for, and what is ** in C++, but don't know what this notation means in python and why I can't pass the list where dict (the dict is passed in the example from which I've taken the code)  is OK.  UPDATE:  if I change the code to pass raw single argument it works first, but then fails later in the framework:  class AirwaySpider(scrapy.Spider):     def __init__(self, kw):         super(AirwaySpider, self).__init__(kw)   error  File "airway.py", line 13, in <module> process.crawl(sp) ... File "c:\python27\lib\site-packages\scrapy\crawler.py", line 80, in   _create_spider return self.spidercls.from_crawler(self, *args, **kwargs) File "c:\python27\lib\site-packages\scrapy\spiders\__init__.py", line 50, in        from_crawler spider = cls(*args, **kwargs) exceptions.TypeError: __init__() takes exactly 2 arguments (1 given) 2015-12-16 15:57:29 [twisted] CRITICAL:

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


How do I log out of Stack Exchange?   I want to register as a new user so that people that know my username can't track me on the Internet. But how do I log out so I can register under a new name?

Per the title, where is the logout button?  All the existing questions I can find refer to the previous design of the site, where hovering over your name in the top bar brought up a menu.


Found this thread () but no joy.  The directory is clearly there, but no method of addressing it or deleting it seem to work --  note even by inode.  This on Oracle Linux 6 (derivative of RHEL) Note the directory named '-p'  [root@vbpsprod6 /]# ls -li |grep p 2621441 drwxr-xr-x.   2 root root  4096 May  7  2015 cgroup 2359297 drwxr-xr-x.   4 root root  4096 Aug 25 10:02 opt 1835010 drwxr-xr-x.   2 root root  4096 Aug 25 10:14 –p       1 dr-xr-xr-x   93 root root     0 Aug 25 10:34 proc  393217 drwxrwxrwt.   3 root root  4096 Aug 25 10:29 tmp [root@vbpsprod6 /]# find . -inum 1835010 -exec ls -li {} \; total 0 find: `./proc/3259/task/3259/fd/5': No such file or directory find: `./proc/3259/task/3259/fdinfo/5': No such file or directory find: `./proc/3259/fd/5': No such file or directory find: `./proc/3259/fdinfo/5': No such file or directory [root@vbpsprod6 /]# rm -- -p rm: cannot remove `-p': No such file or directory [root@vbpsprod6 /]# find . -type d -name '-p' -delete [root@vbpsprod6 /]# ls -li |grep p 2621441 drwxr-xr-x.   2 root root  4096 May  7  2015 cgroup 2359297 drwxr-xr-x.   4 root root  4096 Aug 25 10:02 opt 1835010 drwxr-xr-x.   2 root root  4096 Aug 25 10:14 –p       1 dr-xr-xr-x   93 root root     0 Aug 25 10:34 proc  393217 drwxrwxrwt.   3 root root  4096 Aug 25 10:29 tmp [root@vbpsprod6 /]#

Through a boneheaded maneuver on my part, I accidentally created a directory called (for instance) -A, and ended up filling it with files.  I want to delete said directory. I've tried:  rmdir -- -A   but it then tells me that the directory still has files in it. And I can't figure out how to cd into the directory to delete said files.  What should I do to get rid of this troublesome directory?


I know I can make *hello* produce hello in bold typeface.  But how would I, in addition, make **hello** produce hello in italics?  \documentclass{article}  \begingroup\lccode`\~=`* \lowercase{\endgroup\def~#1~}{{\bfseries #1}} \catcode`*=13  \begin{document} *this is bold typeface*                 % works **this should be italic typeface**      % how to do this? \end{document}

I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font style. I have read the  and I understand the rules and their reasons, as well as the several other commands that are affected.  However, I find it convenient to use LaTeX for notetaking during lectures, and in that rushed environment, shortening a command by any number of keystrokes helps keep me from falling behind. \bf and its two-letter kin are still very useful to me for that reason, and once a presentation is finished I can go through and replace all appearances of \bf et al. with \textbf et al.  My question is this: is there a plan eventually to replace the short font style commands like \bf with the implementations of \textbf etc. some day, or should I expect \bf always to remain in existence but obsolete, for reasons of backward compatibility with original TeX? Original TeX has been greatly improved on in countless ways, but in the heat of transcription I sometimes miss its conciseness.


I recently had to restore my installation of OS X 10.9.4 from a backup. Since then(*), the App Store application is broken. It displays an empty window showing the MAS symbol and the menu bar. Clicking icons in the menu bar highlights them all. Nothing else happens. See the console output below:     01.10.14 19:09:08,079 storeagent[759]: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: key cannot be nil'   *** First throw call stack:   (       0   CoreFoundation                      0x00007fff8c63425c __exceptionPreprocess + 172       1   libobjc.A.dylib                     0x00007fff8cdb1e75 objc_exception_throw + 43       2   CoreFoundation                      0x00007fff8c52f22e -[__NSDictionaryM setObject:forKey:] + 1102       3   storeagent                          0x000000010e751b0b storeagent + 31499       4   libdispatch.dylib                   0x00007fff904df1bb _dispatch_call_block_and_release + 12       5   libdispatch.dylib                   0x00007fff904dc28d _dispatch_client_callout + 8       6   libdispatch.dylib                   0x00007fff904de673 _dispatch_queue_drain + 451       7   libdispatch.dylib                   0x00007fff904df9c1 _dispatch_queue_invoke + 110       8   libdispatch.dylib                   0x00007fff904ddf87 _dispatch_root_queue_drain + 75       9   libdispatch.dylib                   0x00007fff904df177 _dispatch_worker_thread2 + 40       10  libsystem_pthread.dylib             0x00007fff96e9bef8 _pthread_wqthread + 314       11  libsystem_pthread.dylib             0x00007fff96e9efb9 start_wqthread + 13   )   01.10.14 19:09:08,519 com.apple.launchd.peruser.502[163]: (com.apple.storeagent[759]) Job appears to have crashed: Abort trap: 6   Enabling the debug menu (terminal: defaults write com.apple.appstore ShowDebugMenu -bool true) and resetting the application had not effect (same console output as mentioned above).   I installed OS X 10.9.5 using the terminal. The Mac App Store application worked until the next reboot.   What can I do short of reinstalling OS X from the recovery partition?

My installation of the Mac App Store on Mavericks . What alternatives are there for installing the new OS?


I am having a hard time tracking down the reason my 'boolean' flag variable won't stay false when a test fails inside a while loop.  The script involves a few loops but essentially it is intended to play two random albums every morning when it is triggered by cron. I used to have a simple one-liner script that selected two albums but I wanted to blacklist any albums that I didn't want playing (i.e. christmas music albums).  To do this, I had it read a wakeUp_blacklist.txt file with the names of albums I didn't want to hear so it can reject any matches. This compares the blacklisted albums line-by-line with one randomly selected album and tests for a match. If a match is found, it flags the match as a failure (pass = false) and SHOULD loop back and select a different album. For some reason, as soon as the execution exits the read | while loop, the flag switches back to true and so another album is never selected!  Here is my code and an example output:  #!/bin/bash  wd="/media/External1/albums"  pass="false" for ((i=0; i<=1; i++)); do     while [ "$pass" == "false" ]; do         album=`ls -d "$wd"/*/*/ | sort -R | tail -n 1`         echo "album selected:"         echo "$album"         pass="true"         echo "pass reset; pass=$pass"         cat "$wd/wakeUp_blacklist.txt" | while read black; do             echo "pass check 2:$pass"             echo "black: $wd/$black"             if [ "$album" == "$wd/$black" ] || [ "$album\n" == "$albums" ]; then                 pass="false"                 echo "test failed; pass=$pass"             fi             echo "pass check 1:$pass"         done         echo "Blacklist check complete; pass=$pass" #Why is it true again?!     done     pass="false"     albums="$albums$album\n"     echo "album assigned:"     echo "$album" done  echo echo  for album in "$albums"; do #    play "$album*"      echo -e "$album" #List album names rather than actually play them done   So, if I run this a few times, it will eventually chose one of the blacklisted albums and give output that looks like:  album selected: /media/External1/albums/Adele/21/ pass reset; pass=true pass check 2:true black: /media/External1/albums/Vince_Guaraldi_Trio/A_Charlie_Brown_Christmas/ pass check 1:true pass check 2:true black: /media/External1/albums/Sound_Inventions/Stille_Nacht-_A_German_Christmas/ pass check 1:true Blacklist check complete; pass=true album assigned: /media/External1/albums/Adele/21/ album selected: /media/External1/albums/Sound_Inventions/Stille_Nacht-_A_German_Christmas/ pass reset; pass=true pass check 2:true black: /media/External1/albums/Vince_Guaraldi_Trio/A_Charlie_Brown_Christmas/ pass check 1:true pass check 2:true black: /media/External1/albums/Sound_Inventions/Stille_Nacht-_A_German_Christmas/ test failed; pass=false pass check 1:false Blacklist check complete; pass=true album assigned: /media/External1/albums/Sound_Inventions/Stille_Nacht-_A_German_Christmas/   /media/External1/albums/Adele/21/ /media/External1/albums/Sound_Inventions/Stille_Nacht-_A_German_Christmas/   You can see that towards the end, when the blacklist entry is a match for the selected album (German_Christmas) the test fails, the pass variable is false but the first output that checks pass value outside the read | while loop shows it being true again!  I understand that my script may not be as efficient as possible yet but I want to understand what is happening here before I move on. Any suggestions?

Why do I get different values for $x from the snippets below?  #!/bin/bash  x=1 echo fred > junk ; while read var ; do x=55 ; done < junk echo x=$x  #    x=55 .. I'd expect this result  x=1 cat junk | while read var ; do x=55 ; done echo x=$x  #    x=1 .. but why?  x=1 echo fred | while read var ; do x=55 ; done echo x=$x  #    x=1  .. but why?


What's the difference between "thought of" and "thought about"? One difference I'm aware of is that you use "thought of" when something comes to mind but you don't analyze it, and "thought about" if you analyze it. Are there any other differences?

Is there a difference between "think of something" and "think about something"? I've also met "have heard of/about something".


I want to restrict my Oracle database schema for example john to login to database using tools like toad or PLSQL developer. this schema is used for application login using JDBC thin client. I cannot lock or change the password because some of our senior developer have access on this schema. I want to restrict these developer to not able to login database using toad or PLSQL kindly guide if there is any way?

We have an application in our organization that is based on Oracle Forms 11g (on Oracle Fusion Middleware/WLS). Users have access to the application through accounts created at the database (i.e. they exist in dba_users). Each user is assigned a specific role based on their area of work and they use the user id to log on to the application. The user may have read/write access to certain functionality in the application and for this their roles have the following permissions-  EXECUTE ANY LIBRARY    SELECT  ANY SEQUENCE    EXECUTE ANY TYPE       EXECUTE ANY PROCEDURE  UPDATE  ANY TABLE       SELECT  ANY TABLE       DELETE  ANY TABLE       EXECUTE ANY INDEXTYPE  INSERT  ANY TABLE     Now we have some users requesting for SQL Client access (i.e. TNS settings) so that they can connect to the DB and perform queries for their research. These business users are ofcourse knowledgeable in SQL but we want to restrict their access based on the type of client they use to log on to the database. Any client other than the application itself, should restrict them to "read only".  Is there a way to achieve this?


About few days ago, I've added an answer in Movies and TV SE. For this .  In badge description, it says Highest scoring answer that outscored an accepted answer with score of more than 10 by more than 2x. This badge can be awarded multiple times. for badge . I'm not badge digger or something but curious. As for this moment, I've +84 votes(+85 and -1) while accepted answer has -23 votes (+5 and -28). and also my answer is the highest score (even regardless + or - status) while accepted has -23, mine has +84 and another answer has +12.   Is there something that I am missing? Why don't I have the badge yet?

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


How to fix the error shown on screeshots ? Thank you for your answers.

While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered.   The blackening effect is visible in the viewport too.  How can I solve this problem?


I am teaching myself python and am writing a few scripts to better understand certain things.  I was wondering why this returns 0 rather than 27.  If this were java I beleive it would return 27 (I initialized a variable and later called a function that changed the variable). What is going on?  result = 0;  def cube(x):     result = x * x * x  cube(3)  print(result)

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?


The length of the unit is 1.   The area of the unit square is 1.   The volume of the unit cube is 1.   The $\color{red}{???}$ of the unit tesseract is 1.   The $\color{blue}{???}$ of the unit 5-cube is 1.   So this is a fill in the blanks-question, but I've been wondering if there's a common term for this? I'd imagine it'd be "n-volume", but I cannot seem to find any uses of that term, so I'm guessing there is another term?

In a $1$ dimensional object, the name for the region enclosed by it is the length of the object. In a $2$ dimensional object, the name for the region is the area of the object. In a $3$ dimensional object, the name is the volume of the object. What  is the name in a $4$ dimensional object? Hypervolume? In general, what can we call the name of this region in a $n$ dimensional object? ("the region enclosed by this $n$ dimensional object" seems too long and wordy).


We have tried both the /etc/hosts and also /etc/sysconfig/network. Edited both files and service network restart. Yet the hostname is showing as localhost.localdomain. How to resolve on this? Googling almost all talking about the same method too.

I logged in for the first time, opened terminal, and typed in ‘hostname’. It returned ‘localhost.localdomain.com’. Then I logged as the root user in terminal using the command, ‘su –‘, provided the password for the root user and used the command ‘hostname etest’ where etest is the hostname I’d like my machine to have. To test if I got my hostname changed correctly, I typed ‘hostname’ again at terminal and it returned etest.  However, when I restart my machine, the hostname reverts back to ‘localhost.localdomain.com’.   Here are the entire series of commands I used in terminal.        [thomasm@localhost ~]$ hostname       localhost.localdomain       [thomasm@localhost ~]$ su -       Password:        [root@localhost ~]# hostname etest       [root@localhost ~]# hostname       etest   I had run into the same problem when I set up RHEL and Ubuntu OS’s with VMPlayer.


If the post got negative votes and is deleted, does that negative vote after deletion count in the score of tags.(Reputation lost is credited back but what about the score of the tags involved in them)  .

My question is specifically for badges in a particular tag. I've heard that the rules have been changed.  How and when can one get bronze, silver and gold badges for a specific tag, say ? What are the new rules governing these badges?


I am calling on those of you who are bilingual in both Ruby and PHP. I am using an API call to place an order. Most of the parameter are strings. However, the API call also allows a file parameter (called 'FILE' in API docs) to upload a pdf or word document. Can I simply use File.open(...) as a parameter value for the call? I do not see anything about multi-part forms in the API documentation. What is the Ruby equivalent of “@packingslip.doc” in the example below?  From the API docs, here is a description of the file parameter:  Name: packingslip,  Description: Packing Slip,  Format: FILE – (Only Pdf,docx and doc files are allowed)  From the API example in PHP: (most parameter omitted for clarity)  $postfields["packingslip"] = “@packingslip.doc”;  $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch);   I would like to be able to call the API with Net::HTTP.post (as I have been able to without the file parameter):  @result = Net::HTTP.post_form(uri, {key: key,                                        hash: hash,                                       method: 'addorder',                                       email: 'email@myemail.com',                                       address: user.address,                                       city: user.city                                       file: ??? }).body

I want to do an HTTP POST that looks like an HMTL form posted from a browser. Specifically, post some text fields and a file field.  Posting text fields is straightforward, there's an example right there in the net/http rdocs, but I can't figure out how to post a file along with it.  Net::HTTP doesn't look like the best idea.  is looking good.


I am in search of a free virtual board with LAN connectivity. All it needs to be able to do is allow different users connected via LAN to be able to move pieces in real time. A specific user-lock for each character piece would be nice as well as a table displaying whose turn it is, but neither of these capabilities are a necessity. I am also looking for perhaps an automatic generator for caves and dungeons as well as outside areas. If no one has any information about a free automatic generator then a good free map designing software would be great.

Me and a couple of friends are just getting into P&P rpgs and are really excited to try something new. However, we have a problem that we live quite far apart from each other. Therefore we'd like to use one of excellent virtual tabletops that are available. But none of us have any real experience with creating an adventure and would thus like to use a premade and beginner friendly adventure. But we're having a hard time finding one with premade story, maps etc in an online format. Most seem to be printed books and the Roll20 marketplace hasn't really gotten started yet. So what we're looking for a is online way to play a premade adventure to get us started in the RPG world.  How can we find these adventures for a VTT?


While wandering through Software Engineering Stack Exchange, sometimes a close vote finds its way onto a question from Stack Overflow that was migrated back in '11 and it gets closed.  When this happens:   The question is locked All answers from Stack Overflow are deleted   This, in of itself, isn't a bad thing, but it is locked now.  This means that a 10k user cannot vote to delete on it, nor will the automatic deletion scripts act upon it.  The only way to clean up this question (which might not have any answers on it anymore) is to flag it for moderator action.  I've got more than a few helpful flags from this... but it really isn't all that much 'fun' bugging the moderators over very routine janitorial duties that 10ks should be able to do themselves... And I'm sure the mods are bored reading the "this is a locked rejected migration"  The request: Allow 10k vote to deletes to be cast upon question that was locked as part of a rejected migration.  If you really want to be nice, allow 20ks to cast vote to undelete on the answers.  Sometimes things need to be closed, but some answers need to remain if the question isn't of the type that should get deleted wholesale.    Should the roomba scripts clean these up automatically regardless of other conditions?  No.  There is nothing broken with the roomba as to how it handles rejected migrations - there's nothing special about them, other than that they are locked.  There are many possible reasons for a rejected migration.  It could be too broad.  It could be unclear.  It could be a any of the local off topic reasons.  Expecting the roomba to delete these questions (positive up vote, has an answer)  is incorrect - rejected migrations are closed questions and its as 'simple' as that.  One solution to this would be to make it so the migration isn't locked when its rejected.  This would:   Allow 10k to delete Allow people to down vote (and feed the roomba) Allow people to edit (and make into a reopenable question)   Whatever the case, when there's a question I'm going to cast a close vote on that happens to be a migration that should get deleted currently the workflow is "notify a mod that I've close voted it so that they can delete it because I can't..." (see  (Software Engineering 10k link))  And if it shouldn't get deleted, its a "wait until it closes, flag it to unlock it and undelete various answers that are actually not bad" (see  and )  Note that another solution to the request above is: Don't lock rejected migrations on the target site, which would also solve a number of issues... though it was done for a reason and I'm not completely sure of the business requirements behind that.

Now that rejected migrations , the list of them can be . Browsing them, I noticed that some questions persist in the rejected-closed-locked state for many months; e.g., here is a .    I read that "[rejected migrations] are deleted automatically after a month", but the evidence says otherwise. (Possibly, the writer was thinking of the migration stubs, which are indeed auto-deleted).  Most rejected migrations are rejected because they are off-topic for the destination site. Yet they remain on the site, being protected from deletion by the lock.  In most cases, their copy on the source site is long gone, having met the criteria for auto-deletion. The whole thing just doesn't seem logical.   Last year, Shadow Wizard raised this same question in a , receiving no answer.


The Eugenics Wars are said to have occurred in the 1990s in “The Original Series” and “Wrath of Khan.” But “Voyager” visits our version of 1990s Los Angeles too, with no war or mention of genetically engineered super-men ruling significant portions of the planets.  How is this possible?  When did the wars actually happen?  Or were they erased from ever happening in some alternate  timeline?  Or are The Next Generation, Deep Space 9 And Voyager all in a timeline where it didn't happen?

Star Trek is one of the few SF shows to have the distinction of running long enough to make some of their original situations outdated.  In the original Star Trek, the Eugenics wars took place between 1993-1996.  Star Trek: The Next Generation was produced from 1987 until 1994, so it was being produced during that time period and Star Trek: Voyager started production after that, so those shows were actually produced during and after the time when Earth was supposedly going through a terrible war.  The Eugenics Wars were not mentioned in The Next Generation or Deep Space Nine, and were never directly mentioned in Voyager.  However, The Next Generation started with Q putting humanity on trial in a courtroom modeled after trials that took place after World War III, which is in the 21st century.  In Voyage there are at least two episodes that deal with the late 1990s or early 21st century, a time that was after the Eugenics wars were supposed to happen.  In Future's End, the ship Voyager is in orbit around Earth in 1996 (current time for viewers when it was produced) and crew members spend time on Earth.  Everything looks as we'd expect for people living in 1996.  There's no trace of the Eugenics wars or any of the aftermath.  In the episode 11:59 we see Janeway's ancestor in the year 1999 and there's no trace of any recent wars.  While this was necessary, since Trek had been around so long, at that time, that it had outdated itself, it does create problems in terms of internal continuity.  I realize that the Voyager producers were more concerned about not confusing newer viewers than about maintaining continuity with a show that aired 20 years before then, but there are repeated references to Kirk later in the series that do keep some continuity between the shows.  Was there ever any on-screen or canon reference to this?  Was the timing of the Eugenics wars moved forward to fit a new timetable?  Were they just combined with World War III, sometime in the 21st century?  Were retconned dates for the Eugenics wars ever given to go with a revised timeline?  If this was never addressed in canon, did any of the novels or games provide any explanation for the discontinuity between the 1990s as the time for the Eugenics Wars and the fact that we're still here, without such wars, in the 21st century?  Please understand: I know what the Eugenics Wars were and about them.  What I'm focusing on, with this question, is what was done within the studio or the writer's meetings to handle the retconning when our world caught up to the time of the Eugenics Wars and Voyager was airing episodes of their characters visiting our non-wartorn planet instead of one decimated by those wars.  Or did the writers in Voyager even realize that was an issue?


I have about 3000 vertical images that I need resized to 600x600 pixels each. I've compressed a few using Photoshop where I have duplicated the image and then Gaussian blurred it to cover the background like you see in the image below.    I believe this is how Instagram works with vertical images.  Can I program Photoshop to do this automatically or is there any other software? All the images are in a single folder.  If the blur background isn't possible a light shade of grey would do too.

I need to resize a lot of images into a 4:3 ratio with the desired effect.  Is there a way to do this using photoshop actions? (the background can be scaled or two copies moved to the sides, either way works)     image credits:


I have a document where one part is pretty long 2-column table (like 200 lines or so). I used longtable to ensure that the table would spread across multiple pages, but it took 5 of them to render.  I tried to use multicol package to render 3 parts of the table per page, but it didn't work. It used only first column of the multicol  Do you know any working alternative?  Thanks!

I would like to put some longer tabular data inside the multicols environment while maintaining its balancing abilities. I have tried supertabular with the trick to redefine \newpage as columnbreak. This isn't good though, because the columns aren't properly balanced. Finally I ended up using \halign:  \documentclass[11pt, a4paper]{article} \usepackage[margin=3cm]{geometry} \usepackage{supertabular} \usepackage{multicol}  \def\shortlipsum{\par Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.\par}  \newcounter{entryno} \setcounter{entryno}{1} \def\tabline{Test & \the\value{entryno} & Description\addtocounter{entryno}{1}\\} \def\tablines{\tabline\tabline\tabline\tabline\tabline} \def\mybreak{\hrule width \columnwidth height 0pt \columnbreak}  \begin{document} \begin{multicols}{2} \shortlipsum \medskip  % % This doesn't balance the columns. Whole table ends up in the left column (it fits) % \begingroup\let\newpage\mybreak % \noindent\begin{supertabular*}{\columnwidth}{@{\indent}l l l} % \tablines\tablines\tablines\tablines\tablines\tablines % \end{supertabular*} % \endgroup  \begingroup\let\\\cr \noindent\halign{\indent#\quad&#\quad&#\hfil\cr \tablines\tablines\tablines\tablines\tablines\tablines} \endgroup  \medskip \shortlipsum \end{multicols} \shortlipsum \end{document}     I was wondering if I'm the only one using \halign to achieve this result. On the other hand supertabular leaves me with an undesired almost empty right column. How would you approach this problem?


I have a fragment. After click on image i strart activity. But i keep getting this error  Unable to start activity ComponentInfo{com.flag.app/com.flag.app.app.activity.MarkerDetailsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.flag.app.app.model.Image com.flag.app.app.model.Marker.getImage()'  on a null object reference   So, this is my activity    public class MarkerDetailsActivity extends AppCompatActivity {  public static Intent getStartIntent(Context context, Marker marker) {     Intent startIntent = new Intent(context, MarkerDetailsActivity.class);     startIntent.putExtra(EXTRA_MARKER, marker);     return startIntent; }   ImageView mImageView; TextView mNameTextView; Marker mMarker; MapView mMapView;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_details_marker);     mMarker = getIntent().getParcelableExtra(EXTRA_MARKER);      mImageView = findViewById(R.id.image_view);     mMapView = findViewById(R.id.map_view);     mMapView.onCreate(savedInstanceState);     bindMarker(mMarker); }  private void bindMarker(Marker marker) {     Picasso.with(mImageView.getContext())             .load(marker.getImage().getUrl())             .into(mImageView);     mAuthorTextView.setText(marker.getAuthor());     mDescriptionTextView.setText(marker.getDescription());     mDateTextView.setText(marker.getDate());  }    }   How to fix it?

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?


If I have the Great Weapon Master feat, how do I work out if using the -5 to hit and +10 damage gives more damage overall, given a certain AC, to hit, and damage bonus?  For example:    I’m an Aasimar with Mounted Combatant feat for advantage and Great Weapon Master feat for -5 to hit and +10 to damage.  My opponent has an AC of 16 I have a normal “to hit” of +10 (thus +5 with GWM) My average damage bonus of +13 once the Aasimar racial hits (so +23 with GWM)   How do know what will do more damage overall? I know there is a way in Any-Dice to do this, but I’ve not found it.    Is it complicated by the fact that I get an entire extra attack (until Polearm Mastery) if I get a critical hit also?

Some class features, monster traits, and feats allow you to take a −5 to your attack roll in order to gain a +10 to your damage roll. At first glance this looks really good, but when will it deal more damage than not using it on average?  For instance if you have a total attack bonus of +8 and you deal 1d12 damage. You have to roll a 7 to hit an AC of 15. If you take the −5 that makes it where you have to roll a 12. That's going to reduce your average damage by a lot.


I am new user on Linux (Ubuntu) and i want to know best partitioning for 128GB SSD and 8GB RAM

I know this is probably a question this is asked over and over again but I'm not finding anything close to an answer that I need.  I am installing Ubuntu 13.04 on my Lenovo x130e netbook .  It has been a long time since I have used Ubuntu (Hardy Heron) so I'm not exactly sure on how to go about this.  Here's my system specs:  CPU: AMD e450 apu dual 1.65Ghz RAM: 8Gb DDR3 Corsair Vengence 1066mhz SSD: Crucial M4 128Gb SSD Vid: Radeon HD6320 384Mb  Now here's my questions:   Since I am running a single SSD and have plenty of RAM, should I use a swap file?  If so how large of a swap? I am going to use .ext4 filesystem but is there any specific way I should partition my drive?  (1 partition for /home, another for boot, etc...) I am planning to upgrade to 13.10 when it releases, is there anything I should keep in mind until then?   I have never really used a forum before so I figured that this would be the best time to start.  I have decided that I am tired of having to deal with Microsoft and want to break free of their bloated software.  I have read through your forums many times before and found that this is probably the best place to begin the process of reacquainting myself with Ubuntu.  Thanks for your time!


My teacher used some trick for proving there is no supremum in $\mathbb{Q}$ for $\{x|0<x^2<2, x \in \mathbb{Q}\}$.  He defines a variable: $\xi=\frac{2c+2}{c+2}$. So, I noticed that $\xi=\sqrt{2}$ if $c=\sqrt{2}$. Where does this $\xi$ comes from?

First, my apologies if this has already been asked/answered.  I wasn't able to find this question via search.  My question comes from Rudin's "Principles of Mathematical Analysis," or "Baby Rudin," Ch 1, Example 1.1 on p. 2.  In the second version of the proof, showing that sets A and B do not have greatest or lowest elements respectively, he presents a seemingly arbitrary assignment of a number $q$ that satisfies equations (3) and (4), plus other conditions needed to show that $q$ is the right number for the proof.  As an exercise, I tried to derive his choice of $q$ so that I may learn more about the problem.  If we write equations (3) as $q = p - (p^2 - 2)x$, we can write (4) as   $$ q^2 - 2 = (p^2 - 2)[1 - 2px + (p^2 - 2)x^2]. $$  Here, we need a rational $x > 0$, chosen such that the expression in $[...]$ is positive.  Using the quadratic formula and the sign of $(p^2 - 2)$, it can be shown that we need   $$ x \in \left(0, \frac{1}{p + \sqrt{2}}\right) \mbox{ for } p \in A, $$  or, for $p \in B$, $x < 1/\left(p + \sqrt{2}\right)$ or $x > 1/\left(p - \sqrt{2}\right)$.  Notice that there are MANY solutions to these equations! The easiest to see, perhaps, is letting $x = 1/(p + n)$ for $n \geq 2$.  Notice that Rudin chooses $n = 2$ for his answer, but it checks out easily for other $n$.  The Question:  Why does Rudin choose $x = 1/(p + 2)$ specifically?  Is it just to make the expressions work out clearly algebraically?  Why doesn't he comment on his particular choice or the nature of the set of solutions that will work for the proof?  Is there a simpler derivation for the number $q$ that I am missing?


I have about a thousand files that all look something like this:  20091208170014.nc               20091211150704.nc   20091214131328.nc   20091217111953.nc   20091220092643.nc   20091223073308.nc   20091226053932.nc   20091229034557.nc 20091208171946.nc               20091211152610.nc   The first eight are the date, the last 6 are consecutive numbers, but the difference between those numbers isn't the same between the files. I want the last six numbers to be consecutive and always with the same step. For example:  20091208000001.nc               20091211000002.nc   20091214000003.nc   20091217000004.nc   20091220000005.nc   20091223000006.nc   20091226000007.nc   20091229000008.nc 20091208000009.nc               20091211000010.nc   I checked several questions on this site using mmv and others like  but none of them can explain to me how to have consecutive numbers in my name.  To differentiate this from the question , the sequential ordering must be based on the last six digits, ignoring the embedded date in the first eight characters completely..


I just built my very first PC from scratch. Before that, I always bought pre-made PCs. One thing I noticed while putting all the parts together, was that aside from the standard 24 pin connector, there is an 8 pin connector, labeled "4+4 CPU" on my motherboard next to where the CPU socket is. Since my (modular) PSU had a few connectors labeled "PCIe & CPU", I decided to simply connect the dots using the appropriate cable (the one that was split in 4+4, not 6+2). However, when I opened up my old PC and looked inside, I noticed that the 4+4 pin connector was only connected by a single 4 pin cable. In other words: my old PC ran just fine these past 3 years despite half of the connector being unpowered. So I was wondering, what is the purpose of that connector? What does it do, and why do I need it? EDIT: My old CPU was an i7 3770K, and my new one is an i7 6700K. EDIT 2: There was actually a 4 pin cable connected to the 4+4 pin connector. Sorry about the confusion.

I am trying to build a computer, placing an  in a custom .  The case is an extra small form factor which can accommodate the Mini ITX board, but it requires an external power supply, similar to the power-bricks that laptops use.  I am looking at different power supplies and like , but I cannot figure out whether/how to power this system, because they provide a 24-pin connector, but the motherboard has a 4-pin connector as well.  Is the 4-pin connector optional or is it required? If it is required, how can I provide power for this system?


I have multiple fields across my site, and multiple text filters. I need to delete one of the filters, but I know that it will result in users getting that whacky permission denied error when they try to edit the field.  Is there a way to bulk update all fields input filters? I started looking at  in the field CRUD api, but I'm at a loss.

I have a lot of nodes that need to get their input format changed - I could do that by hand, but then I won't be done before Christmas 2014.   Where is Drupal storing that information? How can I change the input format in a split second, with an SQL query?


If I have a GPU like a RTX 3070 (that has a feature like RTXIO) does that mean that the only thing that matters or that can cause bottle neck is the storage and it does't matter what CPU (e.g. single core vs 8 core or 1GHz vs 4GHz) or RAM (e.g. 4GB vs 16GB ) or Motherboard is. Also, are there other dependencies for this, like Operating System (e.g. will Windows 7 work with this feature) and Application support (e.g. will old games work with this) required or it is independent of them? Lastly, can Linux send data directly to the GPU if the GPU can directly process them?

I saw in the  that the RTX IO in the  allows the GPU to directly access the storage (SSD) without having to go through the CPU, as shown in the flowcharts below. In the Nvidia GeForce RTX 20 Series and before, the information from the storage goes through the CPU before reaching the GPU (flowchart from the Official Launch Event linked above):  In the Nvidia GeForce RTX 30 Series, the information goes straight from the storage to the GPU:  How ever I see on the same slide "20x lower CPU utilization":  Why does the RTX IO in the Nvidia GeForce RTX 30 Series use any CPU at all when information flow from the storage to the GPU, since according to the flowchart the information goes straight from the storage to the GPU?


Alright.. I've been looking alot on the internet in search of a solution for this.. so far i found nothing that could explain me how to solve it..   When i click on Page suivant from the navigation div all it does is redirecting me to home page instead of loading the same page and showing the next 12 post from 'bateaux' which has 18 posts in it.  <?php               $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;              $args = array(                 'post_type' => 'bateaux',                 'post_status' => 'publish',                 'orderby' => 'menu_order',                 'posts_per_page' => 12,                 'caller_get_posts' => 1,                 'paged' => $paged             );              query_posts($args);              while (have_posts()): the_post();              $attachment_id = get_field('image_supplementaire_1');              $image_attributes = wp_get_attachment_image_src( $attachment_id );            ?>
             <?php                  if ($attachment_id != NULL)                 {              ?>                 <a href="<?php echo add_query_arg( 'action', 'Consulter', the_permalink()); ?>" title="<?php the_field('titre'); ?>"><img alt="<?php the_field('titre'); ?>" src="<?php echo $image_attributes[0]; ?>" width="155px" height="133px" />             <?php                  }                 else                  {              ?>                 <a href="<?php echo add_query_arg( 'action', 'Consulter', the_permalink()); ?>" title="<?php the_field('titre'); ?>"><img alt="<?php the_field('titre'); ?>" src="<?php bloginfo( 'template_directory' ); ?>/Images/img_default.jpg" width="155px" height="133px" />             <?php                  }              ?>
<?php the_field('titre'); ?>

<?php the_field('prix'); ?>$
             <a href="<?php add_query_arg( 'action', 'Consulter', the_permalink()); ?>" class="details" title="Détails" >Détails
         <?php              endwhile;           ?>

<?php previous_posts_link('&laquo; Page pr&eacute;c&eacute;dente') ?>

<?php next_posts_link('Page suivante &raquo;') ?>

      <?php          wp_reset_query();      ?>   Any tips ?  Thks!

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?


How do I formally prove that $\lim\limits_{n \rightarrow \infty}{\frac {2^{n+1}+3^{n+1}}{2^n + 3^n}} = 3$. I calculated a few results so I am quite sure that the limit is $3$, but I'm struggling on how to do calculate/proof that correctly.

i am pulling my hair out in solving this problem. i know, it is a stupid question but i am not that good at maths, and many thanks for any help   $\lim_{n \to \infty} \frac{2^{n+1}+3^{n+1}}{2^n+3^n}$  my steps are: $\lim_{n \to \infty} \frac{2^{n+1}+3^{n+1}}{2^n+3^n} = \frac{2^{n}2+3^{n}3}{2^n+3^n} = help = ?  $  i know, it diverges as the denominator grows faster than the nominator, but the calculation is killing me now


I made a violin plot for the first time. But I am not sure how to interpret it. I have three categories: hard, soft, and neutral and for each of the category I have a corresponding summary statistics (pi). Can someone help understand the violin plot. Basically I expect to see that in hard category, pi would be lowest, for soft category pi would be higher than hard and for neutral pi would be the highest.  And I am not sure if I see that here. Can someone help me understand this violin plot. Help would be appreciated.

I am comparing the distrubution of different groups using the violin plots, however most of the online resources I found are just related to how to make the plots and very basic interpretation of the results (the median variation, the data is clustered or not).  I am looking for detailed examples that I can follow as my guideline to correctly interpret the violin plots.


My grandmother's visa expires two months before the admit until date on her I-94. Does she have to leave before her visa expires, or can she leave without any problems securing a visa in the future, a week before her I-94 admit until date?

I have a B1 visa which is expire in next 5-10 days and need to travel to US for an urgent assignment. Can I travel just before 2-3 days of my visa expires. Will immigration officer give me I 94 more more than my VISA expiry date. Any Idea?


I'm creating an app preview for an iOS app using  (record video using QuickTime, import into iMovie, File -> App Preview) yet I get the following error message when I attempt to upload the video:  "Your app video preview is in the wrong format. For more information, see the Developer Guide".  The video is Mpeg 4, 640x1136 etc. so this seems odd. Has anyone been able to upload a video in this way?

I'm trying to create an App Preview for an iPhone app.  I recorded a screen capture of the app in the native resolution of the phone.  Then I imported the video in iMovie and used iMovie to add transitions and text, and to arrange the clips.  According to Apple, App Previews should be 640x1136 for the iPhone 5 portrait size, but the export menu doesn't support this size or any custom sizes.  Apple said we could use iMovie, but this doesn't seem to work. How can I change the export size?


When I run bibtex, I can extract the LaTeX code from the bbl file. Then, I can combine that directly into my LaTeX file so that the copyeditors, for instance, don't need to know anything about how I created my bibliography.  I'd like to do the same think with BibLaTeX, i.e., grab the LaTeX code that it produces and include that in my LaTeX file. Where is that code or how can I produce it?

Suppose that I moved from BibTeX to biblatex. With BibTeX I just copied the content of .bbl file into final version of my paper before submitting it to a journal. What should I do at same stage having .bbl file produced by biblatex? It is of quite different format.


Let $F$ be a field of arbitrary characteristic, $a\in F$, and $p$ a prime number. Show that $$f(X)=X^p-a$$ is irreducible in $F[X]$ if it has no root in $F$.   This  to a related question mentions the result is due to Capelli.  I can prove the result if $F$ has characteristic $p$ as follows.  Suppose $f$ is reducible: $f(X)=g(X)h(X)$ with $g(X)$ an irreducible factor of degree $m$, $1\le m<p$. Then if $\alpha$ is a root of $g$ in some extension field $K$ of $F$, we have $$f(X)=X^p-\alpha^p=(X-\alpha)^p$$ so its divisor $g(X)$ must be of the form $(X-\alpha)^m$. Since the coefficient of $X^{m-1}$ in $g$ is in $F$, we have $m\alpha\in F$.  So $\alpha\in F$ because $m$ is invertible modulo $p$.  How would you show the result in other characteristics?

Hungerford's book of algebra has exercise $6$ chapter $3$ section $6$ [Probably impossible with the tools at hand.]:     Let $p \in \mathbb{Z}$ be a prime; let $F$ be a field  and let $c \in  F$. Then $x^p - c$ is irreducible in $F[x]$ if and only if $x^p - c$   has no root  in $F$. [Hint: consider two cases: char$(F) = p$ and   char$(F)$ different of $p$.]   I have attempted this a lot. Anyone has an answer?


I know it for one command but how to work with a sequence?

It's taken me almost 10 years of Linux usage to ask this question. It was all trial and error and random late-night internet surfing.  But people shouldn't need 10 years for this. If I were just starting out with Linux, I'd want to know: When to alias, when to script, and when to write a function?  Where aliases are concerned, I use aliases for very simple operations that don't take arguments.   alias houston='cd /home/username/.scripts/'   That seems obvious. But some people do this:  alias command="bash bashscriptname"   (and add it to the .bashrc file)   Is there a good reason to do that? I'm trying really hard, but I genuinely can't think of any circumstances in which I'd want to do that. So, if there is an edge case where that would make a difference, please answer below.  Because that's where I would just put something in my PATH and chmod +x it, which is another thing that came after years of Linux trial-and-error.  Which brings me to the next topic. For instance, I added a hidden folder (.scripts/) in the home directory to my PATH by just adding a line to my .bashrc (PATH=$PATH:/home/username/.scripts/), so anything executable in there automagically autocompletes.  If I needed to.  I don't really need that, though, do I? I would only use that for languages that are not the shell, like Python.  If it's the shell, I can just write a function inside the very same .bashrc:  funcname () {   somecommand -someARGS "$@" }   As I stated, I found a lot of this out through trial and error. And I only truly saw the beauty of functions when my computer died and I was forced to use the computers of the people around me when they weren't using them.   Instead of moving a whole directory of scripts from computer to computer, I ended up just replacing everyone else's .bashrc with my own, since they had never even made a single modification.  But did I miss anything?   So, what would you tell a beginning Linux user about when to alias, when to script, and when to write a function?   If it's not obvious, I'm assuming the people who answer this will make use of all three options. If you only use aliases, or only use scripts, or only use functions—or if you only use aliases and scripts or aliases and functions or scripts and functions—this question isn't really aimed at you.


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


I have a lot of entries in the google authenticator app. Those entries were originally entered by scanning QR-codes. If I lose my phone, those entries are lost, and my experience tells me that some services can not be reset at all without access to 2 step authentication (one service specifically requested a convoluted process with high associated fees in order to verify my identity. I ended up creating a new account - luckily no important data was in the old account)  According to  (I have not found a better place describing the data needed to generate a QR-code for Google Authenticator), what I need is:   a label (I assume free text) user (does this need to be the real user linked to my account?) a key: this is the important part a url (is this important, or only for documentation purposes?)   My questions are:   how do I dump all that data from my current Google Authenticator installation? What happens if I enter that data into a new Google Authenticator instance? Will the old stop working? How is this mechanism implemented?   EDIT  I do not want simply to backup the Google Authenticator database so that another instance of Google Authenticator can read it. I do not want the data in any proprietary or binary format.  I want the data in human readable form, ideally as a .txt file, so that I can readily use it for other purposes, be it back it up as I please, enter it in another application (Google Authenticator or any other application), use it manually to generate QR-codes with the service provided above, ...

I'm starting to use Google Authenticator for more and more things now, but I've just realized that if I lose my phone, or if I need to wipe and restore it to install new firmware, I will lose all of my codes.  Is there anyway to back them up please? Or some kind of fallback that means I can restore it to a new device?  Thanks


I downloaded ubuntu-13.10-desktop-i386.iso from my Ubuntu 10.04 LTS. How to install ubuntu-13.10-desktop-i386.iso from my Ubuntu 10.04 LTS

I don't want to burn a CD, DVD or USB memory stick. And I don't care about saving the existing operating system (Linux Mint). I want to install Ubuntu (actually Kubuntu 12.04 LTS) to the computer directly from the ISO image. The image is for the Kubuntu Live DVD (3.5 GB).  The computer is now booted into Linux Mint. A set of command line steps would be satisfactory. In my mind, I simply need to trick the existing system into thinking I inserted a CD/DVD, right?  I know there is a similar question already but it does not have a good answer. The answer basically says, "see this link." I reviewed the link and I decided that StackExchange needs a good answer to this question. Furthermore, most answers at other places on the Internet assume the user is coming to Ubuntu from Windows. So I think this question is one that needs a good answer here. Thanks


$value = $simpleXmlDoc->SomeNode->InnerNode;   actually assigns a simplexml object to $value instead of the actual value of InnerNode.  If I do:  $value = $simpleXmlDoc->SomeNode->InnerNode . "\n";   I get the value. Anyway of getting the actual value without the clumsy looking . "\n"?

Let's say I have some XML like this  <channel>   <item>     <title>This is title 1</title>   </item> </channel>   The code below does what I want in that it outputs the title as a string  $xml = simplexml_load_string($xmlstring); echo $xml->channel->item->title;   Here's my problem.  The code below doesn't treat the title as a string in that context so I end up with a SimpleXML object in the array instead of a string.  $foo = array( $xml->channel->item->title );   I've been working around it like this  $foo = array( sprintf("%s",$xml->channel->item->title) );   but that seems ugly.  What's the best way to force a SimpleXML object to a string, regardless of context?


I have this batch file I wrote to open putty and want to make it a universal script for others. The script is as follows  @echo off ::Written by Mark Gulick:: ::Today's Date 20150316::  set /p U="Enter Username: " set /p P="Enter Password: " set /p DC="Enter DC Number: " start /d "C:\Program Files (x86)\putty\" PUTTY.EXE %U%@b0%DC%db -pw %P% pause   I would like to make the password not show up and have tried some areas on here and haven't found one that will work. I might be doing it wrong too. I'm a little rusty on my scripting. Am I missing something or should I use something else other then the set command?

I am writing a batch file to execute some other programs. In this case I need to prompt for a password. Do I have any way to mask the input text? I don't need to print ******* characters instead of input characters. Linux's Password prompt behavior (Print nothing while typing) is enough.     @echo off SET /P variable=Password :  echo %variable% Pause   This will read the input but I can't mask the text using this approach.


If know that my flight will be delayed by several hours, what is the minimum time I must be at the airport and at the gate (per regulations) if I have already checked-in?  For instance, I want to arrive at 1900 when the flight will now be leaving the airport at 2100. Originally, the flight was scheduled to depart at 1800.   I'm more specifically concerned about the TSA and/or homeland security requirements.  Other details:   I have already checked in and am a confirmed passenger with printed boarding pass. (This is the difference between my question and a flagged duplicate) This flight is the first leg of my trip.   Details that should not matter for the answer I am looking for but I know people will ask for:   Flight is with a major US carrier. I do have a check bag (but once again, I am looking for the required minimum time not the recommended time). It is from a standard USA airport -nothing special. My trip is ending internationally (IE there is a layover in the USA but ending in Europe). My actual flight times are more tightly compressed (I just exaggerate for simplicity).

This is the scenario:  I have tickets booked for a 13:40 scheduled flight with Emirates. I need to check bags in so plan to be at the airport at the advised 2 hours before flight departure (11:40) but I look ahead and see my plane is delayed and not scheduled for departure until 16:40.   Can I arrive at the airport at 14:40 to check-in or should I knowingly arrive at the airport a full 5 hours before the revised departure time?  Footnote: The reason of the delay is that the inbound flight which will become be my outbound flight after turnaround is delayed in arriving at my departure airport.


I remember that Ubuntu with GNOME 2.3 had an awesome app called docky.   I much prefer the Unity desktop, so I'm just asking if there's any way to make a stack docklet like this in this screenshot.

I'm looking forward to emulate the behavior of OS X Dock Stacks so that I can have, for instance, one stack for browsers and another one for IDES. People at ask ubuntu are doing a lot of cleaver stuff with custom Launchers and Quicklists (see ). So has anyone figured out how to have stacks in Unity? Anything fancier than a static Quicklist over a dummy folder icon?


I have around 1000 files where on each of them if the first field matches a specific number , i need to print the corresponding 3rd element . Since the number 7 below, is not constant and it based upon the output of previous script , when I am trying to pass a variable , it fails .  $cat ${i} | head -14 | awk '$1 == "7" {print $3}' $Supervisor $blah=7 $cat ${i} | head -14 | awk '$1 == "${blah}" {print $8}'   I have tried looking around with other combinations to escape/expand the variable inside the comparison , none of them seem to be able to expand the variable blah.

Here is my script (to find the files that contain a specified pattern):  find . -type f \     -exec awk -v vawk="$1" '/'"$vawk"'/ {c++} c>0 { print ARGV[1]; exit 0 } END { if (! c) {exit 1}}' \{\} \;   I would like to use my script with an argument §:  MyScript.sh pattern   My problem is that I don't manage to put the $1 variable in awk.  When I try to debug my script  bash -x MyScript.sh pattern   Here is the output :  + find . -type f -exec awk -v vawk=pattern '// {c++} c>0 {print ARGV[1] ; exit 0 } END { if (! c) {exit 1}}' '{}' ';'   The $vawk variable seems to be empty.  Any idea?


I want to insert a custom button between "Publish" button and "Move To Trash" link. What can I use to make this?  Here is a screenshot to make this clearer:    I know I can use jQuery, but I want to do it the wordpress way. May be there is a filter hook or something else for it?

In the Admin area when you edit a post, I'd like to add a custom item to the Publish panel in the top right corner.  Is it possible to access this through the Wordpress API? If so, what functions do I need to look at? Any examples would be much appreciated.


Sometimes, when I ask for the .position().top value of some object, it does not return the absolute value, i.e. if some picture is added before, the .position().top value does not change. How may I ask for the absolute position of an object (in this case a div)?

I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript relative to the browser window.


I am using classicthesis-LyX-v4.2_biblatex_bibtex8 issued in Sep 2015. I already have a bib. file by converting endnote to bib. (endnote staff confirmed with me that the file is well-converted). However, I got very confused about how to use database for referencing.   What I want is the very common in-text author-year citation style: ".....(Surname, 2016).....Surname (2015) argues that...."  In the Bibliography section: I want common hanging indent without [number] in front (this is an example from the APA website):   I have attached the explanation from the template. I followed it and I ended up getting error message when opening the parent Classicthesis lyx file. I also only see about 10% of my references showing up in the box when I click insert->citation. It would be much appreciated if I can get more detailed step-by-step guide from the default setting, for example, telling me what to load first, click what, insert what at which place etc.    [UPDATE!]  Since my thesis deadline is one week later, if there is no hope to figure it out , I just want to copy the completed reference pages in word to LyX. It would be nice if any one can teach me how to do the "hanging indent" in LyX, that is, mimicking the final layout I want under "standard" environment.  Please see  for details.

I want to learn to use biper and biblatex in Lyx. This is how I would do it in LaTeX traditionally with biblatex and biber  \documentclass[12pt,a4paper,oneside,pdftex]{report} \usepackage[backend=biber]{biblatex} \addbibresource{minCuts.bib} ... \printbibliography \end{document}   The error is apparently originating from the \bibliographystyle command and biblatex package getting mixed, by . But I have no \bibliographystyle command in Preamble so they should not be mixed unless Lyx is somehow importing the \bibliographystyle.   How to resolve the biblioraphystyle error in Lyx with Biber and Biblatex?    Settings by the instructions  and Error        Document > Settings > Bibliography > Biber                  In Document > Settings > LaTeX Preamble                   Insert > List / TOC > BibTeX Bibliography...                        Package biblatex Error : '\bibliographystyle' invalid.


I've created SharedPreferences wrapper for ability of using it in whole application via dagger. After running app this recieved error that poins my context is null: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference Here is my wrapper class (I've commented string that causes error): class SharedPrefWrapper constructor(private val context: Application) : LocalStorageProvider {  private var preferences: SharedPreferences = context.getSharedPreferences(     context.getString(R.string.shared_preference_name), // <--- error points on this string     AppCompatActivity.MODE_PRIVATE )  override fun saveServiceStatus(status: Boolean) {     val editor = preferences.edit()     editor.putBoolean(context.getString(R.string.preference_service_param), status)     editor.apply() }  override fun getServiceStatus(): Boolean {     return preferences.getBoolean(context.getString(R.string.preference_service_param), false) }  } And here is how I'm trying to provide it: @Module class BaseModule constructor(private val app: Application) {     @Provides     fun provideApp(): Application = app      @Provides     fun provideLocalStorage(context: Application) : LocalStorageProvider = SharedPrefWrapper(app) }  class MainApp : Application() {     private lateinit var appComponent: MainAppComponent      fun getComponent(): MainAppComponent {         if (!this::appComponent.isInitialized) {             initDaggerComponent()         }         return appComponent     }      private fun initDaggerComponent() {         appComponent = DaggerMainAppComponent             .builder()             .baseComponent(DaggerBaseComponent.builder().build())             .baseModule(BaseModule(this))             .build()     } }  Please, help to figure out what's wrong and how to provide context correctly?

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 make the same thing on WinForms, that I have in WPF application (Application.Current.Dispatcher.Invoke((Action)delegate):  public class Fullscreen     { public Fullscreen(Action goFullScreen)         {             goFullScreenMode = goFullScreen;         } public void Make()         { Application.Current.Dispatcher.Invoke((Action)delegate                 {                     goFullScreenMode();                 }); } }   I need to access to MainWindow.cs in WinForms that сontains:  public void GoFullScreen()         {             TopMost = true;             FormBorderStyle = FormBorderStyle.None;             WindowState = FormWindowState.Maximized;         }   That I register like this in MainWindow_Load  _fullscreen = new Fullscreen(GoFullScreen); RegisterJavaScriptObject("__fullscreen", _fullscreen);

Does a  work on the UI-thread of a WinForms application?  If yes, why? It is coming from WindowsBase.dll which seems to be a WPF component.  If not, how can I invoke work units back onto the UI-thread? I've found , but it seems clumsy to create a control only to reference the originating thread.


I have a doc which I load with interop. I need to find match content with a regex. Some words in the doc are between $$ : $$theWord$$ So I need to get all of them for displaying to user and know what he wants to set for replace.  object fileName = System.IO.Path.Combine(templatePath, pj.Nom); object missing = Type.Missing; Application word = new Application(); Document doc = word.Documents.Open(ref fileName, ref missing, ref missing, ref missing, ref missing, ref missing,                                                 ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,                                                 ref missing, ref missing, ref missing, ref missing); doc.Activate(); string content = ((dynamic)doc).Content.Text; Regex regex = new Regex(@"\$\$.*\$\$$", RegexOptions.Multiline);  List<string> tags = regex.Matches(content).Cast<string>().ToList();   The problem is my regex get only one word who begin on the first && found and finish on the last...  Please help me, I hate regex :(

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I'm preparing a package for  submission with a similar (simplified) structure. Trying to balance memory footprint, execution time, and package design/dependencies.    Is there a Pythonic or some optimal placement (and why) of from math import exp?   at the top of main.py at the top of each sub-module (shared.py, a.py, b.py) at the top of each class at the top of each method that uses exp() some other ways to import?   A gentle/constructive criticism of (or inquiries about) the structure is welcome :) References would be great!

states:  Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.  However if the class/method/function that I am importing is only used in rare cases, surely it is more efficient to do the import when it is needed? Isn't this: class SomeClass(object):      def not_often_called(self)         from datetime import datetime         self.datetime = datetime.now()  more efficient than this? from datetime import datetime  class SomeClass(object):      def not_often_called(self)         self.datetime = datetime.now()


I'm using Mac High Sierra.  How do I reset my key chain?  I went in to the "Keychain Access" application, clicked on the "Reset My Default Key Chains" button and then entered my login password, but get the message  Unable to obtain authorization for this operation.   What do I need to do to reset my keychain?  I know I'm entering the right password because when I enter the same one in a termiainl using "sudo" it accepts it.

I've not been able to save new passwords to my keychain lately.   In addition, I can't view any of my passwords. I'll open Keychain Access, pick a login entry, click the Show Password checkbox, and enter my account password. When I do this, I get an error message:    This is really weird considering my account is an Admin user:    Keychain Access isn't my main password repository so I don't really care if I need to reset it. I tried going into Keychain Access to reset my default keychain.    When I do this I receive the error message:     Like I said, I'm an admin for my computer. There is another admin account that was setup when this computer was imaged, but that account shouldn't own my keychain, right?!  I tried looking for Keychain First Aid but apparently that's been removed.  I'm running 10.12.4.  Any ideas of what's going on and/or how to fix it?


I created a function in Javascript but something should be wrong cause i haven't the awaiting result. The idea is to test several variable. In case they are null i would replace with a blanck space. Here is my code :  function chkNull(myObject) {     if (myObject == null){        myObject = " ";    } }   And below i test with this :  var dOb = null; chkNull(dOb);   I don't know what is wrong. If i test with if dOb == null below the var declaration, it is working.

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


Should I delete one of my answers that hasn't received any upvotes, even if it's a good answer?

I've been in the SO community a little over a month now - and having a great time!  As I grow into a contributing citizen of stackoverflow, i'd like to ensure that i'm being responsible with my answers.   I've answered a few questions, some without upvotes, some voted on and some accepted.  I feel that after a certain period of time, 0 vote answers are probably providing more clutter than value.  Apparently, nobody has found them useful, so they probably aren't (or are poorly written). Tonight I went through and deleted my answers with 0 upvotes where some answer was accepted.  That was an easy decision.   I left my 0 vote answers where nothing was accepted yet, well, because I think they could provide the information that the OP requested.  But at some point, I think my answers might just be cluttering the issue.  So my question to you is: How do you know when it's time to delete your 0 vote answers?  Or even 1 vote answers for that matter?


I have developed a java desktop application for windows i need to make exe file, I don't know procedures to develop exe from my project

If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?  I also need an installer for my program.


Do I need a separate capacitor bypass (network) for 74xx14 Schmitt Trigger sharing power with Op Amp? Power supply is 500mA but entire circuit is using around 70-80mA.  And sub-circuit with OP AMP + Schmitt Trigger is between 1-3mA max.   Random interval pulses going every few seconds from Op Amp (1kHz~65kHz and 0-3.3Vpp) to Schmitt trigger and out to MCU input capture pin (10kOhm). Also, when I turn on the power, during the first 3-5 seconds the Op Amp's output spikes HIGH before settling down to a baseline of near 0V.  Any way to prevent that?  The sensor that connects to the Op Amp draws 40mA, but the signal of the sensor is below 1mA. The sensor does not have any bypass capacitor (network). Thank you.  EDIT:  The answer I would accept is in CL's comment/link to TI's specs that were not listed in the datasheet I looked:  "The power supply can be any voltage between the minimum and maximum supply voltage rating located in the table. Each VCC pin should have a good bypass capacitor to prevent power disturbance. For devices with a single supply, TI recommends a 0.1-μF capacitor. If there are multiple VCC pins, then TI recommends a 0.01-μF or 0.022-μF capacitor for each power pin. It is ok to parallel multiple bypass capacitors to reject different frequencies of noise. 0.1-μF and 1-μF capacitors are commonly used in parallel. The bypass capacitor should be installed as close to the power pin as possible for best results."

I'm using a 5v linear regulator (specifically an LM7805) that outputs directly to an ATMEGA328P. According to the  (page 23) input and output bypass capacitors should be used, as seen below, to tame peaks and ensure stability.    It is good practice to also include a decoupling capacitor in front of an IC, in this case an ATMEGA328. Does the 0.1μF capacitor on the output side of the LM7805 act as a decoupling capacitor if the regulator feeds into the IC directly after the output bypass capacitor?


I am an SQA working on a new Learning Management System, that will launch in the next month. I think the system is very ugly and has bad UX.   We are using JSF and Prime Faces and my team does not have a designer or usability expert. The developer is the one prototyping and developing the screens.  When I suggested modifications to improve the UX, the response was:      First we'll make it work, and we'll make it beautiful later   I think this is very problematic because we'll have other things to worry about in the future. We increase the UX , and that worries me.  My question is: How can we decrease our UX technical debt and make this system better?

I'm working on a web app with a team of 5, including me. One database administrator, one project manager, two programmers and me the front-end designer. This project is an internal reporting system.  Anyways, I've struggling a little bit with my team, the DBA and two programmers seem to control our meetings with what Data we are going to pull and the best way to work it into an object model.  And then look to me to design some pretty interface.  Truth is, we've never measured the objectives of this application and what strategy will best meet them from a front-end design/UX standpoint. We've done no wire frames, no planning of content, no planning of pages, no conversations on specific interface components, nothing like that. It seems my team is content with designing and building the entire UX/UI based on a couple of ideas we've spit-balled in meetings.  Forgive me if this sounds too much like a gripe, but I'm at a loss. How do I get my team to understand, we can't just throw the front-end together based on back-end data and the interface HAS to be well planned out and organized?


I have decided to install fedora 21 and Ubuntu 14.04 along side. Here I have two question:  1) how should I partition my disk so I can reinstall or change each distro without affecting other one?  2)can I access one ditros package from another distro?  Thakns

I want make dual boot with feodra 15 and ubuntu 11.04 for testing features,please guide me the same.          i had done dual boot with windows and linux but not linux linux.


How can a business confirmation letter be written if person is owns the business? What are the sources required if I already provided information that it's the business inward cash sales transactions?

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


This is a hw question I got in my class, but I'm not even sure how to begin it. I need to find the probability of each of the four parts below, but first I can't even count the total number of ways these tasks could be allocated.   "Person number 1 is assigned no jobs"; "People number 1 and 2 are assigned no jobs"; "exactly two of the people are assigned no jobs" "No person is assigned more than one job".   I wrote out some examples, and it has confused me even more.   For example, if we had 1 task and 2 people, all the possibilities are {(1,0), (0,1)}, giving 2 different possibilities.  If we had 2 tasks and 2 people, we have {(0,2), (1,1), (2,0)}, giving 3 different possibilities.  If we had 2 tasks and 3 people, we have {(2,0,0), (0,2,0), (0,0,2), (1,1,0), (1,0,1), (0,1,1)}, giving 6.   I'm having a lot of difficulty with finding a pattern between these cases.   Any help would be appreciated. Thanks!

I have never done this type of question (with arbitrary variables in a counting problem), so I had a lot of difficulty. Please let me know if my approach is wrong. Thanks!   "Computer number 1 is assigned no jobs"; "Computers number 1 and 2 are assigned no jobs"; "exactly two of the computers are assigned no jobs" "No computer is assigned more than one job".   Here are my attempts:  Firstly, the total number of combinations is $r^n$, since for each of the n computers, an unlimited number of tasks from r can be allocated.    Since Computer 1 can be assigned no jobs, there are $r^{n-1}$ ways to assign the tasks to the remaining tasks. Thus P = $\frac{r^{n-1}}{r^n}$. Same idea to the one above, P = $\frac{r^{n-2}}{r^n}$ There are $r^{n-2}$ resources to allocate, but since any two computers, there would be $n \choose 2$ different ways to choose the two computers. Thus $P=\frac{(r^{n-2}) {n \choose 2}}{r^n}$ This one I have no idea how to even begin. Please help!


I don't know how to approach this.   I tried expanding $e^{\pi}$ using the power series but that was a dead end since I didn't know what to do with it. I tried estimating if $e \log({\pi})$ was greater or  $\pi$. And I guess $\pi$ is greater but I don't have a rigorous argument.

How can I  compare (without calculator or similar device) the values of $\pi^e$ and $e^\pi$ ?


I have two arrays with matching keys and I need to merge the values of both into a new array. I'm beating myself up trying to figure this out. How can I do this?  $options = array(     "0" => true,     "1" => true,     "2" => false,     "3" => true );  $columns = array(     "0" => "first",     "1" => "last",     "2" => "id",     "3" => "group" );  $what_I_need = array(     "first" => true,     "last" => true,     "id" => false,     "group" => true );

I've got two arrays of the same size.  I'd like to merge the two so the values of one are the key indexes of the new array, and the values of the new array are the values of the other.  Right now I'm just looping through the arrays and creating the new array manually, but I have a feeling there is a much more elegant way to go about this.  I don't see any array functions for this purpose, but maybe I missed something?  Is there a simple way to this along these lines?  $mapped_array = mapkeys($array_with_keys, $array_with_values);


Let $\mathfrak{g}$ be a Lie algebra over a field $F$, not necessary of characteristic $0$. We say that an ideal $\mathfrak{a} \unlhd \mathfrak{g}$ is characteristic if it is stable under any , i.e. $\delta(\mathfrak{a}) \subseteq \mathfrak{a}$ for any $\delta \in \mathrm{Der}(\mathfrak{g})$. We also denote the radical $\mathfrak{r}(\mathfrak{g})$ to be the (unique) maximal solvable Lie subalgebra of $\mathfrak{g}$.  Is it true that $\mathfrak{r}(\mathfrak{g})$ is a characteristic ideal of $\mathfrak{g}$?   I have a few ideas on tackling this problem but were mostly to no avail. The most convincing approach appears to be showing that $\delta(\mathfrak{r}(\mathfrak{g}))$ is solvable, and hence must lie inside the radical. But I can't seem to proceed much further from here. Even if I were to assume $\mathfrak{r}(\mathfrak{g})$ is abelian, the furthest I can go is that given $x,y \in \mathfrak{r}(\mathfrak{g})$: $$ [\delta(x),\delta(y)] = \delta([\delta(x),y]) - [\delta^2(x),y] $$ which does not seem to help much. Any help is appreciated.

Let $\mathfrak{g}$ be a finite dimensional complex Lie algebra. A derivation $D: \mathfrak{g} \rightarrow \mathfrak{g}$ is $\mathbb{C}$-linear map $\mathfrak{g} \rightarrow \mathfrak{g}$ such that for any $a, b \in \mathfrak{g}$, we have $D[a, b] = [Da, b] + [a, Db]$.  Let $\hbox{Rad}(\mathfrak{g})$ be the radical of $\mathfrak{g}$. My question is: does $D$ map $\hbox{Rad}(\mathfrak{g})$ into itself, i.e. is it true that $D(\text{Rad}(\mathfrak{g})) \subset \hbox{Rad}(\mathfrak{g})$?


Today, my sister accidentally downloaded an adware/spyware into my PC. Now, every-time I open up any browsers, I will see mystartsearch.com homepage. I tried all the best I can based on my knowledge using tools like autoruns, process explorer, and etc. I have found it's program file inside program files folder and deleted it. I also reset my web browsers setting and remove suspicious plugins. And also, do checking for suspicious task via task manager and process explorer. But, when I start the browser I still see mystartsearch.com homepage.  How can I totally remove it? Why is it still appear in all my browsers?

Just earlier I opened IE to go check my emails, etc... but my startup page is not google anymore as it previously was. The startup page was instead some "mystartsearches" thing which I had not downloaded. I also had two new add-ins into IE that I had not downloaded nor had been installed with any other program. I have been able to remove said add-ons, I have changed the home page to google, but it still does not open google on startup. Is there any extra configuration or file I need to change to make this startup page changed to be in sync with my homepage?  Extra info: I have cleared all settings from IE, restored to default, cleared all history and cache, refreshed my DNS cache, etc.


The width of the backdrop is 20 ft. It will be projected onto a wall. What size should the photoshop dimensions and the resolution be? This is not going to be a print file, it is going to be displayed digitally!

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?


I currently hold a valid B1/B2 visa for the USA from India. However this visa is printed in my old passport and has my old name i.e. Namita Piyus Agarwal. I have changed my name to Namita Asnani, and I have a fresh passport with this name. Will I be granted entry into the United States with my visa, or will I have to obtain a fresh visa? I have legal papers documenting the name change, including newspaper publications and court affidavits, I will also carry my old passport.  I understand that for some countries the embassy websites say very clearly that it should not be an issue, especially if you have legal documentation of the name change, eg. UK, Turkey etc. There are also some countries for which the US State Department requires a fresh visa to be issued. For India however, this is what the embassy website says: "If your name has legally changed through marriage, divorce, or a court ordered name change, you will need to obtain a new passport.  Once you have a new passport, the Department of State recommends that you apply for a new U.S. visa to make it easier for you to travel to and from the United States."

I had my US visa about 7 month age, and I had to renew my passport for certain circumstances, so there was a mismatch in the name between both the visa and the new passport, you see they had to put my grand grandfather's name which was not on the old passport nor the visa, the name on old passport and visa is: Abdelrahman Samy Ali Mohammed and the new passport is: Abdelrahman Samy Ali Ibrahim Mohammed. My grand grandfather's name is Ibrahim, so the question is that gonna cause me any troubles concerning my entry to the US? is there any document should I consider taking it while i'm traveling?  Thanks,,


Prove or disprove that if $H$ is a normal subgroup of a group $G$ such that $H$ and $\frac{G}{H}$ are cyclic, then $G$ is cyclic.   I am not sure if the above question has any mistake.   I know examples where $\frac{G}{H}$ is cyclic, but $G$ is not cyclic. It is $$G = S_3 = \{ I, (12),(23),(31), (123), (132) \}$$ and $$H = \{I,(123),(132)\}$$ H is a normal subgroup of G.  $\frac{G}{H}$ is cyclic since order of G/H is 2 and every group of prime order is cyclic.   But G is not cyclic.   I am doing graduation course.   Please give me an example to disprove or proof for above problem.

I tried to prove it by proving that if $\frac GH$ is cyclic, there is $gH$ such that $(gH)^n=e_{(G/H)}=e_{(G)}*H$. Since $(gH)^n=g^nH$, $g^n=e_G$. So $G$ is cyclic.   I don't think it's correct since I didn't use the condition that $H$ is cyclic but I couldn't figure what's wrong. Would be great if someone can point out what I'm doing wrong and maybe point me in the right direction.   Thanks in advance.


public class Date  {     private int day,                month,                year;     public Date(int day, int month, int year)    {       this.day=day;       this.month=month;         this.year=year;       }     public int getday()    {          return day;        }     public int getmon()    {        return month;      }     public int getyear()    {          return year;       }     public void setd(int day)    {        this.day=day;    }     public void setm(int month)    {        this.month=month;    }     public void sety(int year)    {        this.year=year;    }     public String toString()    {       return " "+getday()+"/"+getmon()+"/"+getyear();    } }   How to make the toString method to return 2 leading 0? So that if I call it in the main if I call the toString method it will print  The output of that is  2/10/199  my expected output  02/10/1999

Is there a better way of getting this result? This function fails if num has more digits than digits, and I feel like it should be in the library somewhere (like Integer.toString(x,"%3d") or something)  static String intToString(int num, int digits) {     StringBuffer s = new StringBuffer(digits);     int zeroes = digits - (int) (Math.log(num) / Math.log(10)) - 1;      for (int i = 0; i < zeroes; i++) {         s.append(0);     }     return s.append(num).toString(); }


I'm making a little quiz. My problem is when ever the first question is generated the text and checkbox isn't aligned properly. All the other questions are fine. If I refresh the page it is fine as well. At first I thought maybe I could find a way to automatically refresh the page one time, but I was wondering if there is something simpler.However, if that's the only way, I'm all ears.    var pos = 0,   test, test_status, question, choice, choices, chA, chB, chC, correct = 0; var questions = [   ["Question 1?", "Answer A", "Answer B", "Answer C", "B"],   ["Question 2?", "Answer A", "Answer B", "Answer C", "C"],   ["Question 3?", "Answer A", "Answer B", "Answer C", "A"],   ["Question 4?", "Answer A", "Answer B", "Answer C", "A"],   ["Question 5?", "Answer A", "Answer B", "Answer C", "C"] ];  function _(x) {   return document.getElementById(x); }  function renderQuestion() {   test = _("test");   if (pos >= questions.length) {     test.innerHTML = "
You got " + correct + " of " + questions.length + " questions correct
";     _("test_status").innerHTML = "Test Completed";     pos = 0;     correct = 0;     return false;   }   _("test_status").innerHTML = "Question " + (pos + 1) + " of " + questions.length;    question = questions[pos][0];   chA = questions[pos][1];   chB = questions[pos][2];   chC = questions[pos][3];   test.innerHTML = "
" + question + "
";   test.innerHTML += "<input style='float:left;' type='checkbox'  name='choices' value='A'>
" + chA + "
";   test.innerHTML += "<input style='float:left;' type='checkbox'  name='choices' value='B'>
" + chB + "
";   test.innerHTML += "<input style='float:left;' type='checkbox'  name='choices' value='C'>
" + chC + "
";   test.innerHTML += "<button onclick='checkAnswer()'>Submit Answer</button>"; }  function checkAnswer() {   choices = document.getElementsByName("choices");   for (var i = 0; i < choices.length; i++) {     if (choices[i].checked) {       choice = choices[i].value;     }   }   if (choice == questions[pos][4]) {     correct++;   }   pos++;   renderQuestion(); } renderQuestion();

This is one of the minor CSS problems that plague me constantly. How do folks around Stack Overflow vertically align checkboxes and their labels consistently cross-browser? Whenever I align them correctly in Safari (usually using vertical-align: baseline on the input), they're completely off in Firefox and IE. Fix it in Firefox, and Safari and IE are inevitably messed up. I waste time on this every time I code a form. Here's the standard code that I work with:   <form>     <div>         <label><input type="checkbox" /> Label text</label>     </div> </form>    I usually use Eric Meyer's reset, so form elements are relatively clean of overrides. Looking forward to any tips or tricks that you have to offer!


I'm new to ArcGIS Desktop.   I have a layer representing US zip codes and another layer of data points. I need to select all the data points within every zip code and find out the min-max value of the data points within that zip code. Currently, I've been selecting the zip code through the lasso tool and then performing a select by location but this is very time-consuming.   Is there any other way that I could possibly select all the data points zip code by zip code without having to use the lasso tool?

I'm new to ArcGIS Desktop. I have created a layer representing zip codes and overlayed it with a layer containing some data points. I want to find the min and max value of the data points in each zip code. Currently, I am manually checking the values if all the data points in each zip code but this is becoming very time-consuming and cumbersome.   Is there a faster way to do this?


What determines whether you can open an attribute table inqGIS?. I'd like to edit an attribute table for a raster in qGIS, but it won't me open the table. There's plenty in the help about editing attribute tables, but it doesn't say when you can/can't open them

I have some Python code that makes Raster Attribute Tables for GeoTiffs using GDAL.    In ArcGIS I can see these attribute tables fine and they behave how I like (as classifications) but in QGIS the whole concept of an attribute table seems to be missing.    Is there any way to access a RAT in QGIS?


I have set up MySite.local on raspberry pi. I can access MySite.local on laptop via WiFi. But not able to access on Android mobile browser(Chrome).  Please provide me a solution

Is there a way to connect to  using Chrome on Android, or is there another browser that works?  I travel from network to network with my laptop and my phone and I often have to connect my phone to a website on my laptop. With Safari on an iPhone I can simply use  (usually hitting reload on an open browser window), but with my Android device I always have to figure out the current IP of my laptop punch it in by hand and connect to it (I don't control many of the networks I'm on and they don't seem to ever have DNS integrated with DHCP).   I've searched a for an answer and it seems most people simply hack around the issues using static DNS, or they control DHCP and DNS, neither of which apply for my situation. Also I see code libraries for supporting mDNS (and other zeroconf stuff) in a specific Android application, so perhaps there's a Chrome add on out  there, or some other browser that supports it?   Also, is there any official word on device wide support for mDNS and the .local domain on Android? I had trouble finding that as well.


Google Chrome Version 22.0.1229.79 on OS X 10.8.2   How can I get just a plain blank page as my home page, not just a list of "Most Visited" sites or "Apps" installed, please?  I did try using the about:blank and/or javacript:void() workaround from these sources:       Note the UI has changed since this and I am confused:      I prefer not to install extensions from unknown sources, like recommended here:

Does Google Chrome has anything similar to about:blank page in IE and Firefox? I did not find any suitable page mentioning this? PS: I tried about:blank but it looked like Chrome is trying to load something before showing blank page...


That's how I try to do it.  read -p "enter ip " ip  if [[ $ip =~ ^[1-255].[1-255].[1-255].[1-255]$ ]]; then echo "good"; fi   Only work if the input is 1.1.1.1


Immutable does not imply unique identity, like the standard numeric types Fraction and Decimal.  >>> from fractions import Fraction >>> Fraction(1, 3) is Fraction(1, 3) >>> False   However, for all builtin immutable types like tuple, str and int, their instances have unique identities.  >>> 1 is 1 >>> True >>> (2-1, 0) is (int('1'), 0) >>> True       To enforce this it seems to me that python uses some dictionaries to keep track of all the creation of these objects so that we cannot create two objects with the same value. It this hypothesis true? Can somebody kindly explains the mechanisms behind the scene?

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?