NGPriest: Tables and Lists

Ξ August 15th, 2009 | → 0 Comments | ∇ Author: NGPriest |

Continuing on from yesterday, we’ll move on to Tables and Lists

Tables can be created using the <table> tag and if you need a border, add a border=”1″, like <table border=”1″>

For rows, we use <tr> and for cells, we use <td>

To create a 2×2 table:

table tag

I know i put 2 in
The top is how i normally do it
The bottom has been source formatted

Which would give you:

1 2
3 4

With lists, you first pick a format, either:
<ol></ol> = Ordered list
<ul></ul> = Unordered list

And to display the data, you use <li></li>
Such as

ol vs ul
ol tag ul tag
  1. Item 1
  2. Item 2
  3. Item 3
  • Item 1
  • Item 2
  • Item 3

And yes, i used a table, but for the 1st cell, i used a <th> instead of a <td>
<th> is also known as a Table Heading, which i added the tag colspan=”2″
So for the row, it’s <tr><th colspan=2″>ol vs ul</th></tr>

 

NGPriest: Basic HTML

Ξ August 14th, 2009 | → 0 Comments | ∇ Author: NGPriest |

Okay, as i was teaching BananaStatio, a basic page is as follows

<html>
<head>
<title>This is the title</title>
</head>
<body>
This is the body
</body>
</html>

The <title> is the text that appears at the top of the screen
The <body> is the area, which is visible on the screen

Within the <body>, you can use tags, such as:

<b></b> = Bold (XHTML uses <strong></strong>)
<i></i> = Italic (XHTML uses <em></em>)
<u></u> = Underline (and people confuse this with links)
<sup> = Superscript
<sub> = Subscript

As well as <a> and <img> and their attributes

<a href=”http://www.ngpriest.com” target=”_blank”>NGPriest’s Blog</a>
<img src=”http://www.ngpriest.com/NGPriest.jpg” alt=”NGPriest’s Avatar”>

There are also <h1> <h2> <h3> <h4> <h5> <h6> tags, but most of those tags will be viewed differently on each site depending on the css used on each site.

For example:

h1

h2

h3

h4

h5
h6

So, that’s basic HTML, while using HTML, you may need to insert manual line breaks, which can be done by surrounding the paragraph with <p> and </p> or else adding manual line breaks using <br> (XHTML uses <br />) and lastly is <hr> (XHTML uses <hr />


And to code a HTML page, try Notepad/Notepad++ or else Dreamweaver
If you use FrontPage, i was informed that it puts ALOT of unnecessary tags
Any other programs, feel free to lave a comment

 

NGPriest: 6 STEPS TO KILL YOUR COMMUNITY

Ξ August 11th, 2009 | → 0 Comments | ∇ Author: NGPriest |

There have been a number of new platforms popping up recently that claim to increase your user engagement, get you more comments, increase your traffic, and more, through means that I consider short-sighted and harmful. Since people seem not to mind, I thought I’d write a guide for how toincrease the number of comments you get by 400-1,000% and ruin whatever shred of community you had on your site.

  1. Don’t Moderate. Allow anybody to post anything regardless of whether it contributes to the conversation or not. Stupidity, libel, hate, curse words are all okay because in the comments you have plausible deniability. Make sure people know that whatever they post will live forever, and anything goes. The few smart people you did have in your comments will enjoy responding to these folks. Advertisers love being next to a good fight, too.
  2. Allow Spam Through. I don’t mean the obvious viagra mortgage stuff, but the human-written and surface-thoughtful comment that “Florida Real Estate” or “Poll Widgets” decided to leave on your entry. Or the guy who comments on every post and has a 3-link signature. Or the lame startup that mentions itself at every possible opportunity, however tangentially related it is. Once spammers catch a sniff of this stuff getting through, they’ll descend on your site like locusts and instantly double or treble your “community.”
  3. Force Signup. You’re not a blog, you’re a social network cum media empire and even to leave the smallest comment you should make me fill out a profile, preferably with demographic information you can use in advertiser pitches later. (*cough* CNET) Please ignore useful services like Gravatar and try to get me to upload yet another profile picture because you think that makes your site more “sticky.” (In a sense of the word, it does.)
  4. Don’t Participate in Comments. Make it clear that your post itself is for annointed authors who don’t mix with the hoi polloi in the comments ghetto. Don’t link or highlight anything good from the comment section; those people silly enough to contribute content to your site for free should feel ignored. If an author does happen to drop in and make a comment, make sure it doesn’t stand out from the rest so it’s lost amid the sea of…
  5. Random Crap from Around the Web. Make sure any comments you have are buried by every random piece of “conversation” from around the web, especially retweets, Delicious links, Digg and Slashdot comments, pretty much anything will work here. Bonus points for unmoderated pingbacks, so every scraper spam blog copying the content of the post gets a free link in the comments.
  6. Design Like NASCAR. The more buttons, widgets, stickers, and visual clutter the better. I want to see every possible login system including but not limited to Facebook, Twitter, OpenID, Google Friend Connect, and that Myspace thing. Because of their respective crappy terms of service, use the giant buttons they insist on. Also include a megabyte of “share this” icons for every obscure service in every language. People love options! Complexity is for closers.

As a bonus, here are a few extra that don’t make any sense to me, but seem to be popular:

  1. Abandon Search Engines. Make sure your comment system is externally hosted on a separate domain and injects comments in via JavaScript, so everything is completely invisible to search engines. For bonus points, even if you have an existing database, say WordPress, with all of your comments, make sure the external service doesn’t synchronize any of the new stuff back into it, so you’re at the mercy of the external provider forever and ever.
  2. Be Famous! You’ll get thousands of comments on almost everything you post and make sure only to let through the most sycophantic and saccharine, don’t tolerate real conversation or debate. To spice it up every now and then opine on a known controversial subject like abortion and let your audience loose on each other like gladiators while you watch from the stands.
  3. Put the Comment Form at Top. This ensures everyone making a comment hasn’t read any of the discussion so they’ll leave a comment anyway even if the exact same thing has been said already or a question has already been answered.
  4. No Subscriptions. Don’t allow me to get email notifications of new stuff, make me visit your site and reload the page constantly to see if there’s anything new.
  5. Make People Click Click Click. Ideally do 1-comment-per-page CNET-style and your pageviews will go through the roof, but if you can’t stomach that just make comments-per-page setting low or have some sort of complicated nesting scheme.
  6. Treat Everyone the Same. If I’ve left hundreds of great comments over many years on your site, please make me wait in the moderation queue like some random stranger off Digg. Don’t let anyone know I’m a regular, or talk to me, or invite me to test out beta stuff, or pretty much anything that acknowledges my existence or shows any degree of trust.
  7. Don’t Ask Anything of Your Audience. No polls, surveys, or open-ended blog entries. What do those plebes know anyway?

Source: http://ma.tt/2009/08/kill-your-community/

 

NGPriest: Sorry for the 509

Ξ August 11th, 2009 | → 0 Comments | ∇ Author: NGPriest |

Bandwidth Limit Exceeded

The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later.


Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at ngpriest.com Port 80

It appears that a mp3 i uploaded used up 95% of this 10 day quota, which is 4750/5000 mb quota. (The other 5% was used by other files and other subdomains)

We have removed all the .mp3’s to prevent this problem in the future

Sorry if there are any 404 errors, but we want to prevent 509 errors before 404 errors.

Thanks for reading
NGPriest
NGElites

PS: Thanks to everyone who notified me of this error

 

NGPriest: Malaysian jailed for marital rape

Ξ August 7th, 2009 | → 1 Comment | ∇ Author: NGPriest |

I usually read the news daily for anything interesting

But i rarely see anything about Malaysia (maybe because i’m reading the Australian news?)

Well, this is the 1st one i’ve seen for quite awhile

Malaysian jailed for marital rape
From correspondents in Malaysia AAP August 06, 2009 03:26pm
A MALAYSIAN man who forced his wife to have sex with him has been sentenced to the maximum five years in jail, in what appears to be the country’s first successful prosecution under a new law against stop marital rape.
An official in the sessions court in eastern Pahang state said the man was sentenced yesterday.

The New Straits Times reported that the sentence is thought to be the first under a 2007 law that makes it illegal for a husband to cause “fear of death or hurt to his wife … to have sexual intercourse.”

“We hope this will inspire other wives who suffer in silence to come out and seek justice for themselves,” Judge Hassan Abdul Ghani was quoted.

The September 2007 amendment to the penal code that made marital rape a crime was considered a small step toward women’s rights in conservative Muslim-dominated Malaysia.

Activists say it doesn’t go far enough because the law doesn’t stipulate a minimum sentence, which means a man could go to jail for as little as a day even if convicted.

The 35-year-old was also sentenced to 10 years in jail and three lashes of the whip for forcing his wife to have anal sex, the official said.

Anal sex, even when consensual, is a crime punishable by up to 20 years imprisonment in Malaysia.

The sentences are to run concurrently, she said. She declined to be named because she is not authorised to make public statements.

The newspaper said the man had pleaded guilty to treating his wife violently to have sex at their home in April.

Source: http://www.news.com.au/story/0,23599,25891797-1702,00.html

Any comments?

 

NGPriest: Ekka 2009

Ξ August 5th, 2009 | → 0 Comments | ∇ Author: NGPriest |

Finally bought my tickets (bulk buying)
Unfortunately, i was planning on getting a discount for buying the tickets, but it unfortunately didn’t come with any discounts. Bought 9 tickets, (was hoping to buy 10) and it costed me $145.00

Ticket Type Ticket Quantity Ticket Price
Online Concession 1 Day 7 $17.00
Online Child 1 Day 2 $13.00
Total: $145.00

 

The discount should be:
Concession: $14.45
Child: $11.05

hero_01 hero_02 hero_03
hero_04 hero_05 hero_06

 

Now, i need to get my showbag list ready
http://www.ekka.com.au/showbags.aspx

 

NGPriest: iPhone OS 3.0.1 Software Update

Ξ August 2nd, 2009 | → 2 Comments | ∇ Author: NGPriest |

iPhone OS 3.0.1 Software Update

Fixes SMS vulnerability.

Products compatible with this software update:
• iPhone
• iPhone 3G
• iPhone 3GS

For feature descriptions and complete instructions, see the user guide for your iPhone at:
    <http://www.apple.com/support/manuals/iphone>

For more information about iPhone, go to:
    <http://www.apple.com/iphone>

To troubleshoot your iPhone, or to view additional support information go to:
    <http://www.apple.com/support/iphone>

For information on the security content of this update, please visit this website: 
    <http://support.apple.com/kb/HT1222>

The update is 297.9 MB, big or not?

Currently updating my iPhone 3GS now, will update the iPhone 3G later
And yes, there will be lag on the network
297.9 MB x 2 = 595.8 MB (Aditional 0.59 GB to the bandwidth usage)

Well, it’s now 2:37 AM and i’ve got church at 9:00 AM
(And i’m sick :'( (And everyone says i should get more sleep/rest/etc)

Banana, i assume you’re using the normal/web interface, i’ll attach an image to this post (posted via WLW, since i can’t be bothered logging in)

Image Upload

Title: NGPriest
Caption: NGPriest’s Avatar
Description: NGPriest’s Avatar
Link URL: Select “File URL”
Alignment: Not needed, CSS does this for us (I think?)
Size: Don’t scew up my blog (please?)


After inserting the image, try editing it abit like:


<center>
    <table border=”1″>
        <tr>
            <td>
                <a tag>
                    <img tag>
                </a>
            <td>
        </tr>
    </table>
</center>


<center></center> = Anything between these are centered
<table></table> = These are table tags
<tr></tr> = Table Rows
<td></td> = Table Cells/Columns
<a></a> = Link tags, there are more varibles you need to input
<img> = Image tags, there are more varibles you need to input
You can also try <th></th> such as:


<center>
<table border=”1″>
<tr><th>Image Name/Etc<td></tr>
<tr><td><a tag><img tag></a><td></tr>
<tr><th>Image Caption<td></tr>
</table>
</center>


The caption can be <td><h5> and </h5></td> instead of <th> and </th>, since the <th> are meant for table headings and <h6> are too small to read (because of the css used on this site (and shared between all NG sites))

 

« Previous Page
RSS

    Welcome to

    NGPriest's Blog


    There are 6,863 posts and 303 comments so far. Feel invited to browse the archives, read the about or comment on the latest post.

    Search:

    • BananaStatio is 23/M/KL, KL, Malaysia
    • ChambyT is 1x/F/Sungai Bakap, Penang, Malaysia
    • chingyi1807 is 1x/F/Malaysia
    • CopyCatty is 1x/M/Hong Kong
    • crazymango is 15/F/Malaysia
    • Eliteratty is ??/M/???
    • HolySprings is 18/M/Sungai Bakap, Penang, Malaysia
    • jaigralia is unknown...
    • Jykur0 is 14/M/Indonesia
    • MakoJr is 1x/M/Singapore
    • NGPriest is 19/M/Brisbane, QLD, Australia
    • PoringCat098 is 1x/F/Malaysia
    • Saphira is 15/F/George Town, Penang, Malaysia
    • shiningthrust is 13/M/Singapore
      shiningthrust is Single
    • sianzxd is 18/M/George Town, Penang, Malaysia
    • Swifty13 is 1x/M/United Kingdom
    • WingzOfChaos is 15/M/Singapore
      Single/Lonely/Depressed

Random stuff!

  • Loved by Some,
    Hated by Many,
    Envied by Most,
    Yet Wanted by Plenty
  • 10% luck
    20% skill
    15% concentrated power of will
    5% pleasure
    50% pain
    100% reason to remember the name!
  • I write your name in my breath on the window, Sit and watch as it fades away
  • Hi honey.
    Guess what I did at work today?
    I wore a bomb.
    A nuclear bomb in a field of flowers.
    I could get lucky.
    Tomorrow I could have a bigger bomb.
    I could kill more people.
    Maybe they'll be innocent people.
    Children, maybe.
  • "You are like a plague, John Crichton,
    and you have ruined my life . . .
    and yet
    I just keep coming back."
  • I'll watch the night turn light blue
    But it's not the same without you
    Because it takes two to whisper quietly
    The silence isn't so bad
    Till I look at my hands and feel sad
    Cause the spaces between my fingers
    Are right where yours fit perfectly

Search