janooo 's Profile

Member since Oct 30, 2007, follows 0 people, 0 public groups, 653 public bookmarks (1152 total).

More »
Tags

Recent Tags:
Top Tags:

More »
Recent Bookmarks and Annotations

  • Howto: ISP-style Email Server with Debian-Etch and Postfix 2.3 on 2009-02-02







    • emaildestination
      @example.comkerstin@gmail.com

      Now imagine what happens when Postfix receives an email for 'john@example.com'.
      Postfix will first check if there are any aliases in the virtual_alias_maps
      table. It finds the catchall entry as above and since there is no more specific
      alias the catchall account matches and the email is redirected to
      'kerstin@gmail.com'. This is probably not what you wanted. So you would need to
      make the table rather look like this:

















      emaildestination
      @example.comkerstin@gmail.com
      john@example.comjohn@example.com

      More specific aliases have precedence over general catchall aliases. Postfix
      will find an entry for 'john@example.com' first and find that email should be
      "forwarded" to 'john@example.com' - the same email address. This trickery may
      sound weird but it is needed if you plan to use catchall accounts. So the
      virtual_alias_maps mapping must obey both the "view_aliases" view and this
      "john-to-himself" mapping. Create a cf file
      /etc/postfix/mysql-email2email.cf for the latter mapping:


      user = mailuser
      password = mailuser2007
      hosts = 127.0.0.1
      dbname = mailserver
      query = SELECT email FROM view_users WHERE email='%s'
  • Lookup table - Wikipedia, the free encyclopedia on 2009-01-03
    • In computer science, a lookup table is a data structure, usually an array or associative array, often used to replace a runtime computation with a simpler array indexing operation. The savings in terms of processing time can be significant, since retrieving a value from memory is often faster than undergoing an 'expensive' computation. Lookup tables are also used extensively to validate input values by matching against a list of valid (or invalid) items in an array and, in some programming languages, may include pointer functions (or offsets to labels) to process the matching input. In data analysis applications, such as image processing, a lookup table is used to transform the input data into a more desirable output format. For example, a grayscale picture of the planet Saturn will be transformed into a color image to emphasize the differences in its rings.
    • In computer science, a lookup table is a data structure, usually an array or associative array, often used to replace a runtime computation with a simpler array indexing operation. The savings in terms of processing time can be significant, since retrieving a value from memory is often faster than undergoing an 'expensive' computation. Lookup tables are also used extensively to validate input values by matching against a list of valid (or invalid) items in an array and, in some programming languages, may include pointer functions (or offsets to labels) to process the matching input. In data analysis applications, such as image processing, a lookup table is used to transform the input data into a more desirable output format. For example, a grayscale picture of the planet Saturn will be transformed into a color image to emphasize the differences in its rings.
    • 1 more annotations...
  • Debian Linux Networking and Network Tutorial On How To Set up A Linux Network on 2008-10-26
    • Public IP addresses are only available from an ISP. In most cases, such as with a dial-up, DSL, or cable modem, your ISP automatically assigns a single public address to your modem using PPP, bootp, or DHCP. This assigned address can change from time to time ("dynamic"). It requires no configuration on your part. Business customers typically obtain multiple public addresses from their ISP. These addresses do not change ("static"). Static addresses are needed for Internet servers that are referenced by DNS records such as Web servers, mail servers, etc. that are contacted using a domain name.
  • Input filter cache problems | drupal.org on 2008-09-25
    • Did the trick


      fersman4 - May 13, 2007 - 17:07

      This did the trick, though if anyone else encounters this problem, note that you must disable and then re-enable the module with the input filter after you add the 'no cache' op handler (see http://drupal.org/node/75462).


      Thanks Heine

  • Are price-comparison sites the real deal? - Insurance, Money - The Independent on 2008-08-29
    • How the comparison services make their money could have a bearing on the user experience. The sites receive upfront fees or retainers from the insurers they list, but they will also earn commission for sales or even just "clicks".

      "Some comparison websites are paid by insurers according to the number of clicks they receive, regardless of whether a sale is made," says James Harrison, chief executive of comparison site Insurancewide. The distinction is important, he adds, because if a site is paid per click, there is less pressure to match consumers with the right deal for them.

  • What is the Content Construction Kit? A View from the Database. | Lullabot on 2008-08-08
    • Fields are the tools with which you extend the data model of a content type. A field comes in three parts; its underlying data type, its input widget, and its rendered output. These three parts are referred to as the field, the widget, and the formatter.
    • Semantic meaning and sharing fields between content types


      One of the primary goals of CCK is that the fields have semantic meaning. What does this mean? It means that a field called "Age", while being in principle identical in nature to a field called "Number of toes you have", is intended to convey a different meaning. Both fields store data as an integer. Both should be configured to only allow positive numbers. Age, however, should always be understood to refer to the length of time something has existed and the number of toes you have, while still a number, should be understood to have a totally different meaning.


      Furthermore, it is often the case that a particular field with a particular semantic meaning needs to be used for more than one content type. For example, a content type called "Person" may have an Age field, and a content type called "Animal" may also have an Age field. Semantically, these fields should have the same meaning. CCK solves this problem by letting you use existing fields with any number of content types

  • PHP: Function arguments - Manual on 2008-07-25
    • Making arguments be passed by reference




      By default, function arguments are passed by value (so that if
      the value of the argument within the function is changed, it does
      not get changed outside of the function). To allow a function to modify its
      arguments, they must be passed by reference.



      To have an argument to a function always passed by reference, prepend an
      ampersand (&) to the argument name in the function definition:




      Example #2 Passing function parameters by reference





      <?php

      function add_some_extra(&$string)

      {

        
      $string .= 'and something extra.';

      }

      $str = 'This is a string, ';

      add_some_extra($str);

      echo
      $str;    // outputs 'This is a string, and something extra.'

      ?>
  • SQL Join on 2008-07-24
    • This WHERE statement is essential in making sure you get the correct output. Without the correct WHERE statement, a Cartesian Join will
      result. Cartesian joins will result in the query returning every possible combination of the two (or whatever the number of tables in the FROM statement)
      tables. In this case, a Cartesian join would result in a total of 4 x 4 = 16 rows being returned.
  • Creating a custom compound field for CCK - D'Arcy Norman dot net on 2008-06-27
      • Hi,


        I may be looking at this in the wrong way, so please correct me if I am, but this seems like it should be very simple to me:


        I would create a new content type, called University Degree. Then I would add the 4 required fields (Year, Type, Degree & School) as standard CCK fields, using whatever combination of select boxes or text boxes you require. There is no reason to use taxonomy for any of this data.


        Then, each user can create an unlimited number of University Degree’s (in practice this will obviously only be 1 or 2 each).


        Using Views, you could very easily create a list of each user’s degrees or any other list based on any of the 4 fields.


        I’m sorry if I’ve mis-understood your requirements, but this type of approach has always worked for me.


        Ian







  • Content Construction Kit Handbook | drupal.org on 2008-05-22

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo