Posts

Is there a way to automatically show the contents of a directory after a cd change in the windows cmd?

Is there a way to automatically show the contents of a directory after a cd change in the windows cmd? So i want to change directory and view the new directory contents automatically with out having to type cd folder and then dir on the next line. Is there a way to adjust the settings on the windows cmd prompt such that every time you change directory it lists the contents automatically? cd folder dir You can do two commands in one line like shown here stackoverflow.com/questions/8055371/… – Sunley95 Aug 22 at 13:49 2 Answers 2 Yes & No. What you can do, is make cd and alias for cd & dir : cd cd & dir doskey cd=cd $* ^& dir Note that these aliase are by standard only avaible for the session you define them. To use this alias persistent take a look at the tutorials I linked at the bottom. Explanation: doskey - create an alias/makro using doskey.exe doskey doskey.exe cd $* - Use cd with the argument given to the alias cd $* cd ^...

Want to travel to US on B1/B2 visa with wife

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 1 down vote favorite I am an Indian citizen and planning to travel to US on B1/B2 visa to attend a technical conference. My trips are paid by my employer. I want to take my wife also on this trip on B2 visa. I will be covering her expenses. We both are going to attend interview in some days. My question is what are the documents required for my wife? b1-b2-visas share | improve this question edited Apr 26 at 15:29 phoog 60.6k 9 131 189 asked Apr 26 at 10:19 Gaur 6 1 B2 visa and the standard documents required. – Musonius Rufus Apr 26 at 12:15 Your wife is not your sponsor here. I have edited that out of the question. – DJClayworth Apr 26 at 12:41 2 Your wife needs her own visa, she cannot travel on yours. Her application needs to be complete ina...

Arithmetic sequence in Ruby using #reduce

Arithmetic sequence in Ruby using #reduce The question is simple: implement an arithmetic sequence algorithm with params (first,n,c) where first is the first number in the sequence, n is the nth index in the sequence, and c is the addition number for the sequence. This is what I've done but so far it's giving me wrong answers. EDIT: found solution, below def nthterm(first, n, c) (1..n).reduce(first)memo, x end Test.assert_equals(nthterm(1, 2, 3), 7) Test.assert_equals(nthterm(2, 2, 2), 6) Test.assert_equals(nthterm(-50, 10, 20), 150) I figured it out thanks for the help! – Chris May 9 '15 at 1:09 Your description seems off, c appears to be a number, not an operator. – b4hand May 9 '15 at 15:54 c youre right I will change the description. I will also post the solution I was trying to go for for posterity – Chris May 9 '15 at 16:16 You shouldn't edit questions to include the answer. Instead you should post them as a answer. ...

Transit visa through Portugal [duplicate]

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 0 down vote favorite This question already has an answer here: Do I need a visa to transit (or layover) in the Schengen area? 2 answers Does a Ghana passport holder transiting through Lisbon Portugal en route to Morocco require an airport transit visa ? transit-visas portugal morocco ghanaian-citizens share | improve this question edited Apr 26 at 12:04 Traveller 4,223 1 9 23 asked Apr 26 at 10:23 Jose Darfoor 1 marked as duplicate by DJClayworth, Jim MacKenzie, Giorgio, Michael Seifert, Ali Awan Apr 26 at 13:35 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. add a comment  |  up vote 0 down vote favorite This question already has an answer here: Do I need a visa to transit (or layo...