web developer web developer web developer web developer web developer


Archive for the 'Updates' Category

Friendster no images - Smartbro Problem

Before you freaked out because you cannot see images on friendster.com and call Smartbro support representative. Then the support rep would tell you the problem is on the friendster.com domain and not on their servers.

Well the real truth is the problem is on SmartBro's DNS servers. My friend Mike posted an article that the DNS has been hacked, visit here.

Just change your DNS servers to a working one:

69.64.155.148
121.1.3.208
121.1.3.199
121.1.3.250
168.95.1.1

Editing post

To my avid readers, as you would notice there are some codes on my blog post. As not to get confused I'll be including a language description to some post, so not the readers may not guess in what particular language it has been written.

A day in C++ and MYSQL

It has been an end to my C++ class last Sunday, which I've enjoyed the 5 weeks training. Thanks to my trainor who is not so selfish in sharing his knowledge to his students. Kudos to Ernest Bercilla, a full time applications trainor of ITTC.

Mostly all of the languages I've learned it was just self taught, actually this was my first time acquiring a knowledge in a programming language on a training. Well as day one in my class, my objective was to write C++ code to connect to the MYSQL API, which I did now because of the foundation that I've learned during the training.

Here's the steps, how I've used MySQL API, my C++ Ide is codeblocks
1. download a library from http://devpaks.org/ , find the ones for mysql under database.
2. extract the package, am using 7-zip, so DevPak files is supported.
3. create a mysql folder under the C:\Program Files\CodeBlocks\MinGW\include
4. copy the include from the content of libmysql to the folder that has been created.
5. set the library and point it to the location of libmysql.a

6. To test create a database and a table name.

Here's my sample code:

 
/* Language : C++ */
 
#include <windows.h>
#include <iostream>
#include <mysql/mysql.h>
 
using namespace std;
 
int main() {
    //connection params
    char *host = "localhost";
    char *user = "root";
    char *pass = "";
    char *db = "cardsauce";
 
    //sock
    MYSQL *conn; //pointer
    MYSQL_RES *res;//pointer
    MYSQL_ROW row;
 
    conn = mysql_init(0);
    if (!conn){
         cout << "sock handle failed!" << mysql_error(conn) << endl;
    }
 
    //connection
    if (!mysql_real_connect(conn, host, user, pass, db, 0, NULL, 0)){
        cout << "connection fail: " << mysql_error(conn) << endl;
    }
 
    mysql_query(conn,"SELECT * FROM users");
 
    res = mysql_use_result(conn);
 
    while (row = mysql_fetch_row(res)) {
        cout << row[0] << " " << row[1] << endl;
 
    }
 
    //closing connection
    mysql_close(conn);
 
    return EXIT_SUCCESS;
}
 

Rapid PHP 2008 / version 9.0.95

There's a new upgrade to my favorite PHP Editor, here's the latest improvements.

What's new?

Although we did not manage to do everything that was planned (as usually), a lot of work has been done and a lot of good stuff has been added.

Please note that some items apply only to the top of the range products, for example, PHP auto complete improvements apply to Rapid PHP 2008 and WeBuilder 2008 only.

+ Added Big: Secure FTP support
+ Added Big: Re-wamped, faster File Explorer
+ Added Big: CVS / SVN Support (via 3rd party clients e.g. TortoiseSVN and shell menu - TortoiseSVN icons are now visible and shell menus are accessible)
+ Added Big: Code templates
+ Added Big: HTML Tag block highlighting
+ Added Big: Missing HTML tag highlighting
+ Added Big: Highlighting of missing brackets
+ Added Big: Existing tag editing via dialog windows
+ Added Big: Right-click tag editing via dialog windows
+ Added Big: Realtime PHP & Ruby syntax check
+ Added Big: Ruby code explorer
+ Added Big: Ruby auto complete
+ Added Big: Code collapse based on code
+ Added Big: Better X-Ray (width, height, size labels, properties)
+ Added Big: Language Browser replaces Object and Markup browsers
+ Added: Reload from FTP command
+ Added: Auto close curly brackets (optional)
+ Added: Auto indent curly brackets (optional)
+ Added: Select between braces
+ Added: Gutter-click close to the left side (16 pixels) sets break-point for PHP files
+ Added: PHP auto-complete and function hints read also includes
+ Added: Allow HTML features in JavaScript code
+ Added: Clear all breakpoints
+ Added: Closing HTML tag auto complete
+ Added: Open file at cursor for PHP
+ Added: All PHP code can now be highlighted with solid background
+ Added: Focus inspector row based on selected CSS property
+ Updated: USB support is now more robust
+ Updated: Settings export now works better
+ Updated: Load parsers only as needed (0,2 sec load time increase on QuadCore, mor eon slow pcs)
+ Updated: Updated entities file / special character replacement
+ Updated: Removed "Editors", replaced with "Programs" + parameter support
+ Updated: New looks for the Welcome wizard
+ Updated: Replace tokens now can use single input multiple times
+ Fixed: Can now save hidden files
+ Fixed: Toolbars on Vista aero
+ Fixed: Problems with buggy FTP servers not understanding LIST -al params, now params can be set by user.
+ Fixed: Ctrl+A now works in find dialog
+ Fixed: Show hour-glass cursor while tidy works for long files
+ Fixed: Convert style blocks rel=stylesheet is now rel="stylesheet"
+ Fixed: Re-load file explorer on project edited to refresh file types
+ Fixed: Preview temp file for CSS is generated only preview pressed
+ Fixed: Editor now scrolls automatically when Backspace pressed and caret not far from edge
+ Fixed: Style block selection bug http://forums.blumentals.net/viewtopic.php?p=9306#9306
+ Fixed: Related styles now work with mixed case class names
+ Over 50 other fixes and improvements

Dayrit.org offline for about 2 weeks

The domain which my cousin Jonathan and I co-managed was off line for about 2 weeks, he forgot to renew the domain. During this period we asked the philhosting.net support to solved our issue. Thus I use my paypal account to add funds to the reseller account, unfortunately on their website it does not update the added funds on the account. It took them about more than a week to resolve the issue.

Staying Awake

Yesterday, been working 22 hours. As I have many deadlines to meet and task which are urgent. Didnt notice that been working that long. Work range from my freelance night time and during daytime my work at the University.

At last my class at ITTC will start this coming Sunday, after a long wait I am included in the C++ course. I am not a newbie to C++ but I've not been coding my favorite language since last 5 years. I want to refresh myself and start to join some Open Source projects. Actually C is my first love, thanks to Bjarne Stroustrup's for superseeding my favorite language and now what becomes C++. I dont have much freetime but will definitely insert a few minutes of my time.

Rapid PHP 2007 version 8.3 - Review

Computer Platform: Windows XP SP 2

This is a short review about my editor, which is Rapid PHP by Blumentals Software. First of all my background. I have been developing websites since 2001, my editor of choice was Allaire's Homesite which have been acquired by Macromedia then Adobe. All the past 7 years been using it and was accustomed to it's features. Also there's a free CSS editor come's with it which is TopStyle. My recent problem with Homesite is it has not been updated thru the years, there isnt much development after Nick Bradbury left Allaire. I also have tried Dreamweaver but I found it much more applicable for HTML/XHTML codes only, well I need a code explorer for php and javascript.

I have tried many editors to replace my beloved Homesite, there's a list at the PHUGPH forum about the recent editors most PHP programmer would use. On the list which I havent tried is the Zend Studio. I cannot compare much of it to Rapid PHP except for the bloated price of Zend Studio.

The first attracted me to Rapid PHP is the loading time, it is very slick and smooth. Well most of the time of maintaining my clients site are only small edits. I woud not wait beyond 60 seconds loading an editor just to replace a small typo. Comparibly load faster than Homesite.

The interface was very convenient not too complicated, I quick started coding rather than spending time guessing toolbar icons. The syntax highlighting was very easy to modify. Code explorer was very helpful in coding classes and editing/analyzing php scripts which are written by others. There is a php function hint, well most of the time I always look at the php online manual regarding php built-in functions, in this editor I can skip that process also the php manual can be integrated once the manual has been downloaded in CHM format. Also on the menu under PHP, server variables can be inserted into the code. It is very quick indeed.

Another thing Rapid PHP is also a HTML, Javascript and a CSS editor, if you are accustomed using table's in a web layout shifting to div's is not very complicated. The code can be previewed horizontally and vertically and the preview can be done in IE and Firefox. Doing AJAX sites is a breeze because there's a javascript autocomplete.

The nice features prompted me to purchase Rapid PHP, up until now I didnt regret that I have done so and very grateful that I have discovered this nice software. There's a special discount offer $49.85 if you would purchase it now. Hurry Karlis the owner might change his mind, once you purchase there is unconditional 30-day Money-Back Guarantee, Instant Delivery via download, Secure Order Form with SSL encryption and Free Updates. Free Updates is not just a sales pitch, you will understand why when you order.

New PNB

The Philippine National Bank has been once owned and managed by the government, I have a payroll saving's account which the University of the Philippines used as their means for financial transactions. Last year as it has been owned entirely and transfered to Lucio Tan Group and has been considered as a private bank, there's has been an existing rule that private banks cannot serve government offices. So the payroll has been transfered to Land Bank of the Phlippines but I keep my account there because I used it to deposit some of my international checks there.

Back then in PNB, It would took 45 banking days to clear an international check as promised by their tellers and helpdesk officers. On January 31, 2008 I deposited an international check and ask again to confirm how many days would the check would be cleared and the amount would be transferred to my account. The teller said "It would took 45 banking days to be in your account as it is our standard policy". I am expecting it by mid April 2008, to my surprise when I check my account today on their online banking facility it was cleared . LIARS, :) LOL.

I appreciate now their new system and used them in withdrawing funds from paypal. Again thanks PNB UP Diliman branch for the nice support.

Congrats Ate Nelly

I want to congratulate my office mate, Nelly for completing the course at UP Information Technology Training Center. Her course was Basic Web Development the course range from Basic HTML, Advance HTML, CSS and Javascript. Though she doesnt have any prior experience in web technologies, she was a complete newbie, but she completed it as the top of the class.

Having her work validated thru compliant standard code and render on different browsers, that has been a plus on her work. You can see her first work at http://doxiepet.freehostia.com/ . Not too fancy design isnt it but her teacher emphasizes more grades on the code besides it's web development not web design principle course. :) By the way her teacher is Regnard Raquedan.

Again congrats Ate Nelly.

Ordinary day

Four days to go before one of my domains expired, if i wont get a paypal by this weekend, I think I need to go to my bank and deposit money to my EON account.

I just finished the report on average class size per unit, I first submitted it last week though there are some problems on my report pointed out by my supervisor. The average class size is verified thru the number of students per unit. Thus a given subject cannot be greater than the number of students enrolled on a particular unit. I dont have time to write a script for it so I verified it manually. After this I would update the academic management system which has MS Access as frontend and MS SQL Server 2003 as the backend data.

On my freelance time, as usual been swamped by work and the daily routine is back to 2 hours of sleep at night, I do sleep during lunch breaks. I have 4 sites to work on, the task range from PSD slicing, CSS coding, integrating javascript, script maintenance and script debug. I do have a recent request to update AWS3 to AWS4.

Next Page »