User Profile

Collapse

Profile Sidebar

Collapse
mcptr
mcptr
Last Activity: May 1 '18, 03:53 PM
Joined: Apr 22 '18
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mcptr
    replied to beginner question about programming
    in C
    There is no "simplifyin g" possible. At the very bottom there are axioms (0, 1), true/false, electric potential, no potential. The rest is abstraction. Computers are calculators. Abstract (0,1) to a sequence of 8, a word, a sequence of words... An operation, a sequence of operations, a function, a library of functions, a system of libraries, frameworks, etc.
    Abstracting is just reinventing the wheel over and over again.
    Limited...
    See more | Go to post

    Leave a comment:


  • The easiest way to check if you can access the port at all is to telnet to it, e.g:

    telnet you_server_ip 5432

    (I'm assuming your postgres server listens on port 5432). The failure to connect has nothing to do with pg_hba (authentication part).
    Check your firewall as well.
    See more | Go to post

    Leave a comment:


  • Interesting use case. You will have to handle it in your application instead. There is no job scheduling in the database, and triggers are executed in the same transaction as the statement.

    I'm attaching a little snippet. I create the table for my data, another table to copy the data into (using a trigger), I add a trigger function and create a trigger.
    The trigger works as intended, but then I add a unique constraint on the table...
    See more | Go to post

    Leave a comment:


  • mcptr
    replied to beginner question about programming
    in C
    You can read some tutorials, but the most effective way to learn is:
    1. Find a simple problem to solve.
    2. Write a simple program to solve that problem.

    You will learn more advanced concepts along the way.

    An example:
    1. Write a text program that asks the user for a number. Print the number.

    2. Write a text program that asks the user for 2 numbers. Print the numbers.

    ...
    See more | Go to post

    Leave a comment:


  • Hey, how does your dataset look like?
    What are your expectations for the program? Have you written any code so far?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...