How to Change Timezone of scrapydweb? - scrapy

I just Install scrapydweb in my system and my problem is I can't change the Timezone.
The Default is UTC+00:00 and I want to change it to UTC+03:30.
How Can I do this?
I change the timezone of my Linux server to Asia/Tehran.
But unfortunately this problem still not solved.

Related

PhpStorm: Local History displays no file content (empty), but the list of local history records is displayed

Local history records are displaying empty.
I use PhpStorm 2020.1.4 (But seems like the same thing was in 2020.1.2).
The host is Windows 10, Project files a stored on WLS2 (Windows Subsystem for Linux, Ubuntu 20.04)
*Git history works perfectly.
What can be the possible reason and how to fix it?
Sadly currently it does not work with \\wsl$\ kind of paths.
https://youtrack.jetbrains.com/issue/IDEA-241935 -- watch this ticket (star/vote/comment) to get notified on any progress.
UPDATE 2020-12-01: the aforementioned ticket has "Fixed" status now. It should be working since 2020.2.1 version.

openldapforwindows.exe (OpenLDAP for windows) version 2.2.29

Can anyone tell me from where I can download openldapforwindows.exe (OpenLDAP for windows) version 2.2.29? I tried various pages, but I was not able to get this particular version
I suggest you solve the problem instead of downgrading.
Your schema files need to be in DOS format not Unix format, i.e. line-terminated by \r\n.
you can download openldap for windows from http://www.userbooster.de/en/download/openldap-for-windows.aspx

Symfony2 Sonata admin make apache goes down on Windows 7

I'm learning Symfony and installed Sonata Admin Bundle. After opening /admin/login/ first time it opens, but after reload apache goes down. So after every page reload I need to restart apache.
I think it's my code bug, so installed working site on my local, but got same problem.
Don't know what info is important to put with question, please let me know and I'll update question.
UPDATE:
I got perl error:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can find solution for Linux, need to run this commands:
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
apt-get install locales
dpkg-reconfigure locales
But nothing for Windows 7.
Also some solutions on StackOverflow:
How to fix a locale setting warning from Perl?
Solution
Problem was in APC extension, you can disable it on your dev server, because it just extension for cahce. Works for me without it.

Postgres error "invalid value for parameter "TimeZone": "UTC""

Jupitor$ bundle exec rake db:create db:migrate
APP_development already exists
rake aborted!
PG::Error: ERROR: invalid value for parameter "TimeZone": "UTC"
: SET time zone 'UTC'
I keep getting this error when trying to migrate to my postgres database.
help would be much appreciated!
I had the same problem using the Postgres.app from Heroku. Rebooting my Mac solved it.
Restarting postgresql works.
To restart if you've installed it using homebrew, brew info postgresql will tell you to:
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
brew services restart postgresql
Try restarting the server. I updated Postgresql through Homebrew but forgot to restart the server and got this same problem. I believe it's due to the client and server versions not matching. psql started with:
$ psql
psql (9.1.4, server 9.1.2)
Type "help" for help.
Based on #MathiasJ's answer, instead of rebooting my entire machine, I ran
brew services restart postgresql#9.6
and my subsequent rake db:create worked perfectly.
I don't think I deserve any points for that but rebooting my Postgres.app (which is better than rebooting the whole system) solved it for me. The app doesn't show up on the Dock, you can find it on the navbar at the top of your window. Hope it helps anyway.
What actually happened is that you upgraded the postgresql server and cleaned-up your old folders but you haven't restarted your postgresql server. The server searched for the timezones files in the deleted dir
If nothing else fixes and you happen to be using homebrew, chances are you have issues with current links.
Assuming you have two Postgres versions installed, make sure you unlink and then link again. In my case, I needed the two versions working in order to run pg_upgrade. I have postgresql95 and postgresql so I did:
$ brew unlink postgresql
$ brew unlink postgresql95
$ brew link postgresql95
$ brew link --overwrite postgresql
That got me both working at same time. Hope it becomes helpful as it took me a good while to figure that out!
I also had this problem.
Login to the database then issue:
set time zone utc;
In my case restarting the database didn't help. Updating tzdata (apt-get install tzdata) did the trick for me.
just restarting the database helped. Homebrew updated my Postgres installation and I did not restart yet.
I had a similar problem after updating time zone information, that is, downloading the IANA database and compiling using zic.
My problem actually began after restarting PostgreSQL. I got invalid value for parameter TimeZone: UTC and restarting again did nothing to solve the problem.
It turns out my time zone information was completely messed up after the update. I had dangling symbolic links in /usr/share/zoneinfo. From a psql console, I got:
mydb=# SELECT * FROM pg_timezone_names;
ERROR: could not stat "/usr/share/zoneinfo/PRC": No such file or directory
I deleted all such dangling symlinks. After doing this, at least I could get SELECT * FROM pg_timezone_names to work, but still got the same invalid value... error.
What finally solved the problem for me was creating a new symlink:
cd /usr/share/zoneinfo
ln -s Etc/UTC UTC
After this, SET time zone 'UTC' worked correctly.
brew services restart postgresql did not fix for me. I'm sure rebooting would've worked, but I wanted to figure out the cause of the issue.
I believe the issue was caused for me because of two conflicting versions of postgresql.
I already had postgresql running with brew services, and then installed postgresql#11 which left postgresql running in brew services even after I uninstalled postgresql.
I fixed this by stopping the postgresql brew service, even though it wasn't listed in brew services list.
Steps to reproduce:
$ brew install postgresql
$ brew services start postgresql
$ brew install postgresql#11
$ brew uninstall postgresql
$ brew services start postgresql#11
How to fix:
$ brew services stop postgresql
Update: issue appears to have been deleted.
Opened an issue on Homebrew requesting that a formula's service should automatically be stopped upon uninstall.
Just a quick reference for those that are not using Postgres.app, but that start psql from the command line or through launchctl. You'll need to adjust the following for where you have your Postgres data and log files located at:
pg_ctl stop
pg_ctl start -D /usr/local/pgsql/data/ -l /usr/local/pgsql/log/server.log
For everyone using homebrew.
brew services restart postgresql did not fix for me too.
Rebooting fixed the issue. Thank you #JBallin, what you said is right.
Apparently, a similar thing also happens with Java/JDBC while connecting to Postgres.
The solution there is to tell JDBC to report the correct user timezone to Postgres while getting the connection.
So, explicitly mention the user timezone while starting the program helps:
java -Duser.timezone=America/Los_Angeles com.example.MyMainClass
Note:
Adding this here because this happens to be the first result on Google for this issue with connecting to Postgres!
Source:
This comment by Yuriy on the Jira support forum:
https://community.atlassian.com/t5/Jira-questions/invalid-value-for-parameter-quot-TimeZone-quot-quot-US-Pacific/qaq-p/839426

gedit automatic session saving or default session?

I'm used to eclipse's and notepad++'s behavior of automatically opening the files and tabs present on last exit. Does anyone know if there is a way to enable this in Gedit? The session management plugin that I'm using seems to require explicit menu selection of load and save in order to retrieve a session. Anyone know if there's a way to automatically restore the last session or to choose a default session?
Thanks.
There is a Session Saver plugin available in gedit-plugins package. Look at http://live.gnome.org/GeditPlugins
For gedit 3.10 (included in Ubuntu 14.04) use this plugin: https://github.com/raelgc/gedit-restore-tabs.
In case ~/.local/share/gedit/plugins/ does not exist.
Please create using mkdir -p ~/.local/share/gedit/plugins/
One more soulution https://github.com/disfated/gedit-plugin-reopen-tabs
I've been very happy with https://github.com/jefferyto/gedit-ex-mortis, which can automatically restore windows, including all tabs, between sessions (you just have to enable the option in Preferences). It requires gedit 3.12 or newer, and works great for me on version 3.36.