<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by tyson147</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Mon, 16 Nov 2026 09:03:53 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>problem solved</title>
            <link>http://forum.lowyat.net/topic/954391</link>
            <description>Hi experts,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m new in IIS cos juz started study ASP. I created 2 files named user.asp and user_update.asp and save it in a tutorial folder under Inetpub/wwwroot. So when i try to view the user.asp at IE, i type the address &amp;quot;http://localhost/tutorial/user.asp&amp;quot;. and the error below occured.&lt;br /&gt;&lt;br /&gt;Error Type:&lt;br /&gt;ADODB.Recordset (0x800A0CC1)&lt;br /&gt;Item cannot be found in the collection corresponding to the requested name or ordinal.&lt;br /&gt;/tutorial/user.asp, line 50&lt;br /&gt;&lt;br /&gt;the coding for line 50 in user.asp:&lt;br /&gt;	&amp;lt;td&amp;gt;&amp;lt;a href=&amp;quot;user_edit.asp?uid=&amp;lt;%=rs(&amp;quot;uid&amp;quot;)%&amp;gt;&amp;quot;&amp;gt;Kemaskini&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;	&lt;br /&gt;&lt;br /&gt;any expert here can help me? thanks.&lt;br /&gt;&lt;br /&gt;p.s: my IIS version 5.1 and working well cos i can access &lt;a href='http://localhost' target='_blank'&gt;http://localhost&lt;/a&gt;. And my Inetpub folder is not in C drive cos i install my windows in F drive.&lt;br /&gt;&lt;br /&gt;Thanks very much.</description>
            <author>tyson147</author>
            <category>Technical Support</category>
            <pubDate>Wed, 04 Mar 2009 19:35:53 +0800</pubDate>
        </item>
        <item>
            <title>help on printer</title>
            <link>http://forum.lowyat.net/topic/810342</link>
            <description>hi, i have an old model canon printer, which is canon bjc 1000sp, and i would like to use the printer on my laptop. but the printer cable is not usb supported, so i bought an usb to parallel converter. the converter come with a driver cd, but in the cd there are many drivers, i found a driver that is for the converter, i install the driver but the printer cant work, can anyone help me? thanks.</description>
            <author>tyson147</author>
            <category>Technical Support</category>
            <pubDate>Tue, 07 Oct 2008 10:00:40 +0800</pubDate>
        </item>
        <item>
            <title>java calendar</title>
            <link>http://forum.lowyat.net/topic/782973</link>
            <description>hi, i&amp;#39;m doing a java program which without GUI. the program is about a calendar that can create a calendar based on the year that user entered, can add an appointment to particular day and can view particular month to check for the appointment added. so this calendar also have to save to an output file for future use. &lt;br /&gt;below is what i done.&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('ffccd24ab35ce2fe9101ae3b46e4adc4')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;ffccd24ab35ce2fe9101ae3b46e4adc4&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;import java.util.*;&lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class mycal{&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;    static Scanner sc = new Scanner(System.in);&lt;br /&gt;    static int num, year;&lt;br /&gt;    &lt;br /&gt;        public static void main(String[] args)throws Exception{&lt;br /&gt;            &lt;br /&gt;            showMenu1();&lt;br /&gt;            num = sc.nextInt();&lt;br /&gt;            Choice(num);&lt;br /&gt;           &lt;br /&gt;       }&lt;br /&gt;       &lt;br /&gt;static void showMenu1(){&lt;br /&gt;        System.out.println(&amp;quot;WELCOME  TO  MYCAL&amp;quot;);&lt;br /&gt;            System.out.println(&amp;quot;==================&amp;#092;n&amp;quot;);&lt;br /&gt;            &lt;br /&gt;            System.out.println(&amp;quot;&amp;lt;&amp;lt;What do you want to do?&amp;quot;);&lt;br /&gt;            System.out.println(&amp;quot;[1]. Create a new calendar&amp;quot;);&lt;br /&gt;            System.out.println(&amp;quot;[2]. Open a calendar&amp;quot;);&lt;br /&gt;            System.out.println(&amp;quot;[3]. Exit myCal&amp;quot;);&lt;br /&gt;            System.out.print(&amp;quot;Selection: &amp;quot;);&lt;br /&gt;            &lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static void Choice(int num)throws Exception{&lt;br /&gt;       java.io.File file = new java.io.File(&amp;quot;calendar.txt&amp;quot;);&lt;br /&gt;       &lt;br /&gt;          switch(num){&lt;br /&gt;                case 1 :&lt;br /&gt;                    System.out.print(&amp;quot;Enter Year: &amp;quot;);&lt;br /&gt;                    int year = sc.nextInt();&lt;br /&gt;                    System.out.println(&amp;quot;Calender &amp;quot; + year + &amp;quot; created:&amp;quot;);&lt;br /&gt;                    printYear(year);&lt;br /&gt;                   &lt;br /&gt;                     showMenu2();&lt;br /&gt;                     int num2 = sc.nextInt();&lt;br /&gt;                     Choice2(year,num2);&lt;br /&gt;                     &lt;br /&gt;                    &lt;br /&gt;                    PrintWriter output = new PrintWriter(file);{&lt;br /&gt;                    &lt;br /&gt;                    output.println(&amp;quot;==================================&amp;quot;);&lt;br /&gt;                    output.println(&amp;quot;     CALENDER  &amp;quot;+ year+&amp;quot;          &amp;quot;);&lt;br /&gt;                    output.println(&amp;quot;==================================&amp;quot;);&lt;br /&gt;                    {&lt;br /&gt;                        for(int i=1;i&amp;lt;=12;i++){ &lt;br /&gt;                            output.print(&amp;quot;   &amp;quot;+i+&amp;quot;.&amp;quot;+getMonthName(i)+&amp;quot;()&amp;quot;);&lt;br /&gt;                            if(i%4==0)&lt;br /&gt;                            output.println();&lt;br /&gt;                        }&lt;br /&gt;                        System.out.println();&lt;br /&gt;                    }&lt;br /&gt;                    output.close();&lt;br /&gt;                }&lt;br /&gt;                    &lt;br /&gt;                    break;&lt;br /&gt;                    &lt;br /&gt;             case 2 :&lt;br /&gt;                    System.out.print(&amp;quot;Enter Year: &amp;quot;);&lt;br /&gt;                    year = sc.nextInt();&lt;br /&gt;                    System.out.println(&amp;quot;Calendar &amp;quot;+ year+&amp;quot; succussfully opended&amp;quot;);&lt;br /&gt;                    Scanner input = new Scanner(new FileReader(&amp;quot;calendar.txt&amp;quot;));&lt;br /&gt;                    String cal = input.nextLine();&lt;br /&gt;                    System.out.println(cal);&lt;br /&gt;                    input.close();&lt;br /&gt;                    &lt;br /&gt;                    break;&lt;br /&gt;              case 3 :&lt;br /&gt;                    System.out.print(&amp;quot;Save data Yes(Y/y) or No (N/n)?: &amp;quot;);&lt;br /&gt;                    String response = sc.next();&lt;br /&gt;                    System.exit(0);&lt;br /&gt;&lt;br /&gt;                break;&lt;br /&gt;                &lt;br /&gt;                default :&lt;br /&gt;                System.out.println(&amp;quot;error&amp;quot;);&lt;br /&gt;            }&lt;br /&gt;            &lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static int printYear(int year){&lt;br /&gt;            printYearView(year);&lt;br /&gt;            return year;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static int printYearView(int year) {&lt;br /&gt;        System.out.println(&amp;quot;==================================&amp;quot;);&lt;br /&gt;        System.out.println(&amp;quot;     CALENDER  &amp;quot;+ year+&amp;quot;          &amp;quot;);&lt;br /&gt;        System.out.println(&amp;quot;==================================&amp;quot;);&lt;br /&gt;        &lt;br /&gt;        {&lt;br /&gt;         for(int i=1;i&amp;lt;=12;i++){ &lt;br /&gt;            System.out.print(&amp;quot;   &amp;quot;+i+&amp;quot;.&amp;quot;+getMonthName(i)+&amp;quot;()&amp;quot;);&lt;br /&gt;            if(i%4==0)&lt;br /&gt;            System.out.println();&lt;br /&gt;                   }&lt;br /&gt;               System.out.println();&lt;br /&gt;            }&lt;br /&gt;            return year;&lt;br /&gt;        }   &lt;br /&gt;&lt;br /&gt;static String getMonthName(int month){&lt;br /&gt;        String monthName = null;&lt;br /&gt;        switch(month){&lt;br /&gt;            case 1: monthName= &amp;quot;Jan&amp;quot;;break;&lt;br /&gt;            case 2: monthName= &amp;quot;feb&amp;quot;;break;&lt;br /&gt;            case 3: monthName= &amp;quot;mac&amp;quot;;break;&lt;br /&gt;            case 4: monthName= &amp;quot;april&amp;quot;;break;&lt;br /&gt;            case 5: monthName= &amp;quot;may&amp;quot;;break;&lt;br /&gt;            case 6: monthName= &amp;quot;jun&amp;quot;;break;&lt;br /&gt;            case 7: monthName= &amp;quot;July&amp;quot;;break;&lt;br /&gt;            case 8: monthName= &amp;quot;ogos&amp;quot;;break;&lt;br /&gt;            case 9: monthName= &amp;quot;sept&amp;quot;;break;&lt;br /&gt;            case 10: monthName= &amp;quot;okt&amp;quot;;break;&lt;br /&gt;            case 11: monthName= &amp;quot;nov&amp;quot;;break;&lt;br /&gt;            case 12: monthName= &amp;quot;dec&amp;quot;;break;&lt;br /&gt;        }&lt;br /&gt;        return monthName;&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;static void showMenu2(){ &lt;br /&gt;        System.out.println(&amp;quot;what do you want to do&amp;quot;);&lt;br /&gt;        System.out.println(&amp;quot; [1-12]. Choose a month:&amp;quot;);&lt;br /&gt;        System.out.println(&amp;quot;   [13]. Add an appointment&amp;quot;);&lt;br /&gt;        System.out.println(&amp;quot;    [0]. Exit MyCal&amp;quot;);&lt;br /&gt;        System.out.print(&amp;quot;Selection: &amp;quot;);&lt;br /&gt;    }&lt;br /&gt;        &lt;br /&gt;     &lt;br /&gt;static int Choice2(int year,int num)throws FileNotFoundException{&lt;br /&gt;     java.io.File file = new java.io.File(&amp;quot;calendar.txt&amp;quot;);&lt;br /&gt;&lt;br /&gt;        switch(num){&lt;br /&gt;            case 1:&lt;br /&gt;            case 2:&lt;br /&gt;            case 3:&lt;br /&gt;            case 4:&lt;br /&gt;            case 5:&lt;br /&gt;            case 6:&lt;br /&gt;            case 7:&lt;br /&gt;            case 8:&lt;br /&gt;            case 9:&lt;br /&gt;            case 10:&lt;br /&gt;            case 11:&lt;br /&gt;            case 12:&lt;br /&gt;                printMonth(year,num);&lt;br /&gt;                &lt;br /&gt;                break;&lt;br /&gt;            case 13:&lt;br /&gt;                System.out.print(&amp;quot;Enter month: &amp;quot;);&lt;br /&gt;                int month = sc.nextInt();&lt;br /&gt;                System.out.print(&amp;quot;Enter Day: &amp;quot;);&lt;br /&gt;                int day = sc.nextInt();&lt;br /&gt;                System.out.print(&amp;quot;Enter hr: &amp;quot;);&lt;br /&gt;                int hr = sc.nextInt();&lt;br /&gt;                System.out.print(&amp;quot;Enter mins: &amp;quot;);&lt;br /&gt;                int mins = sc.nextInt();&lt;br /&gt;                System.out.print(&amp;quot;Enter description: &amp;quot;);&lt;br /&gt;                String des = sc.next();&lt;br /&gt;                PrintWriter output = new PrintWriter(&amp;quot;calendar.txt&amp;quot;);&lt;br /&gt;                output.write(year+&amp;quot;&amp;#092;t&amp;quot;);&lt;br /&gt;                output.write(month+&amp;quot;&amp;#092;t&amp;quot;);&lt;br /&gt;                output.write(day+&amp;quot;&amp;#092;t&amp;quot;);&lt;br /&gt;                output.write(hr+&amp;quot;&amp;#092;t&amp;quot;);&lt;br /&gt;                output.write(mins+&amp;quot;&amp;#092;t&amp;quot;);&lt;br /&gt;                output.write(des+&amp;quot;&amp;#092;t&amp;quot;);&lt;br /&gt;&lt;br /&gt;        output.close();&lt;br /&gt;        printMonth(year,month);&lt;br /&gt;        break;&lt;br /&gt;        &lt;br /&gt;            case 0:&lt;br /&gt;            System.exit(0);&lt;br /&gt;            break;&lt;br /&gt;            &lt;br /&gt;                default :&lt;br /&gt;                System.out.println(&amp;quot;error&amp;quot;);&lt;br /&gt;            }&lt;br /&gt;            &lt;br /&gt;           &lt;br /&gt;            &lt;br /&gt;            return num;&lt;br /&gt;         &lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static void printMonth(int year,int month){&lt;br /&gt;        printMonthTitle(year,month);&lt;br /&gt;        printMonthBody(year,month);&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;static void printMonthTitle(int year,int month){&lt;br /&gt;        System.out.println(&amp;quot;   &amp;quot;+getMonthName(month)+&amp;quot;   &amp;quot;+year);&lt;br /&gt;        System.out.println(&amp;quot;-----------------------------------&amp;quot;);&lt;br /&gt;        System.out.println(&amp;quot;sun mon tue wed thu fri sat&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;static void printMonthBody(int year,int month){&lt;br /&gt;        int startDay = getStartDay(year,month);&lt;br /&gt;        int numberOfDaysInMonth = getNumberOfDaysInMonth(year,month);&lt;br /&gt;        &lt;br /&gt;        int i =0;&lt;br /&gt;        for(i=0;i&amp;lt;startDay;i++)&lt;br /&gt;        System.out.print(&amp;quot;     &amp;quot;);&lt;br /&gt;        for(i=1;i&amp;lt;=numberOfDaysInMonth;i++){&lt;br /&gt;            if (i&amp;lt;10)&lt;br /&gt;            System.out.print(&amp;quot;    &amp;quot;+i+&amp;quot;()&amp;quot;);&lt;br /&gt;            else&lt;br /&gt;            System.out.print(&amp;quot;   &amp;quot;+i+&amp;quot;()&amp;quot;);&lt;br /&gt;            &lt;br /&gt;            if ((i+startDay)%7==0)&lt;br /&gt;            System.out.println();&lt;br /&gt;        }&lt;br /&gt;        System.out.println();&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;static int getStartDay(int year,int month){&lt;br /&gt;        final int Start=3;&lt;br /&gt;         int totalNumberOfDay = getTotalNumberOfDays(year,month);&lt;br /&gt;         &lt;br /&gt;         return (totalNumberOfDay+Start)%7;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static int getTotalNumberOfDays(int year,int month){&lt;br /&gt;            int total = 0;&lt;br /&gt;            for (int i=1800;i&amp;lt;year;i++)&lt;br /&gt;            if(isLeapYear(i))&lt;br /&gt;            total+=366;&lt;br /&gt;            else&lt;br /&gt;            total+=365;&lt;br /&gt;            &lt;br /&gt;            for (int i = 1;i&amp;lt;month;i++)&lt;br /&gt;            total += getNumberOfDaysInMonth(year ,i);&lt;br /&gt;            &lt;br /&gt;            return total;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static int getNumberOfDaysInMonth(int year,int month){&lt;br /&gt;            if(month==1||month==3||month==5||month==7||month==8||month==10||&lt;br /&gt;            month==12)&lt;br /&gt;            return 31;&lt;br /&gt;            &lt;br /&gt;            if(month==4||month==6||month==9||month==11)&lt;br /&gt;            return 30;&lt;br /&gt;            &lt;br /&gt;            if (month==2) return isLeapYear(year)?29:28;&lt;br /&gt;            &lt;br /&gt;            return 0;&lt;br /&gt;            &lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static boolean isLeapYear(int year){&lt;br /&gt;            return year%400==0||(year%4==0&amp;amp;&amp;amp;year%100&amp;#33;=0);&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;static void showMenu3(int year,int num){     &lt;br /&gt;                &lt;br /&gt;         System.out.println(&amp;quot;what do you want to do&amp;quot;);&lt;br /&gt;         System.out.println(&amp;quot; [1-&amp;quot;+getNumberOfDaysInMonth(year,num)+&amp;quot;]. Choose a day:&amp;quot;);&lt;br /&gt;         System.out.println(&amp;quot;    [0]. Exit MyCal&amp;quot;);&lt;br /&gt;         System.out.print(&amp;quot;Selection: &amp;quot;);&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;static void showMenu4(){&lt;br /&gt;         System.out.println(&amp;quot;what do you want to do&amp;quot;);    &lt;br /&gt;         System.out.println(&amp;quot;[1]. Make a new appointment&amp;quot;);&lt;br /&gt;         System.out.println(&amp;quot;[2]. Delete an appointment&amp;quot;);&lt;br /&gt;         System.out.println(&amp;quot;[0]. Exit&amp;quot;);&lt;br /&gt;         System.out.print(&amp;quot;Selection: &amp;quot;);&lt;br /&gt;            }&lt;br /&gt;            &lt;br /&gt;&lt;br /&gt;static void printDay(int year,int month,int day){&lt;br /&gt;       System.out.println(&amp;quot;-----------------------------------&amp;quot;);&lt;br /&gt;       System.out.println(&amp;quot;   &amp;quot;+day+&amp;quot;  &amp;quot;+getMonthName(month)+&amp;quot;  &amp;quot;+year);&lt;br /&gt;       System.out.println(&amp;quot;-----------------------------------&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;my problem is i cant output the calendar to the file and input it from the file too. besides that, i also cannot add an appointment on it...&lt;br /&gt;i know my coding is abit messy, but i hope all the expert here can help me.. thx....</description>
            <author>tyson147</author>
            <category>Codemasters</category>
            <pubDate>Thu, 04 Sep 2008 12:57:59 +0800</pubDate>
        </item>
        <item>
            <title>MYSQL and interface</title>
            <link>http://forum.lowyat.net/topic/664640</link>
            <description>dear seniors, i m now doing my database project which related to library. i done all the erd and normalization stuff, so now i have to create the database using MYSQL. i downloaded it and i already created those tables. now the problem is i dont know how to make the interface... i need it to insert data, update data and delete data. does anyone can teach me how to do it? thanks for ur kindness....</description>
            <author>tyson147</author>
            <category>Codemasters</category>
            <pubDate>Wed, 02 Apr 2008 03:18:54 +0800</pubDate>
        </item>
        <item>
            <title>pls guide me to solve this problem</title>
            <link>http://forum.lowyat.net/topic/617224</link>
            <description>juz as the topic, i dont know how to start to solve this problem.&lt;br /&gt;can anyone guide me to solve it? i m not asking for the source code. thx&lt;br /&gt;below are the questions.&lt;br /&gt;&lt;br /&gt;1.  design and implement a class dayType that implements the day of the week in an program. the class dayType should store the day, such as Sun for Sunday. the program should be able to perform the folowing operations on an object of type dayType:&lt;br /&gt;a) set the day&lt;br /&gt;b) print the day&lt;br /&gt;c) return the day&lt;br /&gt;d) return the next day&lt;br /&gt;e) return the previous day&lt;br /&gt;f) calculate and return the day by adding cetain days to the current day. for example, if the current day is monday and we add 4 days, the day to be returned is friday. similarly, if today is tuesday and we add 13 days, the day to be returned is monday.&lt;br /&gt;g) add the appropriate constructor&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2.  write the definition of the functions to implement the operations for the class dayType as defined in Question 1. also, write a program to test various operations on this class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;i have to make the header file, but i dont know how to guide it, can anyone guide me?&lt;br /&gt;thx very much.</description>
            <author>tyson147</author>
            <category>Codemasters</category>
            <pubDate>Tue, 22 Jan 2008 16:24:29 +0800</pubDate>
        </item>
        <item>
            <title>how to make a bootable cd</title>
            <link>http://forum.lowyat.net/topic/613980</link>
            <description>my fren just gv me 2 folder of file that use for make a bootable cd, but i dont know how to install it, anyone can teach me?&lt;br /&gt;the pic is the 2 folders wif the bootable files.&lt;br /&gt;i&amp;#39;m first time posting image, hope it works...&lt;br /&gt;&lt;br /&gt;[attachmentid=381272]</description>
            <author>tyson147</author>
            <category>Technical Support</category>
            <pubDate>Thu, 17 Jan 2008 17:30:52 +0800</pubDate>
        </item>
        <item>
            <title>need help on windows live</title>
            <link>http://forum.lowyat.net/topic/612012</link>
            <description>hi, i have problem with my windows live messenger, i juz finish format my laptop, then i install windows live 8.1, and i found tat then my frens log in, when receive an email, and receive a msg, there is no pop up, or any sound. so i check on my sound and alert, there is no problem with it. then i upgrade it to windows live 9.0, the problem still there... can any senior help me?&lt;br /&gt;thanks very much&amp;#33;</description>
            <author>tyson147</author>
            <category>Technical Support</category>
            <pubDate>Mon, 14 Jan 2008 23:54:43 +0800</pubDate>
        </item>
    </channel>
</rss>
