Showing posts with label stoopad tech. Show all posts
Showing posts with label stoopad tech. Show all posts

Wednesday, March 31, 2010

MS Word - Different Header and Footer

I've made some images for the page numbering that I'd like to use for my print design. But just so I don't need to be the only person doing all the art work, I've also used MS Word for consolidation instead of producing the pages in Photoshop or Magiq. Now, don't get me wrong, MS word is my defacto word processor. However, I've never used it to produce any of my print work, so to speak.

So I have a problem, I want to use the page numbering images I've made for the pages. Here's how:

http://www.ehow.com/how_5018106_create-different-headers-word.html

However, at step 13, I've used "Next Page" instead of "Continuous".

Wednesday, July 29, 2009

Windows Movie Maker: Superimpose xml

Found that superimposing image over video is not so intuitive in Movie Maker. Will try it out tonight!

Here's an example found on: http://www.windowsmoviemakers.net/Forums/ShowPost.aspx?PostID=194964&


<title name="PapaJohn Overlay 25" iconid="13">
<param name="InternalName" value="TitleStandard">
<param name="Description" value="Superimpose image 1">
<param name="LogoBitmapFilename" value="Overlay25.png">
<param name="LogoRect" value="0.00 0.00 1.00 1.00">
<paragraph>
<param name="IsOneLine" value="true">
<param name="BoundingRect" value="1.00 1.00 1.00 1.00">
<param name="MaxCharacterCount" value="32">
</paragraph>
</title>
<title name="PapaJohn Overlay 26" iconid="13">
<param name="InternalName" value="TitleStandard">
<param name="Description" value="Superimpose image 2">
<param name="LogoBitmapFilename" value="Overlay26.png">
<param name="LogoRect" value="0.00 0.00 1.00 1.00">
<paragraph>
<param name="IsOneLine" value="true">
<param name="BoundingRect" value="1.00 1.00 1.00 1.00">
<param name="MaxCharacterCount" value="32">
</paragraph>
</title>
<title name="PapaJohn Overlay 27" iconid="13">
<param name="InternalName" value="TitleStandard">
<param name="Description" value="Superimpose image 1">
<param name="LogoBitmapFilename" value="Overlay27.png">
<param name="LogoRect" value="0.00 0.00 1.00 1.00">
<paragraph>
<param name="IsOneLine" value="true">
<param name="BoundingRect" value="1.00 1.00 1.00 1.00">
<param name="MaxCharacterCount" value="32">
</paragraph>
</title>
</titledll>
</titles>
</transitionsandeffects>

Thursday, May 21, 2009

Vista TWEAKS

Without much emotional attachment, I am now on Vista. The good thing is, most softwares install on this OS. Bad? I am still getting around the flow of it. But gosh... talk about fancifully slow.

So here are some guides on tweaking and optimising which I cannot guarantee works.

At least my batch scripts still works here. Hehe. Cool...


http://www.tweakhound.com/vista/tweakguide/page_2.htm

http://www.iamshadowlord.com/2007/06/windows-vista-optimization.html



Getting rid of that annoying activeX popup in Alex, under "Removing the Internet Explorer Toolbar Alert":

http://www.databoysoftware.com/allow.html

Thursday, March 26, 2009

Perl RegEx reference

Conventions

The following conventions are used in the examples.

   metacharacter(s) ;; the metacharacters column specifies the regex syntax being demonstrated
=~ m// ;; indicates a regex match operation in perl
=~ s/// ;; indicates a regex substitution operation in perl

Also worth noting is that these regular expressions are all Perl-like syntax. Standard POSIX regular expressions are different.

[edit] Examples

Unless otherwise indicated, the following examples conform to the Perl programming language, release 5.8.8, January 31, 2006. The syntax and conventions used in these examples coincide with that of other programming environments as well (e.g., see Java in a Nutshell - Page 213, Python Scripting for Computational Science - Page 320, Programming PHP - Page 106 ).

Metacharacter(s) Description Example
Note that all the if statements return a TRUE value
. Normally matches any character except a newline. Within square brackets the dot is literal.
$string1 = "Hello World\n";
if ($string1 =~ m/...../) {
print "$string1 has length >= 5\n";
}
( ) Groups a series of pattern elements to a single element. When you match a pattern within parentheses, you can use any of $1, $2, ... later to refer to the previously matched pattern.
$string1 = "Hello World\n";
if ($string1 =~ m/(H..).(o..)/) {
print "We matched '$1' and '$2'\n";
}

Output:

We matched 'Hel' and 'o W';

+ Matches the preceding pattern element one or more times.
$string1 = "Hello World\n";
if ($string1 =~ m/l+/) {
print "There are one or more consecutive letter \"l\"'s in $string1\n";
}
Output:

There are one or more consecutive letter "l"'s in Hello World

? Matches the preceding pattern element zero or one times.
$string1 = "Hello World\n";
if ($string1 =~ m/H.?e/) {
print "There is an 'H' and a 'e' separated by ";
print "0-1 characters (Ex: He Hoe)\n";
}
? Modifies the *, +, or {M,N}'d regexp that comes before to match as few times as possible.
$string1 = "Hello World\n";
if ($string1 =~ m/(l.+?o)/) {
print "The non-greedy match with 'l' followed by one or ";
print "more characters is 'llo' rather than 'llo wo'.\n";
}
* Matches the preceding pattern element zero or more times.
$string1 = "Hello World\n";
if ($string1 =~ m/el*o/) {
print "There is an 'e' followed by zero to many ";
print "'l' followed by 'o' (eo, elo, ello, elllo)\n";
}
{M,N} Denotes the minimum M and the maximum N match count.
$string1 = "Hello World\n";
if ($string1 =~ m/l{1,2}/) {
print "There exists a substring with at least 1 ";
print "and at most 2 l's in $string1\n";
}
[...] Denotes a set of possible character matches.
$string1 = "Hello World\n";
if ($string1 =~ m/[aeiou]+/) {
print "$string1 contains one or more vowels.\n";
}
| Separates alternate possibilities.
$string1 = "Hello World\n";
if ($string1 =~ m/(Hello|Hi|Pogo)/) {
print "At least one of Hello, Hi, or Pogo is ";
print "contained in $string1.\n";
}
\b Matches a word boundary.
$string1 = "Hello World\n";
if ($string1 =~ m/llo\b/) {
print "There is a word that ends with 'llo'\n";
} else {
print "There are no words that end with 'llo'\n";
}
\w Matches an alphanumeric character, including "_".
$string1 = "Hello World\n";
if ($string1 =~ m/\w/) {
print "There is at least one alphanumeric ";
print "character in $string1 (A-Z, a-z, 0-9, _)\n";
}
\W Matches a non-alphanumeric character, excluding "_".
$string1 = "Hello World\n";
if ($string1 =~ m/\W/) {
print "The space between Hello and ";
print "World is not alphanumeric\n";
}
\s Matches a whitespace character (space, tab, newline, form feed)
$string1 = "Hello World\n";
if ($string1 =~ m/\s.*\s/) {
print "There are TWO whitespace characters, which may";
print " be separated by other characters, in $string1";
}
\S Matches anything BUT a whitespace.
$string1 = "Hello World\n";
if ($string1 =~ m/\S.*\S/) {
print "There are TWO non-whitespace characters, which";
print " may be separated by other characters, in $string1";
}
\d Matches a digit, same as [0-9].
$string1 = "99 bottles of beer on the wall.";
if ($string1 =~ m/(\d+)/) {
print "$1 is the first number in '$string1'\n";
}

Output:

99 is the first number in '99 bottles of beer on the wall.'

\D Matches a non-digit.
$string1 = "Hello World\n";
if ($string1 =~ m/\D/) {
print "There is at least one character in $string1";
print " that is not a digit.\n";
}
^ Matches the beginning of a line or string.
$string1 = "Hello World\n";
if ($string1 =~ m/^He/) {
print "$string1 starts with the characters 'He'\n";
}
$ Matches the end of a line or string.
$string1 = "Hello World\n";
if ($string1 =~ m/rld$/) {
print "$string1 is a line or string ";
print "that ends with 'rld'\n";
}
\A Matches the beginning of a string (but not an internal line).
$string1 = "Hello\nWorld\n";
if ($string1 =~ m/\AH/) {
print "$string1 is a string ";
print "that starts with 'H'\n";
}
\Z Matches the end of a string (but not an internal line).
$string1 = "Hello\nWorld\n";
if ($string1 =~ m/d\n\Z/) {
print "$string1 is a string ";
print "that ends with 'd\\n'\n";
}
[^...] Matches every character except the ones inside brackets.
$string1 = "Hello World\n";
if ($string1 =~ m/[^abc]/) {
print "$string1 contains a character other than ";
print "a, b, and c\n";
}


http://en.wikipedia.org/wiki/Regular_expression_examples

Wednesday, December 3, 2008

Windows-how to write batch file

I feel stupid right about now. I am not interested and I don't want to learn.

http://www.robvanderwoude.com/bht.html

I'll just use cygwin.

Oh wait. I found exactly what I need: http://www.cknow.com/tutorcom/dos08_dealwithfiles.htm

And some misc batch scripts by some misc person: http://www.geocities.com/~budallen/batfiles.html

Sunday, September 14, 2008

Setting up a html codebox

Check out all the html markup specs here: http://www.w3.org/MarkUp/html-spec/html-spec_8.html

Monday, June 9, 2008

Trying: MS Outlook add share mailbox

Tools -->Email Accounts -->View/Change existing email accounts

-->MS Exchange (Change)

Button: More Settings

Tab: Advanced

Mailboxes
Button: Add

Add mailbox:
*Search by logical name

Saturday, June 7, 2008

Teching... somewhat: Fonts

Those who knows me will know I am somewhat obsessed with fonts.

So I was a little upset when I reviewed and realised that almost all my fonts are in serif. You see, even though I do not claim to know much about graphics, I know one thing.

Only use sans-serif font with online/web publishing. So imagine how pissed I was when I realised vanity blog was mostly in serif.
So here is the part where you need to change in:
Layout--> Edit Html

Add a new variable for the new font type.




Adjust the font accordingly in your post body structure.

.post-body {
font:$postfont;
font-size/* */:/**/small;
font-size: /**/small;
}


To understand briefly the need of serif & sans-serif font distinction for print and online publishing, go here:


http://www.scribe.com.au/tip-w017.htm



Ascii character for html.

Maths symbols for html.