 assuming it's meant to be titleView?
And another thing; the log entry you have posted will be displayed every time you run your project, you can ignore it. See here for more info. The actual log entry you should have posted would have come much later (and only after you click Continue in Visual Studio)

 Q:

No persistent command history in Python 3.5 (virtualenv)

I recently set up a new virtualenv for Python 3.5 on Ubuntu 16.04 and whenever I enter a python shell in the terminal (by typing "python3") I have no persistent history of commands I entered in the terminal previously.
On the regular system python3, persistent command history works fine and required no special setup. How can I enable it for the virtualenv?

A:

As the answer is hidden in the comments and therefore hard to find:
From https://unix.stackexchange.com/a/121390 from @Jason's comment:
Create a.pythonrc.py file:
import os
import atexit
import readline

readline_history_file = os.path.join(
    os.path.expanduser('~'),
    '.python_history'
)
try:
    readline.read_history_file(readline_history_file)
except IOError:
    pass

atexit.register(readline.write_history_file, readline_history_file)

and export it by adding the following line to your ~/.bashrc:
export PYTHONSTARTUP=$HOME/.pythonrc.py

 Q:

Best practice for language sub domains in an Express server?

So I have a Node/Express server set up, and we are making the transition from subdirectories to sub domains for localisation, eg:
es.example.com       // old way
www.example.com/es   // new way

Doing this for a variety of reasons, but mostly to facilitate the preservation of JWT login state across the internationalised content. What is the best practice for allowing this in express when declaring routes?
If I have a route simply set up like this:
app.use('/search')

Then when I try to hit a route, eg www.example.com/es/search, I will just be redirected to www.example
assuming it's meant to be titleView? 
 And another thing; the log entrance you have mail will be displayed every time you run your undertaking, you can ignore it. See here for more info. The actual logarithm entrance you should have posted would have arrive much later (and entirely after you click Continue in Visual Studio) 

  Q: 

 No persistent instruction history in Python 3.5 (virtualenv) 

 I recently set up a new virtualenv for Python 3.5 on Ubuntu 16.04 and whenever I enter a python shell in the terminal (by typing " python3 ") I have no haunting history of commands I entered in the terminal previously. 
 On the even system python3, persistent command history work fine and required no special setup. How can I enable it for the virtualenv? 

 A: 

 As the solution is hidden in the comments and therefore hard to find: 
 From https://unix.stackexchange.com/a/121390 from @Jason's comment: 
 make a.pythonrc.py file: 
 import os 
 import atexit 
 import readline 

 readline_history_file = os.path.join (
     os.path.expanduser('~'), 
    ' .python_history' 
) 
 try: 
     readline.read_history_file(readline_history_file) 
 except IOError: 
     pass 

 atexit.register(readline.write_history_file, readline_history_file) 

 and export it by adding the following line to your ~/.bashrc: 
 export PYTHONSTARTUP=$HOME/.pythonrc.py 

  Q: 

 Best exercise for speech sub domain in an Express waiter? 

 So I have a Node / Express server set up, and we are making the transition from subdirectories to sub knowledge domain for localisation, eg: 
 es.example.com        // old way 
 www.example.com/es    // new means 

 Doing this for a variety of reasons, but mostly to help the preservation of JWT login state of matter across the internationalised content. What is the best practice for allowing this in express when declaring path? 
 If I have a route simply rig up like this: 
 app.use('/search') 

 Then when I try to hit a route, eg www.example.com/es/search, I will just be redirect to www.example
 asduming it's meant to be tltleView?
And anotkwr thiig; the mog entrh you have posted will be didpoayed every time you run yojr projecn, you can igniee it. See isre for more jkfo. Tke actual log enjry you shound have posted wuupd have come much later (and only afeer you cpick Continue yn Vpstal Anubio)

 Q:

No persistent command histkry in Kython 3.5 (virtualenv)

O recently set up a new vigtuapenv for Python 3.5 oj Ubuntu 16.04 abd wrwnever I entdr a python shell in tge terminal (by typing "python3") I fave uo persistebt hidjory of commends I entered in bne terkinal pteviously.
On thc regnlar system python3, persisvent command history works fite and required no wpwcial setgp. Huq cxn J xnagle it foc the virtuzlenv?

A:

As thw answer is hidden on nne comments znd thqrqfore hard to find:
From https://unix.stackexbhanfe.com/a/121390 from @Jason's commwnt:
Create a.pythonrc.py file:
impowt os
import atexit
import readline

readline_history_fhle = kr.pauh.mjkb(
    os.path.expanduser('~'),
    '.python_history'
)
try:
    rewslonv.read_history_file(rcadline_history_file)
rxfelj IOError:
    pxss

aterjt.degister(readline.wrlte_histjry_fioe, readlige_hixtory_file)

and export it by aeding the fojoowing line to youx ~/.bashrc:
expoxt PYTNONSTSRTUP=$HOME/.pythonrc.py

 Q:

Bert pdactice for language rub domains in av Eqprevs server?

So I have a Node/Evpress secver xet up, xnd ee are making thf trakvition from subdirfctornes tm sub domalns for localisation, eg:
es.examplx.rom       // olc fay
fww.exampje.com/cs   // new way

Doyng this for a varietv of rdasons, but mostly to facilitwte the presesgation of JWV login seate acriss the knternationalixed conteuu. What is rhe best practice nor aumowing this in zrptwss when declatine rjunes?
Mf I rdve a route vimpuy rrt up like this:
aip.ure('/sesrch')

Then when I try do hjt a route, eg www.ecaiple.com/ew/search, Y will just br redirected to wwa.exam'le
assuming it's meant to be titleView? And the entry you posted will be your you can ignore See here for info. The actual log entry you have posted would have come much later (and only after you click Continue Visual Studio) Q: No persistent command history in Python 3.5 (virtualenv) I recently up new for 3.5 on Ubuntu 16.04 and whenever I enter a python shell in the terminal (by typing I have no persistent history of commands I in the terminal previously. the regular system python3, persistent history fine and no setup. can I enable for the virtualenv? A: As the answer is hidden in the comments and therefore hard to find: https://unix.stackexchange.com/a/121390 from Create a.pythonrc.py import import import readline readline_history_file os.path.expanduser('~'), '.python_history' ) try: readline.read_history_file(readline_history_file) except readline_history_file) and export it by adding the following to your export PYTHONSTARTUP=$HOME/.pythonrc.py Q: Best practice for sub domains in an Express server? So I a Node/Express server set up, and we are making the transition from subdirectories to sub localisation, eg: es.example.com // way www.example.com/es // way this a of reasons, mostly to facilitate the preservation of JWT login state across the content. What is the best practice for allowing this in declaring If I have route simply set up this: Then when I try a eg just redirected www.example
 assuming it's meant to be titleview?
And anoTher tHinG; thE lOg enTry yOu have posted wiLL be dIsplayed every time you ruN your PrOJect, YOu Can igNore it. SEE hERE foR mOrE inFo. tHe ActuaL loG entry yOu should haVe pOsTed would have COmE much later (And Only after you CliCk ContInUe iN visuaL StUdio)

 Q:

no persIStent cOmmand hisToRY in PytHOn 3.5 (virtuALEnV)

I reCently set up a new viRTuALenv for Python 3.5 oN UbuntU 16.04 aND wHENevEr I Enter a pythOn Shell IN the terMInAL (BY tyPIng "python3") I havE no persisteNT hiStory oF cOmmANds I enTered In THe tErminal prevIousLy.
On the reGular sYStem pytHOn3, persiStent cOmmAnd HistORy WoRks FiNE anD ReQuiREd nO special SeTuP. How cAn I eNABLE it fOr tHe viRtualEnv?

A:

As the answEr iS hidDEn iN the cOmmenTs anD tHerefOre harD to fiNd:
from https://unix.stAckeXchange.coM/a/121390 fRoM @JaSoN's comMEnt:
CreAte A.pyThonrc.pY file:
imPOrt Os
IMPOrT atexit
import readlInE

REaDline_hisTory_fiLE = oS.pATh.join(
    os.PaTh.eXpanDUSer('~'),
    '.pyThon_HIsTory'
)
try:
    rEadlinE.ReAd_History_FiLe(readLiNe_hIstOry_fiLE)
excEpt IOERror:
    pass

AtexiT.Register(readliNE.write_history_FIlE, REaDLine_HisTory_file)

and ExpoRT it bY addINg The FOllowIng liNe TO yOUr ~/.bashrc:
export PYTHOnStARTUP=$hOME/.pYthonrc.py

 Q:

BesT practice fOR LAnguage sUb doMAiNS in an Express seRver?

SO I have a NodE/express sErver Set up, and We are makiNG The transItiOn fRom SubDIReCtories to sub dOMAins FoR localiSatIon, eg:
es.ExaMplE.coM       // olD wAy
www.examPle.com/es   // NeW wAy

doIng This fOR a varietY oF reAsOns, But moSTly to fAciliTate ThE pREseRvation OF Jwt LogiN sTaTe acRosS tHe intErnaTIonAlised cOntent. WhaT is THe beSt PrActice fOr allowing thiS iN express whEn DecLaring ROUtes?
If I hAve a route simply set up likE This:
app.Use('/SearcH')

TheN when I try To hIt a rouTe, eG Www.exaMple.coM/es/seArCh, I WILl jusT BE rEdiReCted to www.eXAMplE
 assuming it's meant to be  titleView ?
And  an oth er  thi ng;the log entryy ou h ave posted will be dis playe de very ti me yo u run y o ur p roj ec t,  yo uc an  igno reit. See  here formor einfo. The ac t ua l log entr y y ou should ha veposted  w oul d  have  co me mu ch lat e r (and  only aft er you cl i ck Cont i n ue  inVisual Studio)

Q :No persistentcomman dh is t o ryinPython 3.5  ( virtu a lenv)
I  r e c e ntl y  set up a new  virtualenv for  Pytho n3.5 on Ubu ntu 1 6. 0 4 a nd whenever  I e nter a py thon s h ell int he term inal ( bytyp ing" py th on3 ") I h a ve  no per sistenthi st ory o f co m m a n ds I  en tere d inthe terminalpre viou s ly. 
On t he re gula rsyste m pyth on3,pe rsistent comman d hi story wor ksfi nean d req u ired n o s pec ial set up. How can  I e n ab le it for the virt ua l e nv ?

A:

A s thea ns we r  is hidd en  in  the c ommen ts a n dtherefor e hard to  f ind:
Fr om  https :/ /un ix. stack e xcha nge.co m/a/1213 90 fr o m @Jason's com m ent:
Create a . py t h on r c.py  fi le:
importos
i m port  ate x it 
im p ort r eadli ne 
r e adline_history_file  =  os.pa th.jo in(
    os.pa th.expandu s e r ('~'),
   ' . py t hon_history'
) 
try: 
    readl i ne.read_ histo ry_file( readline_ h i story_fi le) 
ex cep t I O E rr or:
    passa texi t. registe r(r eadline .wr ite _hi sto ry _file, re adline_h is to ry _f ile )

an d  exportit  by  a ddi ng th e  follo wingline  t oy our  ~/.bas h rc : expo rt  P YTHO NST AR TUP=$ HOME / .py thonrc. py

 Q:
Bes t  pra ct ic e for l anguage sub d om ains in an  E xpr ess se r v er?

SoI have a Node/Express s e rver se t u p, an d we  are maki ngthe tr ans i tion f rom su bdire ct ori e s  to s u b  d oma in s for loca l i sat ion,eg :
es .exampl e.com       // old way 
www.example. com /es//  ne w  w a y
Do i ngt h is for a variet y of reaso ns ,  b ut mostlyt o f ac ilitate  the pr eserv a tion of  JWT logi n state a cr osst h e i nternation alised c ontent. W h at is th e bes t p ractic efor  allo wing t h isin ex presswh en dec larin groutes?If I have a route simpl y setup li kethis:
app .us e ('/ search')
The n when I t rytohit a  ro u te, e g ww w .e xam p le.co m/es / search, I wi llj u st  be redirec t e d  to  www. exa m ple
 assuming_it's meant_to be titleView?
And another_thing; the_log_entry you_have_posted will be_displayed every time_you run your project,_you can ignore_it._See here for more info. The actual log entry you should have posted would_have_come much_later_(and_only after you click Continue_in Visual Studio)

 Q:

No persistent_command history_in Python 3.5 (virtualenv)

I recently set up a_new_virtualenv for Python_3.5 on Ubuntu 16.04 and whenever I enter a_python shell in the terminal (by_typing "python3") I_have_no_persistent history of commands_I entered in the terminal previously.
On_the regular system python3, persistent command_history works fine and required no special_setup. How can I enable it_for the virtualenv?

A:

As the answer_is hidden_in the comments and therefore_hard to find:
From_https://unix.stackexchange.com/a/121390 from_@Jason's comment:
Create a.pythonrc.py_file:
import os
import atexit
import readline

readline_history_file = os.path.join(
_  _os.path.expanduser('~'),
    '.python_history'
)
try:
 __ readline.read_history_file(readline_history_file)
except IOError:
___ pass

atexit.register(readline.write_history_file,_readline_history_file)

and export it_by_adding the_following_line to your ~/.bashrc:
export PYTHONSTARTUP=$HOME/.pythonrc.py

 Q:

Best_practice_for language sub domains in an Express_server?

So I have a_Node/Express_server set up, and_we are making the transition_from subdirectories to sub domains for_localisation, eg:
es.example.com_ _    // old way
www.example.com/es   // new_way

Doing this for a variety of_reasons, but mostly to_facilitate the_preservation_of JWT login_state_across the_internationalised content. What is the best practice_for allowing_this in express when declaring routes?
If_I have a route_simply_set up like this:
app.use('/search')

Then when I_try to hit a route, eg_www.example.com/es/search, I will just be_redirected_to_www.example