You can find the results of your search below. If you didn't find what you were looking for, you can create or edit the page named after your query with the appropriate button.
Formatting Syntax:
31 Hitst use indention for deeper levels
- That's it
<code>
* This is a list
* The second item
* You... t use indention for deeper levels
- That's it
</code>
Also take a look at the [[doku>faq:lists|FAQ on... ) (tm) (r)
"He thought 'It's a man's world'..."
<code>
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
"He thought 'It's a man's world'..."
</code>
The same can be done to produce any kind of HTML
Creating a 4-Disk RAID Array:
24 Hits see what my system's partitioning looked like:
<code>
root@werewolf:~# fdisk -l
Disk /dev/sda: 80.0 G... 121601 976760001 fd Linux raid autodetect
</code>
==== Building the RAID Array ====
On my system,... h that instead of the default-recommended 64.
<code>
root@werewolf:~# mdadm --create /dev/md0 --verbo... reating array? y
mdadm: array /dev/md0 started.
</code>
Nice! The command gave my terminal back, rathe
Logical Volume Manager (LVM):
20 Hitsntu, its called 'lvm2' and you install it with: <code>apt-get install lvm2</code>
- Make sure the kernel module is loaded with: <code>modprobe dm-mod</code>
- Partition your harddisk(s) with ''fdisk... LVM2, but I started with LVM1 and migrated. :-)<code> Device Boot Start End Blocks... 1 24321 195358401 83 Linux
</code>
- Run ''pvcreate''((stands for 'physical volum
Ant:
20 Hitsled the ''<property>'' tag. Here's an example:
<code ant>
<project name="myProject" default="usage">
... <property file="myProject.props" />
....
</code>
This is the first two lines of an ant build scri... ' file should contain key/value pairs like this:
<code>
version=1.0.1
appname=Daily Reminders
uri=/reminder
sourceDir=/home/chris/myproject
</code>
You can use an equals sign or a colon as the separator,
Adding iLBC to Asterisk:
12 Hitsto Asterisk ======
The [[wp>Internet_Low_Bit_Rate_Codec]] is a freely-available stream processor that wo... ee your distribution's instructions for that).
<code bash>
cd /usr/src
tar xzf asterisk-1.4.25.ta... /scripts/
./get_ilbc_source.sh
cd ../..
cd codecs
#the codecs/ilbc directory is empty, so make it a symlink to
#the contrib/scripts/codecs/ilbc directory
rm -rf ilbc
ln -s /usr/src/asteris
Path-Based Authorization in SVN:
12 Hits Here is what my repository looks like on disk:
<code>
/svn
/repos <--REPOSITORY #1
... RY #3
/repos3 <--REPOSITORY #4
</code>
Each of the repositories contains all the direct... clares where the authorization rules are stored.
<code>
<Location /svn/repos>
DAV svn
SVNPath C:\svn... SVNAccessFile C:\svn\svnaccess.conf
</Location>
</code>
Here is the relevant section from my ''svnacces
Experiment #3:
11 Hitse to deal with every little persistence detail in code.
Enter [[http://code.google.com/p/jo4neo/|jo4neo... e are the simplified versions of those classes:
<code java 1>
/*..package and import statements here..... ring name;
/*..getters and setters here*/
}
</code>
Notice how simple the annotations are. The onl... est? 30 artists, 4 albums each, 11 songs each.
<code java 1>
/* Jo4NeoPerformanceExercise
* Chris Fre
Handling Compiler Warnings:
11 HitsUnchecked Cast using Class.forName =====
I have a codebase that uses the the [[wp>Proxy_pattern|Proxy Pa... ry simple example, without the utility function:
<code java>
class ForNameTest
{
public static void... Class myobject = myclass.newInstance();
....(code that uses myobject here)....
}catch ...
}
}
</code>
The problem with this approach is: the ''forName()'' method returns an object of ty
Finding Too-New Code:
11 Hits====== Finding Too-New Code ======
Occasionally you'll run into a situation where compiled source won't ... r, but I digress...)). So, given a large body of code and a relatively new version of the JDK, how can we scan the codebase to find code that won't run on an older version of Java? Simple! use the ''-so... parameter to ''javac''. Lets do an example:
<code java>
import java.util.*;
class GenericsTest
{
Fail2Ban:
10 Hitsto login as every user from 'a' to 'z' and more.
<code>
Jul 12 11:32:28 frankie sshd[32080]: Failed pass... user c from 202.130.109.230 port 51167 ssh2
...
</code>
**/var/log/apache2/error.log** - someone was sc... nning my machine for commonly-exploited software
<code>
[Mon Jun 18 20:39:09 2007] [error] [client 66.90... .81.8] File does not exist: /var/www/drupal
...
</code>
So what did I do about it? I found [[http://ww
Making the ABC Plugin work on a Hosted Account:
9 Hitsbc/syntax.php file, line 153-4 reads like this:
<code>
if (!is_executable($conf['im_convert'])) {
$... t']." (im_convert) is not executable.<br />";
}
</code>
This is inside the //checkExecs()// function, ... ed using a slightly different syntax, like this:
<code>
if (!is_executable($this->getConf('ps2pdf'))) ...
</code>
The difference seems to be $conf[..] versus this->getConf('..'). So I commented out the
ToolBar Hacking:
9 Hits<wiki>/conf/userscript.js'' and add the necessary code.
==== 'Format' Menu Items ====
''Format'' menu i... to add a format tag for the ''<note>'' plugin.
<code javascript>
/* creating a 'format' toolbar item *... "close":"</note>"}; }
</code>
==== 'Insert' Menu Items ====
''Insert'' menu i... **horizontal rule** button. Here's an example:
<code javascript>
/* creating an 'insert' toolbar item
Adding FCKW to Dokuwiki:
8 Hits questions about installing additional modules.
<code>
sudo perl -MCPAN -e 'install HTML::WikiConverter... CPAN -e 'install HTML::WikiConverter::DokuWiki'
</code>
2. Confirm that everything works before contin... ost future problems can be traced back to this.
<code>
chris@homemachine:~$ html2wiki --list
Installed dialects:
DokuWiki
</code>
3. I had to install the author's snippets plugin. This wasn't document
Installing GlassFish V3 Final on Ubuntu:
8 Hitsooking in the ''/etc/alternatives/'' directory:
<code>
me@myhost:~$cd /etc/alternatives
me@myhost:/etc/... 56 java -> /usr/lib/jvm/java-6-sun/jre/bin/java
</code>
See all the references to the ''java-6-sun'' fo... ere come from his blog entry: (Thanks, Stein!)
<code>
sudo useradd --system glassfish -d /opt/glassfis...
sudo chmod -R +x /opt/glassfish/glassfish/bin/
</code>
These commands create a user called 'glassfishv