HOW to append pg_restore restoration log to file

I have tried multiple way to append log but not able to get. for example. pg_restore -U postgres -p5333 -d demodb < db_bkp_01_10_2019.dump >db_bkp_01_10_2019.log pg_restore -U postgres -p5333 -d demodb < db_bkp_01_10_2019.dump 2>db_bkp_01_10_2019.log pg_restore -U postgres -p5333 -d demodb < db_bkp_01_10_2019.dump 2&>db_bkp_01_10_2019.log I want log related to restoration like what command executed on db while…

Details

Django column does not exist error when created a mixed-case or upper-case column name

class uretimkaynaklari(models.Model): tarih = models.DateField() malzemeNo = models.CharField(max_length=30) operasyonKodu = models.CharField(max_length=30) isyeri = models.CharField(max_length=30) vardiya = models.CharField(max_length=30) sicil = models.CharField(max_length=30) uretimMiktari = models.FloatField() uretimSuresiMakina = models.FloatField() uretimSuresiIscilik = models.FloatField() def __str__(self): return self.sicil def operatoranalizi_func(request): cursor = connection.cursor() cursor.execute(“””SELECT id as id, tarih as tarih, sicil as sicil, uretimSuresiMakina as uretimSuresiMakina FROM operatoranalizi_uretimkaynaklari “””) rows…

Details

force redirection from https://example.com to https://www.example.com

I know this is a question that is asked several time. I tried several rules but redirection of https://example.com to https://www.example.com is not working. My current redirection rule in the apache vhost of non ssl is pasted below RewriteEngine on RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.example.com%{REQUEST_URI} [R=301,L,NE The above rule…

Details

Possiblity to pass a function to component ReactRouter

I would like to pass a function to component through ReactRoute. I have tried it in this way Main Component : var Main = createReactClass({ getInitialState() { return { mevents: [{id: 1, name: ‘Test’}, {id: 2, name: ‘Test1’}], } }, getStartEndMevent() { alert(“test”) }, render() { return ( <Router history={browserHistory}> <Route path=”/meventshow/:id” component={MeventShow} getStartEndMevent={this.getStartEndMevent}></Route> </Router>…

Details

Amazon SES: Message sending failed – The following SMTP error was encountered: 552 5.3.4 Message is too long

I was send mail with 7MB attachment file then i got below error. How can i solve it. 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-d-8ND3U1R22 5Eg0poz3kAZNziS4R0Qn hello: 250-email-smtp.amazonaws.com 250-8BITMIME 250-SIZE 10485760 250-STARTTLS 250-AUTH PLAIN LOGIN 250 Ok starttls: 220 Ready to start TLS hello: 250-email-smtp.amazonaws.com 250-8BITMIME 250-SIZE 10485760 250-STARTTLS 250-AUTH PLAIN LOGIN 250 Ok from: 250 Ok to:…

Details