Hi
my $sql = <<ENDSQL;
ENDSQL
# ^-- no leading space
# or
# v-- same amount of spaces here ...
my $sql = <<' ENDSQL';
ENDSQL
# ^-- ... and here
Feherke.
http://free.rootshell.be/~feherke/
Hi
You could point FireFox users to the Register protocol article, then anyone interested in using those links should set up their own browsers.
There is also the Web-based protocol handlers, which could help doing something as above, partially automated. But I was never interested in this...
Hi
Sorry for the obscurity of my question, I am not allowed to post proper names. The customer is not personally my, but our company's.
There is a customer who has 1 site and 3 domain names pointing to the same content. When searching in Google, only matches from 2 of them are listed. When you...
Hi
The readlink command is usefull to find out the target of a symbolic link. Any idea for similar commands, in case readlink is not available ?
Ok, I can write a function, thats not a problem. ( No error checking in below codes. )
readlink() { ls -ld "$1" | sed 's/.*-> //'; }
# or
readlink()...
Hi
I want to run a script from another and I would like to source it, but there are small problems :
Find out if it was sourced or runned
Get the source file's name and path
Exit from the sourced file only
As I read the bash man page, all above seems impossible. Do anyone know any solution ...
Hi
I use gawk 3.1.1 for Linux. I would like to read from a file which contains fixed length records, without separators. The file could be huge, and probably I do not need all records.
How can I read, lets say, 256 characters from a file, with [g]awk ?
Thanks,
Feherke...
Hi
I wish to create my little collection of awk functions and use them in complex scripts. And to run the complex script as an executable, not specified as an argument.
Sadly, after a lot of googling and man reading I not found any solution for awk, gawk or mawk :
extension() function loads...
Hi
I need to find out the signal name for a signal number. For example, for the number 15, to get the string SIGTERM.
I use Bash, and I'm interested in solutions other then using an array. ( Handmade, or generated from kill -l or trap -l output. )
Feherke.
http://rootshell.be/~feherke/
Hi
While the COPY is faster then INSERT, I will use it. But for now I can only write it in a file, then run psql -f. Is any way to do this from a program ( in my case Kylix ), or is too PostgreSQL specific, to use it from outside ?
Or, is another possibility to add new records en-gros ( I have...
Hi
I need to display a list of subtotals for the records which have the same number field, but in the original order, provided by the id field. The following generates error, because the distinct and the order by expressions are not the same.
SELECT DISTINCT ON (number) number, sum(value) FROM...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.