Sort Drupal taxonomy terms by custom weight

Submitted by Anonymous (not verified) on Mon, 04/11/2011 - 16:24

I have got a problem with Drupals taxonomy sorting alghoritm. I got a taxonomy group for authors. I created a block with tagedelic "tags in authors". The problem there was that tagedelic couldnt put in right place author-names starting with letters like é, í, ò etc.

To solve it. I exported all terms and edited them in Notepad++. I sort terms by alpha, gave them an automated line number. And combined line number with Drupals weight range (scala +49 to -49).

update term_data set weight = -49+\1/3 where tid=\2 /* \3 */ ;

\1 is line number.

Adobe Flash CS4 cannot be installed (Creative Suite 4 Master Collection)

Submitted by Anonymous (not verified) on Fri, 04/08/2011 - 18:03

I am trying to install cs4 with flash. I have tried it 3 times:
1. just installing flash
2. updating cs4 incl. flah
3. deinstall-install cs4 master collection completely

Each time I get this error:

Error:
Error 1603. Error 1305.Error reading from file C:\Program Files (x86)\Adobe\Adobe Flash CS4\JVM\lib\rt.jar. Verify that the file exists and that you can access it.

Any idea how to fix it?

E: Sub-process /usr/bin/dpkg returned an error code (1)

Submitted by Anonymous (not verified) on Thu, 03/24/2011 - 21:28

I have a debian 64 bit lenny4 server and wanted to updatebind 9. Update is failed while I was trying with this commands:

 apt-get -y install bind9
 apt-get -y -f install bind9

I get this error at the end of shell window:
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is the full output:

apt-get -y -f install bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
bind9 is already the newest version.
bind9 set to manually installed.

apache2ctl fullstatus /usr/sbin/apache2ctl: line 119: www-browser: command not found

Submitted by Anonymous (not verified) on Tue, 03/15/2011 - 02:03

When I execute following command to see apache's full-status I get just an error message:

apache2ctl fullstatus 
/usr/sbin/apache2ctl: line 119: www-browser: command not found

Any idea how to monitore Apache on debian Lenny?

Thanks a lot!

how to create 64 bit int, unsigned long long variable with c++

Submitted by rex on Mon, 03/14/2011 - 23:39


#include <stdio.h>
#include <inttypes.h>


int main(){


  uint64_t x = -10033333000;
  int64_t y =  113333334445533;

  // print x as unsigned variable PRIu64
  printf("value of x is: %" PRIu64 ,x);
  printf("\n");
  // print x as integer variable PRIi64
  printf("value of y is: %" PRIi64,y);
  printf("\n");


  // this is the same like y
  unsigned long long z = -212121212121;
  printf("value of z is: %llu",z,"\n");
  printf("\n");


  return 0;
}

gcc  int64bit.c -o int64bit
int64bit.c: In function ‘main’:

How to find your operating system information & version on Linux

Submitted by Anonymous (not verified) on Fri, 03/11/2011 - 19:23

You can find your Kernel version with uname -a but it wont say if your operating system is Centos, Redhat, Ubuntu 9 or Debian 5. To display os-details we can read the content from /proc/version.

cat /proc/version
Linux version 2.6.26-2-amd64 (Debian 2.6.26-19lenny1) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Mon Oct 19 02:34:17 UTC 2009

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /home/mysite/public_html/includes/

Submitted by Anonymous (not verified) on Tue, 02/22/2011 - 00:29

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /home/mysite/public_html/includes/database.mysqli.inc on line 162

Why do I get that error abovee while trying to clear cache on a Drupal 6 site? My php memory is set to 256M.