Skip to main content

Sponsors

Drupal

Trial: jsMath

Posted in

\(x^2 + y^2 + 1\)
[math]\root 3\of {1-\pi x^2}[/math]

Trial: Mimetex with mathfilter

Posted in

ax^2 + bx + c = 0

x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

Code Highlight Test

Posted in

Highlight the code from http://www.vyvy.org/main/node/129 using Texy!

#include <sys/select.h>
#include <sys/time.h>

...
fd_set rset_backup, rset, wset_backup, wset;  // Declare the descriptor sets
int maxfdp = 0;
struct timeval timeout_backup, timeout;
int retval;

/* The descriptor sets */
FD_ZERO(&rset_backup);  // Clear all bits
FD_SET(fd_read1, &rset_backup);  // Set the bit
FD_SET(fd_read2, &rset_backup);

FD_ZERO(&wset);
FD_SET(fd_write1, &wset_backup);
// FD_CLR(fd, &wset_backup);   // Clear the bit for fd

maxfdp = (fd_read1 > fd_read2) ? fd_read1 : fd_read2;
if (fd_write1 > maxfdp)
  maxfdp = fd_write1;

/* Timeout: 2.3 seconds */
timeout_backup.tv_sec = 2;
timeout_backup.tv_usec = 300;

for (;;) {
  rset = rset_backup;
  wset = wset_backup;
  timeout = timeout_backup;  // Linux's select() can modify timeout
  retval = select(maxfdp + 1,
                  &rset,  // Ready for reading?  Can be NULL.
                  &wset,  // Ready for writing?  Can be NULL.
                  NULL, // Have an exception condition pending?  Can be NULL.
                  &timeout  // Can be NULL.
                  );

  if (retval > 0) {  // Positive counts of ready descriptors
    if (FD_ISSET(fd_read1, &rset)) {
      // fd_read1 is readable
     ...
    }
    if (FD_ISSET(fd_read2, &rset)) {
      // fd_read2 is readable
     ...
    }
    if (FD_ISSET(fd_write1, &wset)) {
      // fd_write1 is writable
     ...
    }
  }
  else if (retval == 0) {  // Timeout
    // Linux (but not on most other systems) reflects the amount of time not slept in 'timeout'.
    ...
  }
  else {  // retval < 0
    // Error
    ...
  }
}
...

Trial: Attached Node Drupal Module

Posted in

Here attaching a node:

[node:35]

Finished attached.

Trial: FileManager + Attachment Drupal Modules

Posted in

Attaching two picture files:

Attaching a text file with list of good computing books.

Trial: Texy!

Posted in

Paragraph 1: Text1 … con't text1 …

Paragraph 2: Text2 … con't text2 …

Paragraph 3: Text3 … wrap here
con't text3 …

Use blue color text.

Center text.

Title II

Subtitle II

another subtitle

Title I

Subtitle I



  • – – – – –
  • * * * *
function func($arg) {
  $a1 = $b[1];
  $a2 = $b[5];
  return ;
}
class c : public a
{
   public:
   c() : y(100) { }
   virtual ~c() { }
   int method(int x) ;
   protected:
   int y ;
} ;

int c::method(int x) {
   return x*y ;
}

Trial: Smileys

Posted in

:) :-) :smile: Smiling
;) ;-) :wink: Eye-wink
:-( :sad: Sad
:D :-D :lol: Laughing out loud
}:) }:-) :evil: Evil
:P :-P :tongue: Sticking out tongue
:O :-O :shocked: Shocked
:? :-? :puzzled: Puzzled
8) 8-) :cool: Cool
:jawdrop: Jawdropping!
:sick: :barf: Barf!

Trial: Drutex for Latex

Posted in

Solving:

$ax^2 + bx + c = 0$

Then

$x = \frac{-b + \sqrt{b^2 - 4ac}}{2a}$

or

$x = \frac{-b - \sqrt{b^2 - 4ac}}{2a}$

First blog entry in Drupal

Posted in

My fisrt blog entry in drupal. This system is complicated. They should include more help text in the administration pages.

Syndicate content