Archive

Author Archive

Conspiracy Theory: Earthquake, Tidal Waves and other Natural Disaster

March 3rd, 2010

Do you really think Earthquake, Tidal Waves and other Natural Disaster are really natural event? Like Haite Earthquake, Phuket Thailand Tsunami and Chile Earthquake…

For my analysis, these are man made events. It’s a test causing Earthquake, Tidal Waves and other Natural Disaster. This is another mass destruction weapon of U.S. Government. It might be the HARP project nor other Top Secret project.

Yet, I don’t know how to prove it cause I’m just a low life human being… :P

Camilo III Madness, Personal

Everyday Brown-out ordered by Politicians from Above

March 3rd, 2010

This scheduled brown-out in Iligan City and all over the Philippines, does really about El Niño? I don’t think so! Let me reveal the truth to you.

One of the employee from NAPOCOR I talked to and he said, “It is an order from above… It’s not El Niño. There are enough water to supply the turbine of NAPOCOR. I think this is political strategy.”

See folks, do not believe in the TV news or newspaper saying that its about El Niño! Fuck them! For my analysis, this is just a strategy to take down the Election 2010. Or let’s just say someone really want to cheat or desperate to win for power and greed. Well, if GMA fuck up FPJ… Then she can do it again to let her presidential bet win.

I believe Philippines will just be a junkyard in the future. Just like Somalia nor Niger. There’s no hope for these people. Everybody is running for the money… For their glorified greed! *sigh!* God help us! Let the Philippine islands sink to the bottom of the sea, just like Atlantis!

Camilo III Madness, Personal

DBP RORO Year 3: Team APO Reunion

February 21st, 2010

It’s been 1 year and 2 months that we haven’t meet again since December 2008 (DBP RORO Racers Year 3 Christmas Party). Maria Beatriz Saw visit Malaybalay Bukidnon with her Mom for project arrangements. Since its just 3 to 4.5 hours away, we plan to meet up and go for adventure once again at Zip Zone at Dahilayan, Camp Philips, Bukidnon (Longest Zipline in Asia).

*skriiiitttt!* (Since I’m so sleepy coz I arrived home around 2:30 AM… Shortcut!) At the end, it was a great day with my GF (Angela Lyle Sanson), friends (Raffy, Kyna and Fiona) and special guest (celebrity Maria Beatriz Saw)… Tiring but superb experience with Zip Zone and another memorable camaraderie with DBP RORO Racers Year 3 – Team APO.

Camilo III Celebrities, Friends, People, Personal, Wooow! , , , , , , , , , , , ,

underNeaTH thE WavES…

February 1st, 2010

doing things in a milder way,to have a proper and positive perspective with life.many questions drenching me.. when can i bid goodbye to these emotional fatigue, tagging themselves voluntarily with me?

Victor Hugo said that the greatest happiness of life is the conviction that we are loved — for ourselves, or rather in spite of ourselves..

Songs, quotes, advises are written so nicely and undeniably promising… is it as promising as these songs we hum? quotes we read and live by? advises we’ve listened and taken?

i used to define love as both my admission of strength and my admission of weakness.. lavishly spoken, unfamiliar with how it really is..

until you…

until you i found the phrase’s truest sense, the deeper meaning on how to be feeling it.. living it.. in its truest sense you are indeed my admission of strength and weakness…

…. knowing there could have more than this life with you could offer.
……. i may be better off all of these we are into, but either way it is going to be difficult to breathe…

despite all of these things, i would still chose to be with you..
……with the moments you made me extremely mad, you are also the very reason that made me extremely happy.

…. you are my definition of love in its truest sense, every step i took with you has its cause, and all these things we are doing just kept on making sense everyday,

and what we are to become is the answer to this difficult love..

at times when the admission of weakness calls, the fight to stand firm with admission of strength lingers..

…..there could be nothing right without you..

……… it is not right if not you..

Camilo III Gelyle's Poems , , , ,

No hay palabra de honor

January 23rd, 2010

When I watched TV last December 2009 (which I watch TV rarely), I saw the advertisement of the promised politician, Manny Villar. (which also I got irritated with his ads) And I said, *puff!* He really got a guts running for President after his controversial C5. Not to mention what he promised to me and my colleagues way back year 2005, under Mindanao Business and Management Youth Congress program. (see picture below) And until now his ads still air on ABS-CBN. And thinking that every ads in ABS-CBN cost hundreds of thousands. Yet he can afford to air his ads. Then I realized the C5 controversial, and said to myself… Now I get it why he got enough funds for his campaign.

Manny Villar with MBMYC Staff

Manny Villar with MBMYC Staff

The picture was a meeting with Manny Villar and the MBMYC Staff. Villar promised that he will finance a livelihood program and helping the poor in the remote areas in Cagayan de Oro City. He made a lot of promises that day. Yet he accomplished nothing. After the meeting, no funds has been sent to us.

After that, I concluded that this politicians will do nothing for our country!

Election 2010, I won’t vote any president! They are all the same! Dick, Binay, Noynoy and Villar… Same feathers! And they flock together!

Filipinos will always be hopeless with these kind of people!

In addition, I was tagged in the facebook and laugh hard about it… And I think its true! Bwuahahahaha!

:)

Camilo III Madness, Personal

Visual C#: Detect Conflict Schedule

January 18th, 2010
Screenshot

Screenshot

It seems a lot of people are searching about solving conflict schedule. So I decided to create a sample. Below is the core code of checking conflict schedule…

// sample conflict detection (defined) [start]
DateTime d = new DateTime(2010, 1, 13);
richTextBox1.Text = DateTime.Now.ToLongDateString() + ” = ” + d.ToLongDateString() + “\n”;
if (DateTime.Now.CompareTo(d) > 0)
{
richTextBox1.Text += “true\n” + DateTime.Now.CompareTo(d).ToString();
}
else
{
richTextBox1.Text += “false\n” + DateTime.Now.CompareTo(d).ToString();
}
richTextBox1.Text += “\n\n”;
DateTime dx = DateTime.Now;
//MessageBox.Show(dx.Hour.ToString());
DateTime[] dt = new DateTime[4];
// enrolled schedule
dt[0] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 8, 0, 0);
dt[1] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 9, 0, 0);
// adding new schedule
dt[2] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 9, 0, 0);
dt[3] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 10, 0, 0);
// checking schedule conflict
if (((dt[0].CompareTo(dt[2]) < 0) && (dt[1].CompareTo(dt[2]) > 0)) || (dt[0].ToShortTimeString() == dt[2].ToShortTimeString()))
{
richTextBox1.Text += dt[0].ToShortTimeString() + ” – ” + dt[1].ToShortTimeString() + ” against ” + dt[2].ToShortTimeString() + ” – ” + dt[3].ToShortTimeString() + “\nResult: CONFLICT”;
}
else
{
richTextBox1.Text += dt[0].ToShortTimeString() + ” – ” + dt[1].ToShortTimeString() + ” against ” + dt[2].ToShortTimeString() + ” – ” + dt[3].ToShortTimeString() + “\nResult: NO CONFLICT”;
}
// sample conflict detection (defined) [end]

If you want to download the whole code, link below and enjoy… Do not practice the copy and paste! :)

Download: Detect Conflict Schedule (5)

Camilo III Info.Tech, Software Development, Visual C#

Ubuntu Professional Certification

December 18th, 2009
Ubuntu Girl

Ubuntu Girl

Today, I tried to answer the pre-test of UPC or the Ubuntu Professional Certification… and the result was…

Dear Camilo III,

Thank you very much for taking part in the pre-training assessment.

Your score is 9, which means that you are probably over-qualified for this course.

As a next step we suggest that you read through the Deploying Ubuntu Server Edition course overview found here: http://www.ubuntu.com/training/certificationcourses/server and then complete the corresponding online assessment.

Ubuntu Training courses are taught by Canonical-trained Ubuntu Certified Instructors. The Deploying Ubuntu Server Edition course is available through online training and classroom training, so you can can learn in the environment that suits you best.

Visit: www.ubuntu.com/training for more information.

Best regards and good luck
The Ubuntu Training Team

How flattering!! I admit it, I’m not that good… but anyway, the test is so easy.. hahahaha.. :) And one thing, I don’t have a dollars to pay the $1,600 for the Deploying Ubuntu Server Edition Certification. Its like PhP 76,800.00 in my country, that is 9 months to save my whole salary. hahahaha.. Damn! I will starved to death if I will take the exam… :P

Camilo III Administration, Info.Tech, Operating Systems

Visual C#: Retrieving Image (BLOB) from MySQL database

December 14th, 2009

I’ve been searching an article about storing and retrieving an image (BLOB data type) from MySQL database. Somehow, I only found the retrieving process but I created the storing process using PHP… :)

You may download my works, link provided below…

  • idsystem_database.sql.zip – the dump file of MySQL database; import this SQL file before running the project
  • the rest of the files are the project sample files

-> retrieveImg_public.zip (13) or http://camilord.kagayan.com/my.files/retrieveImg_public.zip

For the credits, Thanks to Markusek Peter…

MySqlConnection myConnection = new MySqlConnection(myConnString);

string testQuery = “SELECT sp.studePhoto, s.firstName, s.lastName

FROM students AS s, student_photos AS sp WHERE s.id = sp.studentID”;
MySqlCommand myCommand = new MySqlCommand(testQuery, myConnection);

myConnection.Open();
MySqlDataReader myReader = myCommand.ExecuteReader();

FileStream fs; // Writes the BLOB to a file (*.jpg).

BinaryWriter bw; // Streams the BLOB to the FileStream object.

int bufferSize = 100; // Size of the BLOB buffer.

// The BLOB byte[] buffer to be filled by GetBytes.

byte[] outbyte = new byte[bufferSize];
long retval; // The bytes returned from GetBytes.
long startIndex = 0; // The starting position in the BLOB output.

while (myReader.Read())
{
DateTime tmp = new DateTime();
tmp = DateTime.Now;
// Create a file to hold the output.
string filename = camilordMD5(tmp.ToLongDateString().ToString() + tmp.ToLongTimeString().ToString()) + “.jpg”;

string dest = Directory.GetCurrentDirectory() + “/” + filename;
fs = new FileStream(dest, FileMode.OpenOrCreate, FileAccess.Write);
bw = new BinaryWriter(fs);

// Reset the starting byte for the new BLOB.
startIndex = 0;
// Read the bytes into outbyte[] and retain the number of bytes returned.

//myReader.GetBytes(0, startIndex, outbyte, 0, bufferSize);
retval =(long) myReader.GetBytes(0, startIndex, outbyte, 0, bufferSize);
lblName.Text = myReader.GetString(1) + ” ” + myReader.GetString(2);

// Continue reading and writing while there are bytes beyond the size of the buffer.
while (retval == bufferSize)
{
bw.Write(outbyte);
bw.Flush();

// Reposition the start index to the end of the last buffer and fill thebuffer.
startIndex += bufferSize;
retval = myReader.GetBytes(0, startIndex, outbyte, 0, bufferSize);

}

pictureBox1.ImageLocation = Directory.GetCurrentDirectory() + “/test.jpg”;
//pictureBox1.Image = retval;

// Write the remaining buffer.

bw.Write(outbyte, 0, (int)retval – 1);
bw.Flush();

// Close the output file.
bw.Close();
fs.Close();
}

Camilo III Info.Tech, Software Development, Visual C#

Visual C#: Handling X button (top-right)

December 7th, 2009

xbuttonDisabling the X button

private const int CP_NOCLOSE_BUTTON = 0x200;

protected override CreateParams CreateParams
{
     get
     {
        CreateParams myCp = base.CreateParams;
        myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON;
        return myCp;
     }
}

Add confirmation if window closing or closed…

Insert this code to Main form or the Form1.cs


private void Form1_Closing(object sender,
                   System.ComponentModel.CancelEventArgs e)
{
     if (MessageBox.Show("Are you sure you want to exit?", "Confirm exit",
         MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
     {
        e.Cancel = true;
     }
}

Insert this to Form1.Designer.cs…

this.Closing += new System.ComponentModel.CancelEventHandler(
                             this.frmCCS_Closing);

Camilo III Info.Tech, Software Development, Visual C#

[PHP] Converting a value to MAC address format

October 20th, 2009

php_codeI just want to post this since someone ask about it. It might help if someone in this world is searching for an answer with the same problem my friend does. This is about converting a value of 0014:f8c4:9e32 or 0014f8c49e32 to 00:14:f8:c4:9e:32

Now here’s some answers for that…

function convertMACAddress($input)
{
    // clean up unwanted characters
    $input = preg_replace( '/[^a-zA-Z0-9]/', '', $input);

    // initiate character positioning
    $pos = 0;

    // declare output container
    $output = '';

     // if given MAC is invalid, terminate process and return an error
     if (strlen($input) < 12)
     {
           return '[Unrecognized MAC address]';
     }

    // initiate convertion...
    for ($i = 0; $i < 6; $i++)
    {
           if ($i == 0)
           {
                  $output .= substr($input, $pos, 2);
           }
           else
           {
                   $output .= ':'.substr($input, $pos, 2);
            }
            $pos += 2;
     }

      return $output;
}

That’s it… Problem solved. :) If need a sample code, please download the source -> Mac Convert (8) — Have fun coding..

Camilo III Info.Tech, PHP, Web Development