Can you use "in person" for inanimate objects, as in "the car looks completely different in person" implying the car is different than the picture?

This is much easier to explain by example. So you might hear someone say this photo of her is ok, but she looks much better in person.  I am looking for the equivalent of "in person" that applies to things, e.g.,      A photo of the house is on the museum's homepage, but it is more impressive [in person].   There doesn't seem to be a concise, elegant way to say this, though it seems there should be, perhaps a latin phrase like in corpore (that's not it).


How long, in approximate hours, does it take to get everything in Final Fantasy XIII that happens after you defeat the final boss?   This includes all the Cie'th Stones, Crystalarium mastery and any other side quests which can be left until the very end of the game.

Possible Duplicate:          I often want to know how long a game is so that I can decide whether or not to buy it, or even to decide if I've got enough free time available in the near-future to make it worth trying to play and complete over a weekend. Sometimes I even want to know just because I'm getting a little tired of the game and I want to have a sense of whether or not I'm nearing the end, so I can decide whether to tough it out or pack it in.  What are some good ways of determining how long a given game takes to complete, on average?


I have a situation where my original data have some comma. Actually that data is JSON object which contains some comma  I am reading a file which contain my JSON object by BufferedReader Now that BufferedReader output I am adding in list.  Everything is working fine but the request get failed because .toString(); added additional comma of list  too  String sCurrentLine = null; BufferedReader br = new BufferedReader(new FileReader("/home/shubham/git/productApi")); ArrayList<String> list = new ArrayList<String>();  while ((sCurrentLine = br.readLine()) != null) {     System.out.println(sCurrentLine);     list.add(sCurrentLine); }  request.payload = list.toString(); System.out.println("dd =" + request.payload);   My JSON  {     "products":     {         "productsApp11": {             "code": "productsApp11",             "name": "productsApp11",             "attribute_set": "one",             "product_type": "product",             "status": "active"             }     } }   But because of .toString data is coming like below:-  [{,     "products": ,     {,         "productsApp11": {,             "code": "productsApp11",             ,             "name": "productsApp11",             ,             "attribute_set": "Apparel",             ,             "product_type": "product",             ,             "status": "active",         },     }, }]   Any solution would be appreciated

While working in a Java app, I recently needed to assemble a comma-delimited list of values to pass to another web service without knowing how many elements there would be in advance. The best I could come up with off the top of my head was something like this:  public String appendWithDelimiter( String original, String addition, String delimiter ) {     if ( original.equals( "" ) ) {         return addition;     } else {         return original + delimiter + addition;     } }  String parameterString = ""; if ( condition ) parameterString = appendWithDelimiter( parameterString, "elementName", "," ); if ( anotherCondition ) parameterString = appendWithDelimiter( parameterString, "anotherElementName", "," );   I realize this isn't particularly efficient, since there are strings being created all over the place, but I was going for clarity more than optimization.  In Ruby, I can do something like this instead, which feels much more elegant:  parameterArray = []; parameterArray << "elementName" if condition; parameterArray << "anotherElementName" if anotherCondition; parameterString = parameterArray.join(",");   But since Java lacks a join command, I couldn't figure out anything equivalent.  So, what's the best way to do this in Java?


I'm using a dual-booted system with Win10. However, every time I log in I have to go and mount the partitions from Nautilus.  I've been looking through some ways to automate this at bootup but some methods are too complex. I've been through this  but it seems too complicated and also tends to use sudo at times.    I'm wondering if I can just click at a drive and mount it without sudo, can I do the same with a script?

How do you make HDDs and partitions mount at startup on Ubuntu?  I always keep my media and data files on separate partitions - one 2tb HDD and a 400 odd gig partition.  I have been trying to swap the default folder location for the home directory to my other drives.  It works when I change the /home/user_name/.config/user-dirs.dirs file to the directories I want, but only until I reboot the system. I am only assuming that the drives not mounting is the problem with it, but it would be helpful either way.  If any one knows another reason for why the directories change back to default each time that would be good also.


Running Mojave 10.14.6. I'd like to alter my output volume upon shutdown, so that it when it starts it's always at the same volume (20%). This would make the "DAHHH!" sound more pleasant, but it's also so that app sounds present in a consistent and predictable way.  I couldn't understand how to run a script upon regular shutdown trigger (complicated) but I made an AppleScript to change volume and then shutdown, i.e. to replace the regular shutdown trigger:  set volume output volume 20 tell application "Finder" to shut down   I saved that as an app and it seemed to work great until I realised it was reopening upon login every time, thus shutting the machine down again! I booted in safe mode to clear the open apps and breathed a huge sigh of relief.  Does anyone have any suggestions on how to achieve my goal? I don't really want to disable the "dahhh!" because it's useful for troubleshooting. I'd like the regular app sounds to start at a consistent volume by default. I literally just want to "reset" the volume to 20% every time I turn off.  Thanks in advance for any ideas.

I sometimes reduce the volume on my El Capitan while working. I would like to ensure that it returns to, say, 80% before shutdown, in case I forget to do it myself. Any solutions would be most welcome BUT remember I'm a beginner with this stuff!


I'm using MacOS Catalina and I following this question to install scipy with my addon:   Running this code downloads and installs the module so I can use it in Terminal:  >>> import scipy >>> print(scipy.pi) 3.141592653589793   However Blender doesn't see the module:  Traceback (most recent call last):   File "/Text", line 2, in <module> ModuleNotFoundError: No module named 'scipy' Error: Python script failed, check the message in the system console   What I noticed is that if I try to run the install code again, I see this in the console:  Requirement already up-to-date: pip in /Applications/Blender.app/Contents/Resources/2.83/python/lib/python3.7/site-packages (20.1.1) Requirement already satisfied: scipy in ./.local/lib/python3.7/site-packages (1.4.1) Requirement already satisfied: numpy>=1.13.3 in /Applications/Blender.app/Contents/Resources/2.83/python/lib/python3.7/site-packages (from scipy) (1.17.0)   So scipy is located in ./.local and other modules are in Blender.app/Contents/. Does anyone know how can I fix this and use scipy in my addon?

I'm making an add-on that uses the websocket library from python. Is there a way to include it in the add-on .zip file? Or do I have to add it to the site packages folder in blenders included python folder?


Why does the number of questions and answers show as - on the global stackexchange profile in the accounts tab? I do have several questions on few proposal sites in the definition phase and also few answers on discuss.area51. But I guess, neither of these are picked.    Shall not it display the number of question and answers on the discuss.area51?

The  doesn't show any questions or answers at area51:  However, my  does show that I have 3 questions and 1 answer:  Why aren't those shown in the network profile page?


I have missed my connecting flight from Frankfurt to New York. The time gap between incoming flight and connecting flight was about 2 hours. The incoming flight was delayed for about 90 minutes. Both flights were operated by same airlines but both tickets were separate (no single ticket). Now who is responsible for the missed flight?

Long story short, I had to fly from A (in Spain) to C (in the UK) and I booked two separate flights with the same budget airline, so the actual route was A (Spain) -> B (UK) -> C (UK).  The first flight was delayed by 90 minutes, which means that I was unable to catch the second one (the layover time was around an hour and a half) and had to buy another ticket for the following day (with another airline).  I googled a lot and found mixed responses. Is there any chance I can get a refund for my second flight? I will obviously ask them but I'm unsure what my best course of action is.


I am a minor and want to apply for a visa to Italy (Kenyan citizen by birth, living in Kenya). I want to visit my sister who lives in Italy. She owns a house and is a permanent resident. She divorced about a year ago. The requirements for the visa application is that you should prove that once you're given the visa you will come back to your home country. Could you give me some tips to proof that? (Also tips on how to make sure I get the visa)

Lots of people would like to visit the EEA area to take holiday or to visit family or even to go for longer term visa arrangements in the Schengen zone.  In order to do this, they need a Schengen (or national) visa.  This appears to be a fairly straightforward process, but hints and tips can always be helpful.  Without focusing on any individual's circumstances, what are some helpful hints that can improve the likelihood of a successful application?


I have searched the forum and found various options for Static and normal variable. But i am still not able to figure out this: -   When i am executing this program given below, i am getting the desired output, but if i delete the "static" key word which is in front of String college, it also gives me the same output.    static String college ="ITS"; // Same output  String college ="ITS";// Same output   So whats the use of using the static keyword??  class Student{      int rollno;      String name;         static String college ="ITS";     Student(int r,String n){      rollno = r;      name = n;      }    void display (){System.out.println(rollno+" "+name+" "+college);}     public static void main(String args[]){    Student s1 = new Student (111,"Karan");    Student s2 = new Student (222,"Aryan");     s1.display();    s2.display();    }   }

To be specific, I was trying this code:  package hello;  public class Hello {      Clock clock = new Clock();      public static void main(String args[]) {         clock.sayTime();     } }   But it gave the error      Cannot access non-static field in static method main   So I changed the declaration of clock to this:  static Clock clock = new Clock();   And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object?


I'm using a sequential approach to decide the best fitting model for my data. (I'm still new to R, so I decided to go for a manual approach rather than an automated one offered by R packages). I'm literally adding one variable at the time, trying different combination, as well as interactions. From what I understood from previous posts on this matter, using p-values as a selective method is a sort of p-hacking and it is not suitable for inferential conclusions. but what about AIC? I'm using AIC as selective criteria for some Negative Binomial models I'm running, choosing the models with low AIC. Can it be considered a valid modelling approach? or should I just include all the variables in the model and accept the statistical result? Sorry if this is unclear, I can give more information if needed.

I would like to implement an algorithm for automatic model selection.  I am thinking of doing stepwise regression but anything will do (it has to be based on linear regressions though).   My problem is that I am unable to find a methodology, or an open source implementation (I am woking in java). The methodology I have in mind would be something like:   calculate the correlation matrix of all the factors pick the factors that have a low correlation to each other remove the factors that have a low t-stat add other factors (still based on the low correlation factor found in 2.). reiterate several times until some criterion (e.g AIC) is over a certain threshold or cannot or we can't find a larger value.   I realize there is an R implementation for this (stepAIC), but I find the code quite hard to understand. Also I have not been able to find articles describing the stepwise regression.


Here is an example taken from   #include <iostream> using namespace std;  class Date {     int mo, da, yr; public:     Date()     {         mo = 10; da = 10; yr = 99;     }     Date(int m, int d, int y)     {         mo = m; da = d; yr = y;     }     friend ostream& operator<<(ostream& os, const Date& dt); };  ostream& operator<<(ostream& os, const Date& dt) {     os << dt.mo << '/' << dt.da << '/' << dt.yr;     return os; }  int main() {     Date dt0();     cout << dt0 << endl;      Date dt(5, 6, 92);     cout << dt; }   I'd expect the output to be  10/10/99 5/6/92   But what I get was   1 5/6/92   What or how can I work this out?

Is there any good reason that an empty set of round brackets (parentheses) isn't valid for calling the default constructor in C++?  MyObject  object;  // ok - default ctor MyObject  object(blah); // ok  MyObject  object();  // error   I seem to type "()" automatically everytime. Is there a good reason this isn't allowed?


I want to redirect [not blocking them] all the ip's in between 83.116.119.0 to 255.255.255.0 Please help me to write a pattern in my code(IPTOBEBLOCKED). Am a newbie in web.config , Here is my code  <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite>     <rules>         <clear />         <rule name="Redirect Japan Users" enabled="true" stopProcessing="false">             <match url=".*" />             <conditions>                 <add input="{HTTP_HOST}" pattern="IPTOBEBLOCKED"/>             </conditions>             <action type="Redirect" url="http://www.example.net/jp/" redirectType="Permanent" appendQueryString="false" />         </rule>     </rules> </rewrite> </system.webServer> </configuration>

I'm trying to block a range of IP that is sending tons of spam to my blog. I can't use the solution described  because it's a shared hosting and I can't change anything to the server configuration. I only have access to a few options in Remote IIS.  I see that the URL Rewrite module has an option to block requests, so I tried to use it. My rule is as follows in web.config:              <rule name="BlockSpam" enabled="true" stopProcessing="true">                 <match url=".*" />                 <conditions logicalGrouping="MatchAll" trackAllCaptures="false">                     <add input="{REMOTE_ADDR}" pattern="10\.0\.146\.23[0-9]" ignoreCase="false" />                 </conditions>                 <action type="CustomResponse" statusCode="403" />             </rule>   Unfortunately, if I put it at the end of the rewrite rules, it doesn't seem to block anything... and if I put it at the start of the list, it blocks everything! It looks like the condition isn't taken into account.  In the UI, the stopProcessing option is not visible and is true by default. Changing it to false in web.config doesn't seem to have any effect.  I'm not sure what to do now... any ideas?


so this pop-up appears even though I'm not doing anything and not even on the net  and it has a background of google sometimes and it says that 'google has detected viruses' on my phone and battery and such out of no where  and somehow now whenever I click on an app before launching it , it takes me to the app store to download an app  mainly games.  This pop up appears saying there's a virus or trojan on my phone.    Other info: Galaxy S5, battery keeps dying out of nowhere  even though I'm not on the web or using the phone.  I even get a notification sound from my phone when it's locked. How to get rid of it?

This notification keeps coming up, and i'm not sure if it's real or a virus, or how to stop it coming up. It says 'Android system warning! Google has found serious bugs in your Battery Module!Click on [OK] to view details.'   Screenshot (click for larger variant)  Any help appreciated, thanks. Lauren.


i have done to install and config the postfix but when i test to telnet   i get the result  Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused   i have try to use more way for solved the problem but can't find the solution.  the   master.cf  smtp      inet  n       -       n       -       -       smtpd #submission inet n       -       n       -       -       smtpd #  -o smtpd_tls_security_level=encrypt #  -o smtpd_sasl_auth_enable=yes #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject #  -o milter_macro_daemon_name=ORIGINATING smtps     inet  n       -       n       -       -       smtpd #-o smtpd_sasl_auth_enable=yes #-o smtpd_reject_unlisted_sender=yes #-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject #-o broken_sasl_auth_clients=yes #  -o smtpd_tls_wrappermode=yes #  -o smtpd_sasl_auth_enable=yes #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject #  -o milter_macro_daemon_name=ORIGINATING #628      inet  n       -       n       -       -       qmqpd pickup    fifo  n       -       n       60      1       pickup cleanup   unix  n       -       n       -       0       cleanup qmgr      fifo  n       -       n       300     1       qmgr #qmgr     fifo  n       -       n       300     1       oqmgr tlsmgr    unix  -       -       n       1000?   1       tlsmgr rewrite   unix  -       -       n       -       -       trivial-rewrite bounce    unix  -       -       n       -       0       bounce defer     unix  -       -       n       -       0       bounce trace     unix  -       -       n       -       0       bounce verify    unix  -       -       n       -       1       verify flush     unix  n       -       n       1000?   0       flush proxymap  unix  -       -       n       -       -       proxymap proxywrite unix -       -       n       -       1       proxymap smtp      unix  -       -       n       -       -       smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay     unix  -       -       n       -       -       smtp         -o smtp_fallback_relay=   thank you

This is a  about Connection Refused    We see a lot of questions to the effect      When I try to connect to a system I get a message      Connection refused      Why is this ?


I'm using TeXShop and I was wondering if there is a way to line up the "&" in the code for tables in Latex, to make them readable and able to modify them without having to compile permanently.  For example, I have :   test&44&2 test2&24&3   and I want :   test   &   44  &  2 test2  &   24  &  3   I don't know if there is a solution to my problem ?   Thanks in advance !

Suppose I have the following table in my TeXstudio editor:      Latex & 360 & 101.77 & 10.71 & 101.86 & 64.60 & 127.20  \\      Manufacturing & 360 & -7.33 & 12.59 & -7.24 & -49.00 & 22.00  \\      Cons & 360 & -17.19 & 23.4 & -17.22 & -79.00 & 43.00 \\      Apple and Orange & 360 & 3.38 & 13.84 & 3.60 & -47.00 & 29.00   \\      Services and Harry  & 104 & -4.96 & 20.8 & -4.81 & -57.00 & 30.00   \\      Manchester & 360 & -9.29 & 8.64 & -9.26 & -35.00 & 8.00 \\    Sometimes I want to change some numbers in the table. However, it is really really hard to keep tracking which number is behind the other in the table. Is there is any way to align the & behind each other?


I know the > and >> operators, > puts something into a file by deleting the old content, >> appends something onto the end of the file's content.   When I only use   cat > foo   I am able to write several lines into foo interactively until I hit ctrl+z, than it ends.   Now, if I add the append operator in the reverse order with some word of my choice  cat > foo << "wordofchoice"   I can do the same as in the first case, but this time a > prompt appears at the beginning of each line and I can not end the interactive input by ctrl+z but by typing "wordofchoice" (without the double quote signs).  Why is it so, what is the logic behind this expression, the << operator does not seem to have its meaning of appending something in here.

I've just come across the << command, used like so:  cat > outfile.txt <<EOF Multi-line content that will be written to outfile.txt EOF   Now, I've no idea what this is called, but I'd quite like to know it's name, primarily so I can go and search and find out more about its syntax. Sadly, Googling for "<<" just doesn't work.


Its 4.6GB, but it thinks its 4.9GB. why does it thinks its 4.9GB

One "kilobyte" (KB) is 1024 bytes in JEDEC-standard, whereas the definition has shifted, in most contexts, to mean 1000 bytes (kB) in accordance with SI. To resolve this difference, binary prefixes (kiB) are used.  So we have 3 choices for using prefixes - JEDEC, IEC (both in Binary), and Metric (in Decimal).  My questions are-   What prefix standard does Windows use in showing the file size? (surely it's not IEC standard) Why does Windows OS show sizes of files in KB (using a capital alphabet "K") when it's a small alphabet "k" for a Kilo in SI units?   A capital "K" represents Kelvin in SI system of units.  Am I missing something here in understanding?


I have someone who wants to pay off my credit card for me and all he asked for was my username and password for my online account to make the payments. I’ve checked my account and I can’t find any important information that he could find from just having those two things but I’m still a bit unsure. Advice?

Someone is offering to pay me in a sort of sugar daddy/sugar baby arrangement. They want to make online deposits to me, and they're asking me for my online banking username and password. Is that information alone enough for them to be able to take my money out of my account, or am I safe?


How can I find all of the symbolic links in a directory, that point to the same target?  For example, here is a list files in a directory:  a.txt b.txt a -> target1 c -> target1 m -> target2 n -> target3 c.txt z -> target1   I want to get a list of what linked to target1. So the expected output will be:  a c z

With the command:  ls -la *   I can list all my symbolic links.   How can I remove all symbolic links which are linked to a special folder?  For example:  In my directory usr/local/bin I have the following entries:  lrwxrwxrwx 1 root root 50 Apr 22 14:52 allneeded -> /usr/local/texlive/2011/bin/x86_64-linux/allneeded lrwxrwxrwx 1 root root 47 Apr 22 14:52 amstex -> /usr/local/texlive/2011/bin/x86_64-linux/amstex lrwxrwxrwx 1 root root 24 Apr 23 19:09 arara -> /home/marco/.arara/arara   Now I want to remove all links with the path /usr/local/texlive/


I am making a game in which the player character can gain traits that change how their character behaves in my world model or add functionality to it. For example, the character might gain the "feather" trait that changes how fall damage is calculated or the "strong" trait that means the player can now pick up items that were previously just part of the scenery.  I have been hard coding traits in their relevant classes and switching a boolean to change behavior when they come into play, but it is getting rather unmanageable as my trait list grows.(I am also missing out on a lot of the emergence I was hoping to get) There must be a more scalable and decoupled way of doing this.  How would you code such a feature where code behavior changes or expands at runtime? If you are not inclined to do my work for me, which programming patterns would you use to achieve this kind of behavior?

Overview:  Lots of games with RPG-like statistics allow for character "buffs", ranging from simple "Deal 25% extra damage" to more complicated things like "Deal 15 damage back to attackers when hit."  The specifics of each type of buff aren't really relevant.  I'm looking for a (presumably object-oriented) way to handle arbitrary buffs.  Details:  In my particular case, I have multiple characters in a turn-based battle environment, so I envisioned buffs being tied to events like "OnTurnStart", "OnReceiveDamage", etc.  Perhaps each buff is a subclass of a main Buff abstract class, where only the relevant events are overloaded.  Then each character could have a vector of buffs currently applied.  Does this solution make sense?  I can certainly see dozens of event types being necessary, it feels like making a new subclass for each buff is overkill, and it doesn't seem to allow for any buff "interactions".  That is, if I wanted to implement a cap on damage boosts so that even if you had 10 different buffs which all give 25% extra damage, you only do 100% extra instead of 250% extra.  And there's more complicated situations that ideally I could control.  I'm sure everyone can come up with examples of how more sophisticated buffs can potentially interact with each other in a way that as a game developer I may not want.  As a relatively inexperienced C++ programmer (I generally have used C in embedded systems), I feel like my solution is simplistic and probably doesn't take full advantage of the object-oriented language.  Thoughts?  Has anyone here designed a fairly robust buff system before?  Edit: Regarding Answer(s):  I selected an answer primarily based on good detail and a solid answer to the question I asked, but reading the responses gave me some more insight.  Perhaps unsurprisingly, the different systems or tweaked systems seem to apply better to certain situations.  What system works best for my game will depend on the types, variance, and number of buffs I intend to be able to apply.  For a game like Diablo 3 (mentioned below), where nearly any bit of equipment can change a buff's strength, the buffs are just character stats system seems like a good idea whenever possible.  For the turn-based situation I'm in, the event-based approach may be more suitable.  In any case, I'm still hoping someone comes along with a fancy "OO" magic bullet which will allow for me to apply a +2 move distance per turn buff, a deal 50% of damage taken back to the attacker buff, and a automatically teleport to a nearby tile when attacked from 3 or more tiles away buff in a single system without turning a +5 strength buff into its own subclass.  I think the closest thing is the answer I marked, but the floor is still open.  Thanks to everyone for the input.


I am converting a particle system (based on a collection of meshes) into new meshes.   The 'new' meshes stay connected (as I can see in EDIT mode) to the original one. Setting every single mesh to an 'original' mesh in the object tab takes a lot of time.   This question...  ...seems to be the same, but the answer which is UNLINK(ING) the object(s) by pressing 'U' makes everything disappear as if I am hitting a delete button instead of 'unlink'.  Does anybody know what I am doing wrong?

I have an object with a particle system. The particle system emits another object as a hair. I use "Convert" button in modifers tab in order to turn the "particles" into simple mesh objects.  But then I face the problem: It seems like those converted particles-objects, are still connected to each other somehow. So If I select one object and go to edit mode - all of them goes to edit mode. And if I change one of them in edit mode, all of them will be changed. I also can't join them into one object.  Why id it happening, and how I can disconnect them and get simple mesh objects? Thank you very much in advance!


I've noticed that almost every Windows application has it's Options dialog accessed from a different menu and item name.  Here is an example of some of the programs on my computer, showing where the Options menu item is, and what it's called:   As you can see from the pie charts, there doesn't seem to be a clear pick for the menu name, although the menu item is most often called "Preferences". This is incredibly frustrating for the user when they're searching for the link, and something that has particularly annoyed me. (This image took far too long to make!)  So, where should I put the link to the options dialog?

I find that the "preferences" menu item is always in a different place, and often under an arbitrary name which always makes it a pain to locate unless you're already familiar with the software.  I have seen it under the file, edit, window, help, and options menu (probably more) and is either called "preferences," "settings," or "options."  Has there been any studies or evidence to suggest where the application settings should go? And I am referring to the application settings, not file/project/whatever specific settings. I already know that putting it under "file" is wrong for application global settings, and under "edit" is probably wrong in all circumstances. But what about besides that? Is it better to just have an entire options menu to further break it down? Should it be under the "window" menu since it is, after all, its own window? What about window > options? Is it ever right to put it under the "help" menu?  I'm talking mostly in terms of usability (which place users look first), but also semantically (as in, the file menu doesn't make sense). I personally never start with file, edit, or help -- even though that's often where the menu item is -- but rather search high and low through other menus first. Is this a common behavior?


I have to install Ubuntu 12.04 LTS on 500 desktops. I want to know what is the better way to achieve this task. All the machines have same hardware WITHOUT NETWORK.

One of the local college in my home town in India is planning to implement mass distribution and usage of Ubuntu Linux for the purpose of education. I have been asked by my CTO to look into the matter and bring out some valuable suggestions with which we can roll out multiple installations on more than 450 computers!  I have know a way in Windows that uses the Ghost technique to address this issue. Our purpose is similar in this case but don't know how to proceed further. I have been using Ubuntu for the past six months to get the feel and understanding of the OS and I have to admit it that from the very first day, I was almost into it learning, reading, learning and asking others to use it too. Just amazing!  Help in any form is appreciated.  Note: All the 450 computers are of different configurations/variety of different motherboards, hard drives, ram, etc. But they all meet the minimum criteria for Ubuntu installation's hardware requirement.


!! This question is not about SHELL, it's about BASH, can't change the faulty tag !! I've got a code that removes the spaces in directories and filenames (and inserts a dot); find $jdir -depth -name "* *" -execdir rename 's/ /./g' "{}" \;  let's say $jdir = "test files are here" This code don't rename the $jdir. and I can't set it to the parent directory, because then it would rename a lot of other directories. How do I get it to rename the $jdir? (testing bug? in forum, disregard this line) I can't change the tags, a bug in the forum?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


The upgrade needs a total of 87.5 M free space on disk '/boot'. Please free at least an additional 32.8 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.

I try to do do-release-upgrade but then I get:       Not enough free disk space      The upgrade has aborted. The upgrade needs a total of 25.7 M free   space on disk '/boot'. Please free at least an additional 25.7 M of   disk space on '/boot'. Empty your trash and remove temporary packages   of former installations using 'sudo apt-get clean'.   Output of df:                      237251272 214797108  10402504  96% / udev                    488120         4    488116   1% /dev tmpfs                   198676       668    198008   1% /run none                      5120         0      5120   0% /run/lock none                    496684         0    496684   0% /run/shm /dev/sda1               233191    225867         0 100% /boot   How come there is no space left on boot? Here's the output of ls -as /boot:  total 221839     4 .     4 ..   645 abi-2.6.32-34-generic-pae   698 abi-2.6.35-30-generic-pae   727 abi-2.6.38-12-generic-pae   727 abi-3.0.0-12-generic-pae   727 abi-3.0.0-13-generic-pae   727 abi-3.0.0-14-generic-pae   727 abi-3.0.0-15-generic-pae   727 abi-3.0.0-16-generic-pae   727 abi-3.0.0-17-generic-pae   727 abi-3.0.0-19-generic-pae   761 abi-3.0.0-20-generic-pae   115 config-2.6.32-34-generic-pae   128 config-2.6.35-30-generic-pae   136 config-2.6.38-12-generic-pae   140 config-3.0.0-12-generic-pae   140 config-3.0.0-13-generic-pae   140 config-3.0.0-14-generic-pae   140 config-3.0.0-15-generic-pae   140 config-3.0.0-16-generic-pae   140 config-3.0.0-17-generic-pae   140 config-3.0.0-19-generic-pae   140 config-3.0.0-20-generic-pae     5 grub 10773 initrd.img-2.6.32-34-generic-pae 13619 initrd.img-2.6.35-30-generic-pae 15365 initrd.img-2.6.38-12-generic-pae 16481 initrd.img-3.0.0-12-generic-pae 16487 initrd.img-3.0.0-13-generic-pae 16501 initrd.img-3.0.0-14-generic-pae 16476 initrd.img-3.0.0-15-generic-pae 16481 initrd.img-3.0.0-16-generic-pae 16478 initrd.img-3.0.0-17-generic-pae    12 lost+found   174 memtest86+.bin   176 memtest86+_multiboot.bin  1700 System.map-2.6.32-34-generic-pae  1841 System.map-2.6.35-30-generic-pae  2115 System.map-2.6.38-12-generic-pae  2141 System.map-3.0.0-12-generic-pae  2141 System.map-3.0.0-13-generic-pae  2143 System.map-3.0.0-14-generic-pae  2146 System.map-3.0.0-15-generic-pae  2147 System.map-3.0.0-16-generic-pae  2147 System.map-3.0.0-17-generic-pae  2148 System.map-3.0.0-19-generic-pae  2149 System.map-3.0.0-20-generic-pae     2 vmcoreinfo-2.6.32-34-generic-pae     2 vmcoreinfo-2.6.35-30-generic-pae     2 vmcoreinfo-2.6.38-12-generic-pae     2 vmcoreinfo-3.0.0-12-generic-pae     2 vmcoreinfo-3.0.0-13-generic-pae     2 vmcoreinfo-3.0.0-14-generic-pae     2 vmcoreinfo-3.0.0-15-generic-pae     2 vmcoreinfo-3.0.0-16-generic-pae     2 vmcoreinfo-3.0.0-17-generic-pae     2 vmcoreinfo-3.0.0-19-generic-pae     2 vmcoreinfo-3.0.0-20-generic-pae  4092 vmlinuz-2.6.32-34-generic-pae  4347 vmlinuz-2.6.35-30-generic-pae  4567 vmlinuz-2.6.38-12-generic-pae  4675 vmlinuz-3.0.0-12-generic-pae  4676 vmlinuz-3.0.0-13-generic-pae  4681 vmlinuz-3.0.0-14-generic-pae  4698 vmlinuz-3.0.0-15-generic-pae  4700 vmlinuz-3.0.0-16-generic-pae  4700 vmlinuz-3.0.0-17-generic-pae  4703 vmlinuz-3.0.0-19-generic-pae  4705 vmlinuz-3.0.0-20-generic-pae   Output of uname -a:   Linux kitsch 3.0.0-17-generic-pae #30-Ubuntu SMP Thu Mar 8 17:53:35 UTC 2012 i686 i686 i386 GNU/Linux


The text when reviewing Close Votes in /review is broken on ebooks.stackexchange.com as below:    This text is only visible when you click on the "more" link. Also replicated on MSO.

I was reviewing in the close votes  when I clicked the "more" link for the specific close reason. I saw the following:    As you can see, the markup is not rendering. There's also a call to .AsHtml() in there which is obviously not markup.  Browser is chrome 31.0.1650.63


float f = 735.64;     int i = (int)f;     float f2 = f - i;     cout<<f2<<endl;       The value outputted by f2 is simply not 0.64 but something like 0.6400015 I just want to have the value in f2 as either 0.64 or 0.640000.. so could I do it without using any inbuilt functions as such?  Thanks.

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


When buying store bought chicken such as the one shown in the link below, a lot of times it comes with rib meat and glaze/solution to 'add flavor' etc. When defrosting the chicken breast and beginning to pan fry it with oil, the desired result is to get a golden brown / crispy chicken in the end.   Although the outcome always seem to be far from it with store bought varieties, as during the frying process, the juice/solutions comes out of the chicken breast to the point where the chicken breast which was suppose to be frying is now sitting in a puddle of a broth like solution.   As a result, I find myself spilling out the juices repeatedly throughout frying it, which is a huge turn off and a lot of times, it ends up being chewy as opposed to getting that pan fried effect.   I was just wondering if this is common for others cooking chicken breast as well and if there is any way to prepare store bought chicken breast, to prevent this from happening.   The chicken breast is something like this:

I notice when cooking chicken breast in a pan, or in the oven, the chicken releases a lot of fluid, watering down the flavour.  This happens with fresh chicken as well as frozen (de-frosted) chicken.  How do I prevent this?


I installed Ubuntu on usb stick (not live, like here: ).  But when installer asked me if I really want to install without swap partition I didn't know what to do and I partitioned my Sandisk ultra fit: swap 5gb (somewhere I read that if I set swap partition larger than amount of RAM I'll be able to hibernate - but I can't), / 15gb and /home 10gb. It agree that it might not have been the most clever solution on the world.   However, my problem is: When I run windows or Ubuntu, shut down computer, and turn it on again there is a grub program, which seems to not be able to see any OS:    What is interesting, I just have to enter the bios (don't even have to do anything except save & exit) and after restart there is normal grub purple screen with boot options, from which I can start Ubuntu and Windows. But when I turn it off, the problem recurs. Moreover, in bios, in boot options, I can see: my ssd, and TWO positions with Sandisk ultra fit (the same) - even if I delete one of Sandisks, the next time I enter BIOS there are all three options again.  Can anyone tell me what's going on? I can live with this, but it's boring to enter bios every time when turning my machine (ASUS us303, if it helps) on. Also, I'll be grateful if you could advise me how to partition my USB stick in case I need re-installation.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


How many into and onto functions are there from [k] to [n]?  a) If k > n? Thus far I have S(k,n)n! However, I don't know how to calculate that.  b) If k <= n?

I've been banging my head on this problem for some time now, and could really use help. Bear in mind I'm not very good at this sort of thing and am struggling to get by in class.  Problem:     Given $ \alpha : A \to B       \;\;\;\;\;   |A|=p \;\;\;\;|B|=q $      Find:         Number of Injections: $A \to B$   Number of Surjections: $ A \to B$    Prove that ∃ a bijection $A \to B$       $\Rightarrow$ p = q   find number of bijections: $A \to B$         I apologize for dropping such a big problem on you all, but I just can't get anywhere with this. Help?  EDIT: These answers are really helpful and I believe I've got down the number of Injections, but  we haven't gone through permutations or combinatorics in class so my understanding of it is really hamstrung. I'm unclear on the Stirling theorem as discussed here: , specifically the part where inclusion-exclusion comes into play. I'm not sure how to apply that, since right now I'm letting p = 4 and q = 3, so I don't know where inclusion-exclusion would be used (if at all!) since I don't know how elements would be missing.


In the next 3 weeks I will be moving to a new location - my parents have set aside $10,000 for us. My parents can transfer this money from their account to my account - because we share a credit union - but I am concerned about tax payments that I might need to make from receiving this gift. Ideally, if I were to receive the whole amount, I would use the amount I need for our upcoming move and put the rest into a CD - although my parents have offered to give some of the gift to us, and put the rest into a CD in our name.  The short of it is - what is the best way for me to receive this gift from my parents while minimizing any taxes I or my parents would need to pay? For context - I live in the United States, both my parents and I live in New York, and I will be moving to Maryland in July.

A family member intends on gifting us a sum of $70,000 towards the purchase of a new home. My question is - will that family member owe any gift tax on it? I have been reading  that appear conflicting. Basically, the $70,000 is way under the $5.25 Million lifetime exception, but is over the $14,000 annual gift exclusion. Finally, are there any tax consequences for me, as the recipient?  Thanks for looking.


For example I have a domain www.store.com which provides sub stores to clients as subdomains client1.store.com, client2.store.com etc..I am using wildcard ssl certificate for store.com and all subdomains.  My client store 1, has a main site and they provide their store site as store.clientsite.com which displays our subdomain for the client. They add a CNAME record in their DNS for store.clientsite.com with alias as client1.store.com.  In my store.com site for the subdomain client1.store.com we add in apache config, Server as  client1.store.com and Server Alias as store.clientsite.com in the apache config.   It works perfectly as , but with  the browser is displaying a warning. The client has tried it with no ssl added and with wild card SSL added. Both gives same result.  If we need to display the https:// site by Redirect permanent /  the  url gets redirected to . So it is not possible.  How is it possible to display  with CNAME alias client1.store.com without displaying browser warning and in https://.  Help requested from experts.

I am implementing a multi-tenant application where my application hosts and serves technical documentation for a tenant's product.   Now, the approach that I was considering was - I host the documentation at docs.<tenant>.mycompany.com and ask my tenant to setup a CNAME DNS record to point docs.tenantcompany.com to docs.<tenant>.mycompany.com.   I want to the site to be SSL-enabled with my tenant's certificate. I wanted to understand if I my tenant company has a wildcard SSL certificate, will it work with this setup or will a new SSL certificate have to be purchased for docs.tenantcompany.com?


I can`t run mt Spark app because  java.lang.NoClassDefFoundError: org/postgresql/Driver  I did same like  but when I try to start my app I get this Exception.  Exception in thread "main" java.lang.NoClassDefFoundError: org/postgresql/Driver     at SparkRecommendationMatrix.<init>(SparkRecommendationMatrix.scala:31)     at Main$.main(Main.scala:26)     at Main.main(Main.scala)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:292)     at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:55)     at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)     ... 10 more   My bild.sbt file:  name := "untitled12"  version := "1.0"  scalaVersion := "2.10.4"  libraryDependencies ++= Seq(   "org.postgresql" % "postgresql" % "9.2-1003-jdbc4",   "org.apache.spark" % "spark-mllib_2.10" % "1.0.0" )  resolvers += "Akka Repository" at "http://repo.akka.io/releases/"   and my java code   val classes = Seq(     getClass, // To get the jar with our own code.     classOf[org.postgresql.Driver] // To get the connector.   )    val jars = classes.map(_.getProtectionDomain().getCodeSource().getLocation().getPath())    // set up environment   val conf = new SparkConf().setAppName(name).setJars(jars)   //.setMaster("spark://192.168.10.122:7077")   val sc = new SparkContext(conf)

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


I don't really know if I'm right here, if so please say something.  But, I currently work on my bachelor-thesis and want to enable spell check in my VIM. But currently I have to do this every time when I open up a new document. Is there a way to enable spell checking and choose a default language in my .vimrc for all .tex files???  Thanks in advance!

I'm using vim to write my thesis. It's a multi-document project, with most tex files in subdirectories from the master-document. I've set up a couple of \newcommands to replace the use of \section*{} in the Introduction, but when writing the sections, misspelt words aren't highlighted.  I thought it was a problem with vim-latexsuite, so I've just uninstalled it, but still, spell-checking functionality doesn't work in these sections.  For example, a MWE with the following files:-  thesis.tex thesis.tex.latexmain Classes/Thesis.cls Intro/intro.tex   thesis.tex :   \documentclass[twoside,openany,titlepage,12pt]{Classes/Thesis}  \pagenumbering{roman} \begin{document}  \include{Intro/intro}  % ...  \end{document}   Classes/Thesis.cls :  \ProvidesClass{Classes/Thesis}[2014/07/14 v1.2 Thesis template]  \LoadClass[pdftex, a4paper]{report}  \usepackage[pdftex,             plainpages = false,             pdfpagelabels,             bookmarks,             bookmarksopen = true,             bookmarksnumbered = true,             breaklinks = true,             linktocpage,             pagebackref,             colorlinks = true,             % Colour settings from::             % http://tex.stackexchange.com/questions/30243             linkcolor=NavyBlue,             citecolor=BrickRed,             filecolor=black,             urlcolor=BrickRed,             hyperindex = true,             hyperfigures             ]{hyperref}  \usepackage{tocbibind} \usepackage{bookmark} \usepackage[english]{babel} \usepackage{times} \usepackage[a4paper]{geometry} \usepackage{pdfpages}   \newcommand\chapwtoc[1]{%   \phantomsection   \chapter*{#1}   \addcontentsline{toc}{chapter}{#1}   \markboth{#1}{} }  \newcommand\secwtoc[1]{%   \phantomsection   \section*{#1}%   \markright{#1} % Get the Section name in headnotes   \addcontentsline{toc}{section}{#1} }   Intro/intro.tex :  \chapwtoc{First chapter}  this is a msisisspelt word. Some mnore mis-spellings.   \secwtoc{First section}  some more misskjkpellings.  % vim: spell spelllang=en_gb   thesis.tex.latexmain is an empty file, as suggested in the latexsuite documentation for   How do I get spell-checking to work in the intro.tex sections? Using vim 7.4 on Linux


I have a single entry Schengen visa (business) valid from 16 Nov - 30 Nov 2018. I am planning to visit Belgium on 16 November and Slovakia on 18 November. Then I plan to visit Turkey on 24-26 November.   I have already obtained a Turkey e-Visa valid from 17 November 2018 to 15 May 2019. Is it possible for me to travel to Turkey with this single-entry e-Visa since I am going to use my single-entry Schengan visa before travel to Turkey?

I got a UK visa for one month (restricted validity). It expires on November 4. Pakistani citizens are eligible to apply for a Turkish e visa if they have a valid UK visa. I want to visit Istanbul for a couple of days - from October 31 to November 2. Would I be eligible to still apply for an e visa?   My visa is for single entry. It's valid from October 4 to November 4.


I am trying to solve the following problem:  Show that for each $m\in \mathbb{N}$, there exists $n\in \mathbb{N}$ such that $x^2\equiv 1 \pmod n$ has at least $m$ solutions?  I figured that this is equivalent to showing that there is a sequence $n_1,n_2,n_3,\dots$ such that $$x^2\equiv 1 \pmod {n_1}\qquad x^2\equiv 1 \pmod {n_2}\qquad x^2\equiv 1 \pmod {n_3} \qquad\dots$$ Has an increasing number of solutions. By computation, I figured that this sequence could be $$n_1=2\qquad n_2 =2\cdot 3\qquad n_3 = 2\cdot 3 \cdot 5\qquad n_4 = 2\cdot 3 \cdot 5 \cdot 7 \qquad \dots $$ Now comes my trouble: I can't figure out why "adding" another prime in each step of the sequence makes more solutions appear. Can you help me?

I am stuck with this exercise:     Show that $\forall s >0 \quad \exists N >0$ such that $$x^2 \equiv 1\pmod N$$ has more than $s$ solutions.   I think I cannot use the theory if quadratic residues, because the modulus is not prime, so maybe I must prove it with square roots or roots of unity, but I don't know how to approach it at all.  Thanks for any help.


OK i have a bit of a weird one probably easy to be fair but im working on a java fx app with sql database connected via JDBC. everything working good except for one thing. When you press a button the scene changes and and the data is pulled from the database this all works perfectly the debug shows that the correct values are were they need to be but its when i call a method such as label1.setText(someString); it throws a NPE.   So i run debug all the variables look good. then i do a simple print on the node itself it prints null i thought the fxml injection handled instantiation. i have checked the fxml files everything has an fx-id and every thing is mentioned in the class. its probably something really stupid ive overlooked.  this is the method that throws the Exception this class contains the mehtods start, main, handle and this method       public void insertData(ResultSet rsIn) {                     try {                          while (rsIn.next()) {                             int housenumber = rsIn.getInt("housenumber");                             String maintext = rsIn.getString("maintext");                             String img1 = rsIn.getString("img1");                             String img2 = rsIn.getString("img2");                             String img3 = rsIn.getString("img3");                             String img4 = rsIn.getString("img4");   // scrollLab is of Text type       scrollLab.setText(maintext);//here is where the NPE is thrown                           }                      } catch (SQLException sql) {                         sql.printStackTrace();                      }               }   the other class contains all sql related methods and the getStuff method where Resultset rsIn comes from  public void getstuff(String buttonid) {          switch (buttonid) {              case "winterfell":                 try {                       conn = DriverManager.getConnection(DB_URL, USER, PASS);                     Statement stark = conn.createStatement();                     System.out.println("Fetching records");                     String sql = "SELECT * FROM houseinfo WHERE housenumber = 1";                     rs = stark.executeQuery(sql);                     GOT_Map map = new GOT_Map();                       map.insertData(rs);                     }catch(SQLException e){}                   break;   and finally the handle method starts the process this is inn the controller class same class as where the exception is thrown  @Override     public void handle(ActionEvent event) {         Sql_handler sql = new Sql_handler();         try {  // will load the new scene for all map buttons but will pull data from the database to fill blanks             if (event.getSource() == winterfell) {                 System.out.println("winterfell clicked");                  //getting reference to the button's stage                  Stage stageref = (Stage) winterfell.getScene().getWindow();                 inforoot = FXMLLoader.load(getClass().getResource("infoView.fxml"));                 stageref.setScene(scene2);                 sql.getstuff("winterfell");   this is probably an easy fix that ive overlook been working on this none stop past two days  any help is much appreciated

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


I trying to recreate a material by looking at an image that appears to show "nested" nodes. I tried every stock node but was unable to produce this setup.   These two "nodes" are used as components in this one, in the section named "marble pattern":

What kind of node is this?    Image from this


I'm walking around the island with this annoying ghost following me. He asked me to take him to his house, which I found. Now, he's incessantly asking me to take home to his grave. I went to the graveyard and it doesn't seem to be there. Where is the ghost's grave?

So apparently I have a ghost following me now that makes really annoying noises every time I enter a new area. Ulira just tells me to take it where it wants to go, but that is NO HELP because as far as I can see, I have no way to actually get the ghost to tell me where he/she/it wants to be.   Please help me! I am tired of being haunted!


For example, let's say we have to classify groups of a certain order. Can all the groups of that order be expressed as some semi-direct products?

When people want to classify a group with certain (small) order, they seem to find a normal subgroup $H$ and a subgroup $K$, and then consider how many distinct $H \rtimes_\varphi K$ are there.  My question is: For any group $G$, does it always exist normal subgroup $H$, subgroup $K$ and $\phi : K \rightarrow Aut(H)$ s.t. $G\cong H \rtimes_\varphi K $?  Sorry if this question is too basic...  Thanks the comment and the answers. Then if the $G$ is not simple, can we have can $G\cong H\rtimes_\varphi K$ for proper subgroup $H$, $K$, with $H$ normal?  EDIT:  If we have a group $G$, that is not simple (then $G$ has at least one normal subgroup), are there always a non-trivial normal subgroup $H$ and a proper subgroup $K$ s.t. $G \cong H \rtimes K$. (Note that if $G$ is simple this is clearly not possible).  But the quaternion group and $Z_4$ given in answers have shown that we cannot always have it.


It's not yet 18th December 2015 but I have earned the A New Hope hat on Stack Overflow which says:      ask, answer, or vote on December 18th   Proof:     Possible Bug?

I just got the  hat which states "post or vote on December 21".  Does SE have a time machine now?


Which one is correct? The first one implies that I read one specific comment but the second one that I read one comment out of many the person made? Thanks!

Which of the following is correct?        Yesterday, I met one of my friends.   Yesterday, I met one of my friend.


911 is the North American standard. I was thinking in case something happens and one were to panic that it'd be good to know if dialling 911, in other countries where it is not the primary emergency number, is still set up to go through to emergency services.

I know that the emergency services can be called FREE in the UK by dialing 999 and in the US by dialing 911.   What I don't know is the number to call in other countries and if there is a cost involved. This is something I think most people should find out before travelling but many don't (including me). Hopefully this will help me and other people.


I am trying to create a list of size 9 (but that can change) which is populated with numbers from the range of [-pi/2,pi/2] where basically the range is split into 9 numbers and those 9 numbers are what the list is populated with.

Is there a way to step between 0 and 1 by 0.1?   I thought I could do it like the following, but it failed:  for i in range(0, 1, 0.1):     print i   Instead, it says that the step argument cannot be zero, which I did not expect.


When I use subfig package to have two images in one figure the marker (a) stays bottom aligned with (b) but the image is not centred vertically (Figure 1). When I use minipage command to have two images in one figure the marker (a) doesn't stays bottom aligned with (b) but the image is centred vertically (Figure 2).  How can I have the image centred vertically and have the marker remain aligned with the other marker?  \documentclass{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \usepackage{subfig} \usepackage{caption} \begin{document}  \begin{figure}     \centering     \begin{tabular}{cc}         \subfloat[]{\includegraphics[trim=0cm 0cm 0cm 0cm, clip=true, width = 0.45\textwidth, frame]{latexlogo}} \hspace*{0.5em}         \subfloat[]{\includegraphics[trim=0cm 0.2cm 0cm 0.2cm, clip=true, width = 0.45\textwidth, frame]{latexlogosmall}}     \end{tabular}     \caption{} \end{figure}  \begin{figure}         \centering         \subfloat[]{%         \begin{minipage}[c]{0.45\textwidth}%         \includegraphics[trim=0cm 0cm 0cm 0cm, clip=true, width = 1\textwidth, frame]{latexlogo}%         \end{minipage}} \hspace*{0.5em}         \subfloat[]{%         \begin{minipage}[c]{0.45\textwidth}%         \includegraphics[trim=0cm 0.2cm 0cm 0.2cm, clip=true, width = 1\textwidth, frame]{latexlogosmall}%         \end{minipage}}         \caption{} \end{figure}  \end{document}    Edit: I am aware that I could alter the code of Figure 2 to:  \begin{figure}         \centering         \subfloat[]{%         \begin{minipage}[c][0.55\width]{0.45\textwidth}%         \includegraphics[trim=0cm 0cm 0cm 0cm, clip=true, width = 1\textwidth, frame]{latexlogo}%         \end{minipage}} \hspace*{0.5em}         \subfloat[]{%         \begin{minipage}[c][0.55\width]{0.45\textwidth}%         \includegraphics[trim=0cm 0.2cm 0cm 0.2cm, clip=true, width = 1\textwidth, frame]{latexlogosmall}%         \end{minipage}}         \caption{} \end{figure}   This doesn't really answer the question as I would need to edit the \width parameter for every figure.

I have an figure* environment with the following  \begin{figure*}     \centerline {     \subfloat[1]{...}     \subfloat[2]{...}     } \end{figure*}   The images are different heights.  How can I vertically align them? i.e. so the centre of each image is next to each other:  _____ |    |     _____   |    |  _  |    | |    |     |____| |____|       Fig. 1


Is the information that the Linux kernel provides to the user via  a  of the information that the Linux kernel provides to the user via ?  If not, then which information is provided via sysfs that is not provided via procfs?

What is the difference between procfs and sysfs?  Why are they made as file systems? As I understand it, proc is just something to store the immediate info regarding the processes running in the system.


I am searching for a small example code to detect the language of a string in JAVA. For that i downloaded and imported the following GitHub Project:   Unfortunately I am struggling reading the API and I don't know how to get my code to work. Help is very appreciated. Heres what i have so far. I get a NullPointerException because i dont know how to initialize the Detector properly. ny help is kindly appreciated.  import com.cybozu.labs.langdetect.*;  public class DetectLanguage {      public static void main(String[] args) throws LangDetectException {          String sample = "Comment vous appelez-vous?";   // french demo text         Detector d = new Detector(null);                // initialize detector         d.append(sample);         System.out.println(d.detect());     } }

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?


When I was a teen in High School, I distinctly remember coming across such a word while turning over the pages of a paperback dictionary.  The meaning was something like this:  A person who knows he has the attention of everyone in the room, overreacts and grumpily leaves the room (may be shutting the door behind). Imagining a teenage girl might help. What is the word for this?  P.S. Knowing the word would give me inner peace, as of now my ignorance of the word leaves me with a deep sense of dissatisfaction.

Opening a door frustrated and rushing in like you are about to scold someone inside... Barging in a room with anger. Is there a word or idiom for that, other than storm in?


I updated today from Ubuntu 14.04 to 16.04 via the official client. I did everything as recommended and let it remove the outdated packages in the end. After the first restart it said that there has been an "internal error" and I had no Unity menu nor a taskbar or anything similar. The only way for me to open Firefox was by opening a picture with Firefox that I had on my desktop. I cant minimize or close the window with my mouse, only with Alt+F4.  So if someone would tell me what to do, I'd be very grateful  Greeting  Vitus

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


In 2D the Riemann tensor has 1 independent component, in 3D the Riemann tensor has 6 independent components. Can someone explain to me from a geometric or maybe from a physical point of view why exactly 1 and 6?

I'm having some trouble understanding the counting procedure for the number of independent components of Riemann curvature tensor $R_{iklm}$ in 4D spacetime. (The answer is supposed to be 20, but I'm trying to understand how so!)  Let's do it sequentially:   Since we are looking at a rank 4 tensor in 4D, $R_{iklm}$ could bear $4^4 = 256$ components in general. (I follow this argument.)  Since the tensor is anti-symmetric w.r.t. first and second pair of indices, i.e. $$R_{iklm} = - R_{ikml} = - R_{kilm}$$ all 256 are not independent. e.g. $R_{1234} = - R_{2134}$, and those where these antisymmetric indices get repeated, vanish. e.g. $R_{1134} = - R_{1134}$, and hence $=0$. Thus, the number of independent components is far lesser. (I follow this qualitative argument.)   Trouble begins when we have to count how many. An attempt towards the answer can be found at , from which I quote verbatim:     The two conditions show that all components where either the first and second indices, or the third and fourth indices are equal must be zero. In four dimensional spacetime, this means that at most $\left[\ {}^4C_2\ \right]^2 = 36$ components can be non-zero, since we can choose two distinct values for both the first and last pairs of indices.   I don't get the above argument cleanly: of course with repeated indices, we get a vanishing answer, so the indices have to be distinct, but how does number of independent components amount to "choosing two distinct values for both the first and last pairs of indices"?  i.e. what is the origin of the latter half of the sentence?     An alternative reasoning is adopted in a comment made below the post in the aforementioned link:      It was stated,…. “The two conditions [(1) & (2)] show that all components where either the first and second indices, or the third and fourth indices are equal must be zero.”      …This is correct as stated, since an interchange of two indices that are equal refers to the same tensor component, and the only number that can be equal to the negative of itself, is zero. However this only accounts for 112 components being zero; with 256 – 112 = 144 still left that are not proven to be zero.      A 4 X 4 anti-symmetric matrix is one where the 6 bottom-left triangle of components are equal to the negative of the 6 upper-right triangle of components, and so dependent, and that the diagonal components are zero (already counted).      So, for the nj-matrix, get rid of the 6 dependent, for each of the lm combinations,.. that’s 6*4*4=96. For the lm-matrix, again get rid of the 6 dependent, for each of the nj combinations,.. that’s 4*4*6=96. That’s 96nj + 96lm – 84 (that are counted twice) = 108. Now, 256 – 112 (above) – 108 = 36.   The spirit underlying this answer looks cleaner, but there are some missing steps:  How do we count that 112 vanish? How do we count that 84 were counted twice as per the former argument?  I'm sure that if I am able to understand this part, I would be able to figure out the rest of the counting myself too (i.e. slashing 36 to 21 because of the symmetry argument, and reducing one more due to the Bianchi identity constraint.)  Any help in clearing the haze would be greatly appreciated.


I have this problem:      Let $X$ be a Geometric distribution with parameter $p = \frac1{10}$.   What is the value of $P(x\text{ is odd})$?     What I got was $P(X = i) = pq^{i-1}$ where $p = \frac{1}{10}$ and $q = (1-p)$   Is this right?

Let $\alpha$ be the probability that a geometric random variable $X$ with parameter p is an even number   a) Find $\alpha$ using the identity $\alpha=\sum_{i=1}^{\infty}P[X=2i]$  b)Find $\alpha$ by conditioning on wether $X=1$ or $X>1$  My attempt for a):  $$\alpha=\sum_{i=1}^{\infty}P[X=2i]=\sum_{i=1}^{\infty}p(1-p)^{2i-1}=p(1-p)\sum_{i=1}^{\infty}(1-p)^{2(i-1)}$$ Letting $j=i-1$  $$p(1-p)\sum_{i=1}^{\infty}(1-p)^{2(i-1)}=p(1-p)\sum_{j=0}^{\infty}(1-p)^{2j}={{p(1-p)}\over {1-(1-p)^2}}$$  hence $$\alpha={{1-p}\over {2-p}}$$  The thing is that I´m having trouble for b): Let $E$ be the event that a geometric random variable $X$ with parameter p is an even number, so : $P(E)=\alpha$ I need to find this probability by conditioning on wether $X=1$ or $X>1$ therefore:  $$P(E)=P(E|X=1)P(X=1)+P(E|X>1)P(X>1)$$  but $P(E|X=1)=0$ hence $P(E)=P(E|X>1)P(X>1)$ then we have that $$P(X>1)=1-P(X\le 1)=1-p$$  But I´m having trouble computing $P(E|X>1)$ Can you help me please? I would really appreciate it :)


The following 2 snippets give same result. I wondered what is the real diffence in these 2 approaches and when should one be used instead of another way. Can someone help me out understanding the difference?    Case 1:   class Person{   constructor(name){     this.name = name;   }    printData(){     console.log(this.name);   } }   Case 2 :   class Person{   constructor(name){     this.name = name;     this.printData = function(){       console.log(this.name);     }   } }

What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };


When I put two plural nouns in a row, should I use plural form for both? Often, when I do so, it seems wrong.  Examples can be:  "components reliabilities" - referring to reliabilities of many different components "components failures" - failures of components "systems designers" - designers who creates systems   Another example popped up, as I am writing this question:  "words combinations" - combinations of words   I face this problem, since I am trying to write to cover general cases, without being specific. Also, I know that I could change the word order with 'of' in many cases (e.g. failures of components). But, sometimes, such modification doesn't fit well in a sentence. So, I decided to ask.  Any help would be appreciated.

I am writing a neural network application. In this application, a neural network can have one or more hidden layers, which can have different sizes (neuron counts).  Which label would be correct: "hidden layer sizes" or "hidden layers sizes" and why? I realize this is a more general grammar related question and I'd love to learn about it.  EDIT: the label is for a text box, where user will enter numbers separated by commas.


The other day, my family chose to make something akin to "roast beef" for the holidays. Since most markets were closed, we found a small shop which sold a limited selection of beef cuts. The one we eventually picked up was labeled "Bottom Round Roast". Needless to say, upon roasting it, it didn't exactly turn out as planned. While the end-product was quite juicy and flavorful, it was also also uncomfortably tough. Since this isn't a cut we've used before, I'm curious to know if anyone can help us troubleshoot.  Here's how it was cooked:   Salted about 2 hours in advance Roasted--mid-rack--in a conventional oven at 225 degrees Removed from the oven when a thermopen read about 125-130 degrees F, and rested for 20 minutes. Finished stovetop in butter and thyme, about 45 seconds to a minute per side, until a thermopen confirmed the middle was medium rare. Sliced against the grain--visibly medium rare.   Does this cut simply need more time? Clearly it doesn't behave like a prime rib. Any tips for next time?

I recently made an Oven Round Roast in the oven and I followed directions quite well. I would really like to know where I went wrong.  The roast was 1.4kg and relatively round in shape, it was also quite nicely marbled with a big strip of fat on one side.        Out from the freezer and into the fridge overnight (to give it some time to cool down) and then left it out in room temperature for a   couple of hours. Took out of package and put on a rub.   I put the oven on 450 F and put the roast in (fat side up) for 10 minutes for the maillard reaction. Note that when I did this, I put it   directly on the oven rack; I put a tray underneath to catch the   drippings, but it was uncovered.   Turned oven down to 225 for 2 hours and then 200 for 5 hours.    Cut the roast into half inch slices and served.      The color was a nice pink on the inside and dark on the outside. It was still juicy and the taste was great. The roast's outside is absolutely delicious in fact, the rub turned out so well and the fat was amazingly tasty.   However, the roast was so chewy, I am very disappointed. I did a lot of research before I cooked it and found that slow cooking is a good way to tenderize meat. I also found out that certain cuts of meat need to be cooked differently. I.e. Steak should be hot and fast, and roast cuts should be long and slow (after searing it of course... yum yum yum).   In  post, 'Marti' answered by quoting a TV chef saying that when beef is being cooked it's collagen breaks down and liquifies and when it cools it turns to gelatine. Could that be what happened to my beef roast? If so, how can I avoid that?  In  post, 'Gilead' suggested a few solutions, beating the meat, cutting it against the grain, and choosing the right cooking method. Well, did I do the right cooking method? And do the other ones apply to a roast? I mean if you cut it up, it's basically cheap beef steak and I've never tried mechanically tenderizing the meat.   I really appreciate any help; I'm quite distraught over this chewy beef roast.


How do we hide the admin toolbar from the back end dashboard?  We can hide the toolbar when viewing the website with the below code but we want to also hide it from back end?  add_filter('show_admin_bar', '__return_false');   Thank you

I'm using wordpress multiste 3.3.1 I'm not gonna update it in the future. So I disabled all upgrade functions.  I want to remove the wordpress admin bar from both frontend as well as dashboard.  I can remove it from frontend using this code.  add_action( 'init', 'disable_admin_bar', 1 ); function disable_admin_bar() {     add_filter( 'show_admin_bar', '__return_false' ); }   But i couldn't find any solution to remove it from dashboard.   I don't want to use css solution to hide admin bar and I'm ready to edit the core files to remove it  Can anyone help me to remove it completely?. Thanks


Wondering what happened to my shares I thought if the price went up you get that price for every share. I had 5,000 shares for .75 now they say I have 500 shares at 7.50

I purchased 1000 shares of ACB stock a little over a year ago. I have now learned I have only 83 shares of stock. How can the company take away over 900 shares of my stock?


I realize I never used the left hand side of the any Stack Exchange site that contains: Home, Find a job, Teams. I have a small screen, where terminal and the web-browser is open side to side. So hiding this section might help to save same space for me.  [Q] Is it possible to hide/remove section inside the red rectangle to increase the width for the text that contains the answers. Basically when I am reading answers I just want a focus to the middle sections and ignore the tags on left and right hand side in order to improve productivity.

Can I remove the navigation bar as this is distracting and clutters the site especially on Stack Overflow.


clearly states:     This feature is only available if you use Gmail for work or school set   up by an administrator. If you use a gmail.com account, read receipts   won’t work.   Alas, using Gmail for work, I get no such option.  How is it possible? Is Google's FAQ untrue? Did they remove the feature? Alternatively, is it only for certain G Suite editions, which their FAQ fails to mention?

I have some coworkers and customers that send all of their e-mails with read receipts requested. Whenever I view one of these emails in Gmail and then try to leave, it asks me if I want to send a read receipt or not. I always click "No", but even if I view that message at a later date (such as trying to find an old email on a particular topic), Gmail will continue to nag me about sending read receipts.  Is there any way to tell Gmail that I never, ever, under any circumstance, never want to send a read receipt? This drives me absolutely insane. I must spend several hours over the course of the year just dismissing read receipt dialogs.


I did sudo apt-get update  Reading package lists... Error!                                                 E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en E: The package lists or status file could not be parsed or opened.   When I try to install any software, it gives the same error like:  sudo apt-get install gnumeric Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en E: The package lists or status file could not be parsed or opened   .  I opened synaptic package error, it gives the same error on startup.   I tried   sudo apt-get clean  sudo apt-get dpkg --configure -a   I am still stuck. How can i fix this?

The computer gave me this output in a window:  E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages E: The package lists or status file could not be parsed or opened.   How can I fix this?


I've searched the usual places (, , DeTeXify) and can't seem to find this character, which surprises me.  I'd like a combination of \oplus and \otimes.  More precisely, I'd like a circle subdivided into eight 45° sectors.  (Sort of like \circledast but with the arms of the asterisk extending all the way out to the edge of the circle.)  Does such a symbol exist?  If not, how can I create one?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


Following question. Assume we have 6 variables  A - stationary at level . I(0) B - stationary at level . I(0) C - stationary at level . I(0) D - stationary at level . I(0) E - stationary at level . I(0) F - stationary at level . I(1)   We applied a Granger Wald test to   A - B with the result that A causes B. Unidirectional. C - D with the result that C causes D. Unidirectional. E - F No causality. For this test, we applied a VECM Granger testing model,       since F was I(1).   Question:  Is it okay to also test A + B and C + D for Johansen cointegration, though they are both I(0), i.e. stationary at level? We tested E + F for cointegration with each first differences. The point: The results of cointegration were very much the same as for the Granger Wald test.   A - B existence of cointegration vector. C - D existence of cointegration vector. E - F no existence of cointegration vector.   I only wonder why I should maybe not test A + B and C + D with Johansen, or if it's nonsense once both variables are I(0).

According to Wikipedia the Johansen cointegration test "is a procedure for testing cointegration of several, say k, I(1) time series".   Now, if all my variables are I(0), can I still test co-integration with Johansen? Or: How can I potentially test co-integration?  I found Granger causality with a Wald test of my time series and would like to use the cointegration test to double-check whether I find cointegration where I also found causality (this should be the case).


Some sites (for example SO) have obviously been around for years, and therefore no-one was around to collect this badge as it didn't exist at the time.  I was therefore wondering why it still remains on SO, and therefore why it simply isn't just just removed from the site for which it has no relevance?

Followed the  proposal for this site before it entered the commitment phase    None of these sites had Area 51 proposals.


Does anyone know how to find a shapefile with boundaries of Indian municipalities?   I have tehsil boundaries as for year 2001, but I would like boundaries of municipalities and, ideally, also historic ones.    I believe Census of India has the information but I couldn't find any maps or shapefiles...

After learning about the  datasets I've working with the following layers, from the USA data   Country boundaries State boundaries County boundaries City boundaries ZipCode/Postcode boundaries   What I am trying to find is the equivalent (where appropriate) of the same data for various countries.  Is there any free administrative boundaries available as shapefiles for other countries?


Consider the following scenario:     Suppose A and B have set up their RSA public keys, namely $(e_a, n)$   and $(e_b, n)$, where the n-value is the same. Also, it happens that   the $\gcd (e_a, e_b) = 1$. Suppose C wants to send both A and B a   message $M$ that is coprime with $n$. Thus, C encrypts $M$ using A and   B's public keys, producing the cipher text, $C_a$ and $C_b$.   I was told by my instructor, that suppose if there is someone who obtains the values of both $C_a$ and $C_b$, that particular person can determine the message $M$ using the public keys of $A$ and $B$, without knowing their private keys. Why is it necessarily true? Any help would be highly appreciated!

I am struck with the following problem:  Let Alice, Bob, Chris and Eve communicate over a public network. They encrypt all messages they send using RSA system. Bob and Chris have the RSA modulus $n_B$ and $n_C$ respectively with $n_B$ = $n_C$ But different public encryption exponents: $e_B \neq e_C$. Suppose $\gcd(e_B, e_C)=1$, and that Alice sends the same secret message to Bob and Chris. Show how Eve can decipher the message.


Let $R$ be a commutative finite ring in which $ab = 0$ implies either $a = 0$ or $b = 0$ for any $a,b \in R$. Then, $R$ is a field.   I do not understand how I should act. I tried different ways, but I was not able to prove this assertion.

$R$ is finite commutative ring without zero divisors which has at least two elements. How to show that $R$ is field?   I'm just starting with abstract algebra and I'd really appreciate if someone could explain it to me.


I need help with figuring out what pronoun to correctly use at the end of the following sentence:  "As a child, I witnessed my father regularly fight with my mother, and exhibit strong, emotional and physical outburst towards my sister and me/I/myself."  Can anyone explain which one it correct and why?

I'm currently using Cambridge English Advanced 1. It's a book that contains past examination papers, and includes numerous samples of authentic writing. This material helps, candidates and teachers, understand what the examiners are ‘testing’ and how these papers are marked. The assessment covers four categories: content, communicative achievement, organisation and language. Each category is awarded a mark between 1 and 5, so the maximum score is 20, and each mark has a brief note attached by the examiner. Any errors of punctuation, orthography, grammar, appropriacy, and vocabulary are left intact. In fact, there are no corrections because the  ‘examiner’ does not specify where the errors lie. This can be frustrating, even though spelling mistakes are rare at the advanced level, and errors in style, collocation or register are still relatively easy to identify, sometimes I'll read a phrase that forces me to ponder.  Dear Director, [ TEXT ] To conclude, this letter is a polite request to cover the costs of a 2 month language course for my colleagues and me. We would be very pleased if the company would do us this favour. Yours sincerely John Smith  The following marks were awarded Content                    5    blah, blah, … Communicative Achievement  2    blah, blah, …     Organisation               3    blah, blah, … Language                   3    blah, blah, …  I am able to pick out six minor errors in that brief extract, maybe some users will identify more, maybe some will identify fewer, and maybe some will say that the language used is perfectly acceptable. But if I can help a candidate attain that elusive B,  I would be delighted. I am interested in (what could be) the 7th error, emphasised in bold. Because the letter of proposal is formal, I feel the phrase, for my colleagues and me, is jarring. I want to change it to for my colleagues and I, but the antecedent requires an object. You would not say: “This is a request to cover the cost […] for I”. So, why use the subject pronoun I in the expression “my colleagues and…”?  Could I use instead, myself?  Which of the following is preferable in a formal written proposal?    …for my colleagues and me …for my colleagues and I …for my colleagues and myself  EDITED: I found a   of the writing sample (11/11) if anyone is interested.  I've looked at the following question,  Some answers appear to be contradictory, the accepted answer says using  I and me are both grammatical, which in my example is not true. Moreover, there's no mention of myself, as a possible solution, in the question.


I am new to PHP, and am trying to learn to use PDO to connect to a test MySQL db. I have the following:  try {     $db = new PDO('mysql:dbname=MYDBNAME;host=MYHOST', 'USERNAME', 'PASSWORD');      $query = "select * from books where ? like '%?%'";     $stmt = $db->prepare($query);     $stmt->execute(array($searchtype, $searchterm));   } catch(PDOException $e) {     echo 'PDOException: ' . $e->getMessage(); }   When I try it I get the following warning: Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens  When I remove the like clause, and the $searchterm param, it returns the result properly. I thought -- like '%?%' -- might not be a legal way to create this query under double quotes, so I tried escaping ', which did not work.  I looked around for a solution, and found that someone moved '% and %' down to where $searchterm is:  $query = "select * from books where ? like ?"; ... $stmt->execute(array($searchtype, '\'%'.$searchterm.'%\''));    I got the same result. Any help is appreciated. Thanks!  / UPDATE ****/ I found on example 12 of   Example #12 Invalid use of placeholder  <?php $stmt = $dbh->prepare("SELECT * FROM REGISTRY where name LIKE '%?%'"); $stmt->execute(array($_GET['name']));  // Below is What they suggest is the correct way. // placeholder must be used in the place of the whole value  $stmt = $dbh->prepare("SELECT * FROM REGISTRY where name LIKE ?"); $stmt->execute(array("%$_GET[name]%")); ?>    I tried this, and even though I no longer get a Warning, I do not get any results. However when I execute the query directly I will get a couple of results. Any thoughts?

Here's my attempt at it:  $query = $database->prepare('SELECT * FROM table WHERE column LIKE "?%"');  $query->execute(array('value'));  while ($results = $query->fetch())  {     echo $results['column']; }


man -k '^printf' lists man pages specifically available for printf utility only, printf(1) and printf(3) in my PC. If you do not mention these signs around printf, the command doesn't work.  I want to make an alias mank for this but I am stuck at the logic.   I want to be able to type mank utility and have the same output as man -k '^utility'.  This way without typing silly symbols, we would get all the man pages available for that utility.

For bash script, I can use "$@" to access arguments. What's the equivalent when I use an alias?


Why so the oscillations which are not circular also have angular frequency which is a quantity related to the circular motion? I have referred many articles related to simple harmonic motion where they directly include the term angular frequency. Is every periodic oscillation correlated to circular motion such that it has the angular frequency term?

I recently read in a book that combination of two simple harmonic motions of equal amplitude in perpendicular directions differing in phase by pi/2 is circular motion. I don't seem to understand this because I am not able to figure which two forces in circular motion are acting to cause two different simple harmonic motions.  Any explanation would be thoroughly appreciated


whenever i edit the terminal or change password in linux it appears as blank(i.e it wont show the password), any idea to make appearance of it (as *)  i face the following difficulty   i dont know how many characters i am typing for correct password   Any third party tool or tweak to make apperance of typing password as *?

When I'm about to install a program in the terminal it wants the password:  [sudo] password for xxx:   But when I start to type my password nothing happens. What should I do?


I have recently installed Ubuntu 13.10 on my laptop, which is a Lenovo Z500. Everything works nicely so far, but occasionally there is some hard drive clicking.  I tried using the command:   hdparm -B 255 /dev/sda   With no avail, though.   Can anyone help? This laptop has been problematic with a lot of Linux distributions, and it always had that same clicking problem. If there is some more info that I can provide, just tell me, and I'll edit the post.  The hard drive is a Seagate ST500LT012-9WS142.  Edit #1: As this question has been marked as a possible duplicate, I should add more info. I've read the posts that have been suggested, and I came across using the hdparm command, which, as I said, does not work for me.   As someone else suggested, the file /usr/lib/pm-utils/power.d/95hdparm-ap should be edited. I have not tried that on Ubuntu 13.10, and I will attempt it, but as far as I remember, the hdparm command is being issued in that script as well.  I will also attempt to edit /etc/hdparm.conf, and will come back with the results.  I'd also like to add that I did try these two methods on other distros, and they didn't give the wanted result. :/ But, yes, I understand that those are other distros and that these methods might work on Ubuntu, so I'll try.  Edit #2: Editing /etc/hdparm.conf did not bring any satisfactory results. The clicking is still occurring.  The code used was:  /dev/sda {     apm = 254     apm_battery = 254 }

I'm running Ubuntu 11.10 on an Acer Aspire One 722. Whenever I'm on battery power I get a clicking sound from my hard drive every 5 seconds or so (this does not happen when the laptop is plugged in). I'm dual booting with Windows 7 and I don't get the clicking sound in Windows.   The clicking sound stops when I run the command:sudo hdparm -B 254 /dev/sda   Also, according to:sudo smartctl -H /dev/sda my hard drive is healthy.   Is this clicking sound something I can just ignore? Or is it a serious problem and will it eventually damage my computer? If so, how would I fix it?  I have tried adding hdparm -B 254 /dev/sda to my /etc/rc.local file, but I still run into the clicking problem if my computer boots while plugged in and is then unplugged. Also, I'm finding this fix to be unreliable. Sometimes it works, sometimes it does not. Is this a good solution and is there a better way of doing this? Also, would running my laptop with a -B value of 254 have any negative effects? (I read somewhere about a lower level protecting the hard drive from bumps)


Energy is expended when a person exerts force on a object.   1) From the equation Work Done = Force x Distance, if a force is exerted, but no distance moved, then no work is done. Hence, the statement is false?  2) However, when a person exerts a force, isn't  he expending chemical potential energy? In other words, there is an energy change from chemical to thermal. Hence, the statement is true?  I am not sure which of the above is right.

I read the definition of  as  $$W ~=~ \vec{F} \cdot \vec{d}$$  $$\text{ Work  =  (Force) $\cdot$ (Distance)}.$$ If a book is there on the table, no work is done as no distance is covered. If I hold up a book in my hand and my arm is stretched, if no work is being done, where is my energy going?


Looking at my phone charger:     Model LG MCS-02EP       Input 100-240 V, 50-60 Hz, 0.2A      Output: 5.0 V 0.85 A   That means input power from 20W to 48W and output 4.25 W. Thus, an efficiency in transfer of energy around 10% - 20%, losing up to 90% of the energy. It seems an illogical waste of energy.  I can assume 0.2A has a peak, but then same peak should be mapped to the output or must be consumed by the power adapter itself (when and where?)

If a power supply says the input power is 100-240V, ~1.5A, I'm assuming that the "1.5A" draw would be at 100V, not at 240V, right?  I.e. would the total max watts be 150W regardless of the input voltage?    The context of this is trying to determine the maximum draw for something based on the input power specs on its power supply to ensure a circuit doesn't get overloaded if too much is on it.  I want to make sure to get the max draw correct whether this is in the US at 110V or Europe at 220V.    As a side question, the output rating on this supply is 19V, 3.42A.  Does that mean that it's pretty inefficient?


A bioinformatics department at a University has 100 professors- some are honest and hardworking, while others are deceitful & do not like students. The honest prof. always tell the truth, while the deceitful ones sometimes tell the truth and at other times lie. You can ask any professor Y the following question: “Professor Y, is Prof. X honest?” Y will answer either “Yes” or “No”. Design an algorithm which will help you figure out which Profs are honest and which lie. What is the minimum number of questions you need for this purpose? [It is known that there are more honest Prof. than deceitful Profs]  Question is taken from a book. I really can't solve this problem. Can somebody help?

I found this in . I've paraphrased for clarity.  There are 100 professors. Some are honest, while others are dishonest. There are more honest professors than dishonest ones. Honest professors always tell the truth, but the dishonest ones sometimes tell the truth and sometimes lie. You can ask any professor the following question about any other professor, "Professor Y, is Professor X honest?" to which he/she will answer yes or no. Design an algorithm that allows you to figure out which of the professors are honest with no more than 198 questions.  The bold part is the kicker. If liars always lied, then the problem is trivial - just ask 99 people about one guy. The majority would be the truthful answer, so you know your honest guys and your liars.  So, any advice? If you give the answer please put it in spoiler tags since I'm just looking for direction.


I'm entering into the latter half of my twenties, and I'm now faced with a question I've seen a few times before on this site: should I pay off my student loans or use the money as a down payment for a house?  The reason I'm asking instead of using the answers to those questions is that none of those questions have directly looked into the "opportunity cost" (caused by mortgage rate changes) of not purchasing a home. My student loans are on the order of 20K @ 5.5%. I already overpay them each month. I'm looking into purchasing a house around 200K - 300K. Paying my loans off early would save me a few thousand dollars over the loan's lifetime (8-10 years). However, even a minor fluctuation in interest rates would cause the "cost" of a home to go up tens of thousand of dollars or more over its lifetime. Assume I have enough cash currently to either make a 20% down payment on a home or pay off my student loans.  To me this seems like a simple decision (buy the house while interest rates are low, saving more money in the long run), but it seems to fly in the face of the nearly-ubiquitous advice of "get rid of debt first", so I'm wondering if I'm missing anything.  I've heard it said many times that you shouldn't view your home as a money-generating asset, but for the purposes of this question I am looking at purely the financial considerations.  Financial assumptions I have that may be wrong:   Freeing up the "cash flow" of not having a student loan payment each     month would make owning a home easier (there are a lot of "hidden     costs") When interest rates rise, so will the interest rate of other     investments (thus decreasing the "opportunity cost" of not buying a     house with low rates) Purchasing a home with less than a 20% down     payment (incurring PMI) is such a bad financial decision it is not     even on the table I understand that interest rates aren't guaranteed     to go up or down, but given the historical lows they are currently     experiencing, I personally expect them to rise over the next few     years.

I am 22 years old, I live in Atlanta, Georgia and I am a recent graduate. I approximately owe 22,000 dollars in student debt (all federal student loans at a fixed rate). My job pays me around 50,000 dollars annually. I am currently living with my parents, however, I will like to own a home soon.  My question is, if it is better to live with my parents until I can pay off my student debt and collect enough money for a down payment on a house or should I go about paying my student debt monthly for the next ten years or so and go ahead and purchase a home when I am able to save up enough money for a down payment?  I am hesitant in going with the former because 22,000 dollars is a lot of money and hard work. However, I don't think it will be in my best interest to pay 250 dollars every month for the next ten years.


Rodney Shewan points out that she should be read within a Romantic discourse as the story posits ‘an opposition of romantic commitment through passionate action to the relative safety of philosophic contemplation’ (43), although the ending appears unable to decide which of the two modes is the more attractive.  Source:  by Jarlath Killeen.    I would like to ask whether it is necessary to use the definite article before "more attractive"? Would it be a mistake not to use the article or to use the indefinite one?

I thought we need "the" before the word most.  Such as in:      She is the most beautiful girl.   But, I came across this sentence:     Most incredible is how many Islamic scholars have popped up over the past few years.   Why isn't there "the" before the word "most" ? I know "the" is not needed if the word afterward is an adverb as in:  I like it most.  However, "incredible" isn't being used as an adverb here.


I'm trying to write a function -- dict_reverse(inputDict) that returns a dictionary that has inputDict's keys and values swapped. (You can assume that no values are repeated in inputDict.)  I'm not really sure how to approach this problem as I am new to dictionaries. I understand their concept and how to use them, but I am stuck as for reversing them.  def dict_reverse(inputDict):     '''dict_reverse(inputDict) -> dict     returns dict with keys/values of inputDict swapped'''     # add my code here  testDict = {'adam':80,'betty':60,'charles':50} reversedDict = dict_reverse(testDict) print(reversedDict) # should output {80:'adam',60:'betty',50:'charles'} in some order   it should output {80:'adam',60:'betty',50:'charles'}

Given a dictionary like so:  my_map = {'a': 1, 'b': 2}   How can one invert this map to get:  inv_map = {1: 'a', 2: 'b'}


I use two planes to emit light.  How can I exclude them from being visible in the final render BUT still have their light?  Thanks, Armin

In my scene it is required to position the lights close to the main object like this:    How I can make the light source invisible to the camera?


i just bought a used iPhone 5c from someone and it has a restrictions passcode on it from the owner before me and I would like to take it off but dont know the passcode is  there anyway I could take It off .?

Is there a way to change the restrictions passcode on an iPhone without restoring the phone? I haven't forgotten the passocde; I just want to change it.


How can I copy a cd into my computer? I tried extract juicer but it doesnt have the mp3 option and when i choose another it brings the cd but when i put extract it doesn't do it. how can I do this, is it posible in ubuntu as in windows. or itunes to just extract tracks directly into your computer without having to burn a cd? thanks in advance for your help.

What are some CD ripping programs for Ubuntu? Can you list the Pros? What are the Cons? For each program there should be a screenshot, sources to install, and instructions to install and use.