Month: March 2004

  • You guys ever wonder what the heck was the large chunk of code in my
    last post? That was some CSS code that made me bang my head against the
    table a whole day, trying to make it work in my PHP pages in my
    database class project.

    I finally got the display working correctly. It has to do with adding a
    bit of code to the <html> and <body> tags. :-/

    - SwordAngel

  •     <style type=”text/css” href=”/Include/StyleRules.css”>

            

            <!–

            

                body {

                    margin: 0em;

                    padding: 0em;

                    color: black;

                    font-family: Verdana, Arial, Helvetica, sans-serif;

                    font-size: medium;

                }

                

                #fixed {

                    position:static;

                    top: 0;

                    left: 0;

                    width: 10em;

                    height: 100%;

                    

                }

                

                body > #fixed {

                    position: fixed;

              
         background: transparent url(“cow_tile.gif”)
    repeat fixed;

                 }

                #content {

              
         background: transparent url(“cow_tile.gif”)
    repeat fixed;

                    margin-left: 10em;

                    padding: 1em;

                    font-family: Verdana, Arial, Helvetica, sans-serif;

                    font-size: medium;

                    line-height: 1.5;

                }

                .center { text-align: center; }

                h1 { font-size: 4em; text-align: right; }

                h2 { margin-top: 2em; }

                a:link { background: transparent none; color: aqua; }

                a:visited { background: transparent none; color: aqua; }

                a:active { background: transparent none; color: aqua; }

                a:hover { background: transparent none; color: fuchsia; }

                

                #fixed a {

                    display: block;

                    text-decoration: none;

                    padding: 0.5em;

                    background: black none;

                    color: white;

                    font-weight: bold;

                    font-size: smaller;

                    margin-bottom: 2px;

                }

                

                #fixed a:hover {

                    background: white none;

                    color: black;

                }

                

                #fixed ul {

                    list-style-type: none;

                }

            –>

        </style>

  • Here is some fun thing to do if you work in a big corporation and you have access to its database:


    SELECT * FROM ALL_TABLES;


    - SwordAngel

  • I pulled an all-nighter for the project. The only reason I still live was because of the jar of Brand’s Essence of Chicken that mom packed into my school bag. This stuff is like “teh shit” for university students. My sister survived her exchange to the National University of Singapore thanks to this stuff. The result for me: 23 hours of no-sleep working, almost dropped dead towards the end and took intermittent naps, PLUS… 140+ pages long document with diagrams and code.


    BTW, the new domain name is up. What’s left is to link it to the hosting. Once everything is ready (scripts, database, and all that), I’ll tell you guys the URL.


    - SwordAngel


    PS: BTW, I forgot to mention that was the 3rd or 4th day in a row working on the project. Now you see what I mean when I say Brand’s Essence of Chicken is “teh shit”?

  • I hate projects. I’m still at school, since like 10:00 this morning. I had a bowl of plain rice with soy sauce as supper for reasons of speed. >.<


    - SwordAngel

  • Hello everybody, I just registered a new domain name today with a couple of my friends. The domain name should be up in less than 2 days if everything goes fine. Once the domain name is up, I’ll probably migrate my blog to the new domain name since I can then customize my blog the way I want it and store a whole bunch of pictures, etc.


    I’m sure you guys will like the new domain name. ^^


    - SwordAngel

  • CheckBox vs CheckBoxList in ASP .NET


    Yesterday, I learned something about ASP .NET, while working on the e-voting project with my teammates. It’s about a simple disadvantage of using CheckBoxList, compared to using CheckBox.


    Here’s the deal. In ASP .NET, a whole CheckBoxList inherits from the Control class, while the individual ListItem’s in the CheckBoxList are DO NOT. This means that some of the attributes of the usual server controls are not inherited in ListItem. So you can’t do things like disable individual checkboxes (as in greying them out) within a CheckBoxList (at least as far as using pure ASP .NET is concerned).


    Therefore, while it’s easier to reference checkboxes within a CheckBoxList because they are automatically indexed, you also lose some functionalities compared to using just CheckBox.


    Another thing is that, by default, CheckBox’s are aligned differently than CheckBoxList items when displayed in a webpage. You have to use RepeatLayout = “Flow” within the CheckBoxList tag in order for the items to be aligned like normal CheckBox items.


    I hope this little piece of information helps those of you who are, just like us, learning ASP .NET.


    - SwordAngel

  • It looks like the US Justice system is finally gonna get some new law that makes sense: the Cheeseburger Bill.


    If the bill passes, stupid fat US citizens will no longer be allowed to file class action law suits against restaurants for making them obese. The result should be less waste of tax payers’ money and less lawyers fattening themselves with money from stupid fat people.


    - SwordAngel


    P.S. I don’t mean that fat people in general are stupid, just SOME fat people, who excessively exploit one of the most stupid constitutional law in human history (“Every person has the right to be happy”? my ass), are stupid.

  • Just went to read Ahmda’s blog and instantly got interested in the 25-con knight story. It looks amazing. I think that’s what I should do with SwordAngel too… max con, max wis, then delvl and lvl back up. ^^;


    - SwordAngel

  • This blog has officially become a group blog. I’ve given out the password to my friends. This is to make the blog actually match its title: “SwordAngel and Friends“.