in Search

αρχάριος

greek, noun, pron. "archarios" - beginner, learner, neophyte, novice

February 2008 - Posts

  • Create PDF in C# 2008 [Express]- A PDF Sample App For Grade 1 Pupils

    A pdf application. Convert the content of the richTextBox control into a pdf doc. That's it. I'm trying to get around C#. This little app is based on popular tutorials you can find everywhere on www. Well, this might be a good way to jumpstart C# programming.

    I am still waiting for Keith's ADO.Net Step-by-Step... 

     

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using iTextSharp.text.pdf;
    using iTextSharp.text.rtf;
    using iTextSharp.text;
    using iTextSharp;
    using System.IO;


    namespace MarlonRibunal.iCreatePDFSharp
    {
    public partial class frm_iCreatePDF_main : Form
    {
    public frm_iCreatePDF_main()
    {
    InitializeComponent();
    messageiCreatePDF();
    richTextBox1.Text = "iCreatePDF Test - A C# Application By Marlon Ribunal";
    }

    private void button1_Click(object sender, EventArgs e)
    {
    string iCreatePDFdir = "C:\\iCreatePDF\\PDFTest";
    string iCreatePDFTest = iCreatePDFdir + "\\PDFTest.pdf";

    Directory.CreateDirectory(iCreatePDFdir);

    Document pdfDocCreatePDF = new Document();

    PdfWriter.GetInstance(pdfDocCreatePDF, new FileStream(iCreatePDFTest, FileMode.Create));

    pdfDocCreatePDF.Open();
    pdfDocCreatePDF.Add(new Paragraph (richTextBox1.Text));
    pdfDocCreatePDF.Close();
    }

    private void messageiCreatePDF()
    {
    MessageBox.Show("iCreatePDF is a PDF Creator Coded in C# By Marlon Ribunal. CLICK OK TO PROCEED");
    }


    }
    }
     
  • I know somebody is reading my blog

    Funny...

    I found this in my DevPinoy Blog's referral list...

    What’s Greek for ‘Sign Me Up’?

    And...Some Info on FIOS...

     

  • I Am Getting Rid Of My DSL Internet Service!!!

    Well, I am doing that for a reason...a good one.

    It is not that I've grown weary with my current download stream of 1.5 MBit/sec, which I believe is the average in households here in Calif.

    More than a week from now, I am switching to FIOS with a bandwidth tier of 15 Mbit/s Downstream / 2 Mbit/s Upstream. I admit I do not know any advantage of fiber optics over DSL. So I consulted Wiki:

    "Verizon FiOS products are delivered over the FTTP network using passive optical network (PON) technology. Voice, video, and data travel over three wavelengths in the infrared spectrum. To serve a home, a single-mode optical fiber extends from an optical line terminal (OLT) at a FiOS central office or head end out to the neighborhoods where an optical splitter fans out the same signal on up to 32 fibers- thus serving up to 32 subscribers. At the subscriber's home, an optical network terminal (ONT) transfers data onto the corresponding copper wiring for phone, video and Internet access."

     Ahhhh...

    I don't think I understood that! 

    All I know is what my ISP's salesman told me, "FIOS is 12x faster than DSL". He convinced me with that one-liner.

     

    FIOS ONT                                           

                                                                           FIOS ONT 

     

  • The SPFILE and PFILE in Oracle 10g

    Somebody from LinkedIN was asking about the difference between SPFILE and PFILE in Oracle 10g. The following is a bit of explanation about the two initialization files.

    The default initialization parameter file used by Oracle 10g is the SPFILE. The SPFILE (also known as the "Server Binary Parameter File" or simply "Binary Parameter File") is the binary form of your parameter file. The SPFILE, being a binary file, cannot be edited. If you need to do any changes on your initialization parameters for any reasons, you can only do the changes on your PFILE, which is the text form of your parameter file. Please do remember that you must explicitly declare use of the PFILE. You can do that by the command:

    [Suppose your database is called MarlonDB]

    STARTUP PFILE=’C:\oracle\product\10.2.0\admin\MarlonDB\initMarlonDB01.ora’

    If you use your SPFILE to initialize the database, your command is simply:

    STARTUP

    Take note that if your database has no existing SPFILE and you did not explicitly declare use of a PFILE, you will get an error. To create a SPFILE from your PFILE, use this command:

    CREATE SPFILE=’C:\oracle\product\10.2.0\db_1\database\spfileMarlonDB01.ora’ FROM PFILE=’C:\oracle\product\10.2.0\admin\MarlonDB\initMarlonDB01.ora’;

    Similarly, you can create your PFILE from the SPFILE with this command:

    CREATE PFILE=’C:\oracle\product\10.2.0\admin\MarlonDB\initMarlonDB01.ora’ FROM SPFILE=’C:\oracle\product\10.2.0\db_1\database\spfileMarlonDB01.ora’;

    In summary, PFILE is the text form of the initialization parameter file. You can edit the PFILE and you must explicitly declare use of the PFILE when you are starting up the database with it. The SPFILE, on the other hand, cannot be edited. You do not need to explicitly declare use of it on startup because this is the default initialization file used by Oracle 10g.

     

    [author's note: same article is also published in my other blog, http://dbalink.wordpress.com. -Marlon Ribunal 

  • Microsoft to Buy Yahoo!

     Microsoft is positioning itself to go up against Google by a move to buy Yahoo!

     

    Quoted: 

    "Microsoft has offered to buy the search engine company Yahoo for $44.6bn (£22.4bn) in cash and shares."

    "The offer, contained in a letter to Yahoo's board, is 62% above Yahoo's closing share price on Thursday.

    Yahoo cut its revenue forecasts earlier this week and said it would have to spend an additional $300m this year trying to revive the company.

    It has been struggling in recent years to compete with Google, which has also been a competitor to Microsoft."

    Read more...