Username and usage issue in postgresql psql terminal - postgresql

I want to follow the steps shown in the screenshot on the psql screen, but even when I just open the screen, I get a different screen and I get an error every time. There is no website that I haven't visited for days, and there is no video that I haven't watched, but I still haven't been able to reach the result. is there anyone who can help?
this is my own terminal
this is what i want to do

You are running some kind of wrapper program around psql (maybe a .bat file?). Find the real psql.exe and run that. Maybe also figure out what created the bat(?) file and uninstall that, or at least take it out of your PATH.

Related

This error keeps showing up on my desktop

This Javascript error keeps showing up on my desktop, and when i delete it another one will pop up.
Can anybody with knowledge about this please help me?
Oh the image is on Danish so yeah. Translated it says that there was a script-error with the script, and asks if i still want to play the script on this site.
Solution Found
Go to Control Panel
Go to Programs and Functions
See if there is any program that refers to the url-error-message you got, and if there is, delete it.
Note If the program is a program that you need to have for running your system or just an important program, don't delete it, there could be other ways to fix it.
Other ways to fix it
1. Start up the installer that you used to install the program, if there is a button that says "Repair software/program" or something like that; tap the button.
If there isn't a button that says "Repair software/program" (or something like that); try to install the program again.

Ubuntu 16.04 suddenly starts booting into Kodibuntu or something like it

Last week, I saw a dropdown next to the login field for Ubuntu with a few "boot options" or something like that, one of them being Kodi. I was curious and wanted to see what it was so I picked Kodi and rebooted. Nothing happened, and I forgot about it.
Today I had to reboot for another reason and Ubuntu is now booting into a fullscreen version of kodi (Kodibuntu?) with seemingly no way to exit. I can't alt-tab, I can't open a terminal (neither ctrl-alt-t or f1/f4 work). I looked in the system settings and I see no way to revert it. I can see that my document's are still there using Kodi's file browser but can't access any of them. I really need this fixed today, please help.
Check out this documentation on kodibuntu for how to swap back
you can exit the full screen version of kodibuntu by following the steps outlined in the link above.
Sorry if this is unclear but a screenshot would be useful to know what screen you're on.

Cannot run SQL script on Oracle Database 10g Express Edition

I'm trying to upload a script, and the file is being uploaded fine, but in the Script Editor window where I'm going to actually run the script, the entire file content is shown on one line and the whole edit area is in red. I'm not being able to run that script. Also if I create a new script from the editor, the edit area is again in red and I'm not able to save it. Please help me understand what's to be done so that I can run my SQL scripts.
Ok, so I figured it out by myself. So I'm answering my question so that it may help anyone else who have had this weird problem. When you open the database home page on any browser other than IE, this problem occurs, and you won't be able to do a single thing with your script. So always open your database home page on IE if you have to upload some data. For all other tasks, any other browser is fine. Cheers.

PgAdmin sometimes crash when clicking SQL query button

I know this question may be seen as a duplicate with this one. I even have almost the same configuration (PostgreSQL 9.1.3, pgAdmin III 1.14.3, 32 bit Windows). What is the difference and the reason I ask a new question is that my PgAdmin doesn't crash always (just mostly) and that the cause of the problem is different - in linked question the problem was with missing adminpack, but I have adminpack installed and it works well, so the answer for linked question doesn't work for me.
Do you have any ideas where the problem could be?
EDIT: PgAdmin doesn't crash at other occasions (well, unless I do someting that obviously deserves a crash), just while trying to open SQL query window. It's worse and worse as time goes on, now it's almost "always". The problem is not "connection specific" - frequence of crashing is the same for different server connections.
EDIT2: I reinstalled PgAdmin and nothing have changed. I'm starting to suspect PostgreSQL 9.1.3 or even PostGIS 2.0.1 of the problem.
Goto run and type %appdata% and go inside postgresql folder.
rename or delete pgadmin_histoqueries.xml file.
try opening the SQL query editor again.
Good luck!
PgAdmin crashes on me all of the time, but you eventually learn to be gentle with it.
Particularly, if it is waiting for a response from the PostgreSQL server, the window may freeze up until a reply is returned and parsed. When this happens, do not close the window, just wait.
Also, if you attempt to edit two different objects on the same parent, save one and click save on the other, this crashes the program.
My advice would be to only do one thing at a time, be patient, and don't be in a hurry to kill the process when it freezes up.
There can be a great many different possible reasons for crashes. Some of them have been fixed in the latest version 1.16.1, release just last week.
You could try the new version and see if that fixes your problem.
Pgadmin3 was really unstable after installation on my ubuntu 12.04 LTS. It either freezes or crashes even while doing very basic things like looking data in a table or list tables in a schema etc., I almost gave up and started using the command line psql and luckily stumbled on this blog which recommended to remove the pgadmin3 history file to solve the freezes and crashes. It worked for me.

Unable to use Heroku from the commandline

Currently I'm making a Facebook app with Heroku, I did as the instruction says, but then I get stuck after installing heroku-toolbelt. I opened cmd.exe, typed something like 'heroku', but it results in an error as follows
C:/Program Files/Heroku/bin/heroku:15:in []': code converter not found (UTF-16LE to Windows-1258) (Encoding::ConverterNotFoundError)
from C:/Program Files/Heroku/bin/heroku:15:in'
I don't know what is the problem, searching around but there's no luck at all.
Does anyone have an idea of what I am doing wrong?
Just typing heroku in the command line won't do anything. First go to the directory where you have set up a folder to put all the files of your app from command line using DOS commands. Then type heroku login. It'll prompt you for user credentials for your heroku account. Enter those correctly and you're good to go from there.
I encountered the same error as you did. Windows-1258 is text code for Vietnamese language. I figured something like to stop converting text code automatically to Windows- 1258.
So here is how it works for me. Hope it works for you too. Simply go to Control Panel --> Change keyboards or other input method --> Administrative tab --> Change System Locale (from Vietnamese to English (United States) for example). Restart and work like a charm!
I need to dig around some more and find a way to build in this kind of functionality, but as a work around, if you open a new command prompt and type "chcp 1252" prior to running any commands it will switch command.exe to a compatible code page. That should prevent encoding errors of this type. Sorry for the inconvenience, but it should at least function as a stop gap and I'll work to integrate a fix into the tool itself. Thanks!