User login

Needs Improvement

Workable solution needs improvement

Public key on a Debian server

http://www.debianadmin.com/ssh-your-debian-servers-without-password.html

To allow ServerA to SSH to ServerB without password, please try the following:

ssh-keygen -t rsa

Note: User here is root

This generates two files id_rsa.pub and id_rsa

Now, this needs to be copied to the authorized_keys file on ServerB

scp id_rsa.pub ServerB:~/.ssh/ServerA_rsa.pub

Ask Agaric: Drupal E-Commerce Payment Gateways

Can you list the other payment gateways?

Ecommerce has authorize.net (the payment gateway I've picked as best independent of Drupal), eurobill, eway, itransact, worldpay (they're terrible, reject way too many cards), and flexicharge. Not sure if that's just a module or a service. And that's just what's included with e-commerce proper, there are third-party contrib modules also.

Best way to do this is for you to pick the payment gateway you want, odds are Drupal has already been extended to work with it.

Moving a MySQL Database by Command Line Interface

mysqldump -u root -p internetbar_live > internetbar_backup.sql

(should gzip here)

This command compresses the file database.sql and replaces it -- deletes it -- with the compressed .gz file database.sql.gz

gzip database.sql

scp ben@66.135.41.18:~/internetbar_backup.sql internetbar_backup.sql

On the other end if you compressed, uncompress:

gunzip database.sql.gz

Note: tar is for making an archive of multiple files.

WSF Payment system - USSF and PayPal question

Ah-- ussf-tech is on my gmail account, along with drupal-dev, drupal-this, apache-that, journalism-this.... let's just say during WSF my personal e-mail backlog, which has no mailing lists, reached 500. I would have seen this within a couple days though when I do my review ;-)

Using Firebug with Drupal

For using Drupal with firebug:
http://www.lullabot.com/articles/quick_and_dirty_debugging#comment-2905

added this to drupal_set_message:

drupal_add_js('console.error('.json_encode(array('Drupal Backtrace'=>debug_backtrace())).');','inline');

Resolution

php get last item in an array

Untested:

$sys_name = current(end(implode($path)));

Resolution

Pre-validation of forms with JQuery- alphanumeric check

pipit: i'm trying to validate (ex age) field on drupal form, using javascript. I found the jquery.alphanumeric.js, add it via drupal_add_js. But how to "insert" in on the age field ?
[12:23am] rszrama: pipit: alphanumeric = some jquery plugin?
[12:23am] pipit: rszrama : duno, i just try learn jquery stuff today :). I got it from : http://itgroup.com.ph/alphanumeric/

E-Commerce v3 shipping bug

Popped up originally when enabling all the e-commerce modules I was interested in at once.

Came up again at odd times, and fairly certainly would have been an issue if we had actually tried to use shipping.

When I caused a parse error in a PHP-input format node:

user warning: Table 'internetbar_live.microcommerce_org_ec_shipping_product_attribute' doesn't exist query: DELETE FROM microcommerce_org_ec_shipping_product_attribute WHERE vid = 5 in /var/www/drupal-5-live/includes/database.mysql.inc on line 172.

On re-saving a page:

High Performance Drupal

High performance Drupal:

Yelvington says:

Drupal will run as many modules as you ask, but your php config may need tinkering. If you get the white screen of death, inadequate RAM is often the cause.

We run APC as well, which of course requires extra RAM as well.

And for best performance you can have mysql store the sessions table in RAM.

Agent Rickard says:

Syndicate content