My First Scratch Project – Heist

October 27, 2012 Leave a comment

Hear Ye! Hear Ye!

My first scratch project is done.
This is an rpg puzzle-like game.
I’ve done this for my edx Cs50 Harvard project and it took me 3 days to finish it.

Hope you like it!
http://scratch.mit.edu/projects/mjoypascual/2864430

Heist Scratch Walkthrough:
1. Chapter 1:
website name: decoy.com
password: joy9a
2. Chapter 2:
Choose 3rd door.
Maze tip: Run on the black side background.
3rd Puzzle: Choose the counterfeiter

Categories: Programming

LinkBucks Bot 100% Working

September 25, 2012 Leave a comment

Hi!

I’ve tried the following Linkbucks bot and so far it is working well.

It can give you a $2 earning per hour.

PROCEDURE

1. Just download the bot program.

2. Find proxies and save it in a text file.

3. Upload the text file in the bot program

4. Bot will auto-click links.

Note: You should find proxies that is not included in the Linkbucks database in order for this to work.

Good luck!

 

Categories: Site Reviews

Pisobid Website Review

September 21, 2012 Leave a comment

Description

PisoBid is an auction site wherein the auction item starts at 1 peso ₱1.00. Price goes up by one centavo (₱0.01) for  each bid. Once you bid, your money will automatically be deducted by P0.01 even though you don’t win. You started with 5 free bids. After that, you need to purchase for more.

Review

Chances of winning is very slim. Website owner can manipulate the bids. My office mates and I tried to bid for a very cheap product (computer fan). The average winning price of this item is P1.8. Because we are many, the total number of our bids are more than 200. We expected to win it. We keep on bidding against different people. The price reaches up to P9.63.  We don’t know why it reaches that high. It even exceeds the average bid of cellphones which is P8+. That’s why we conclude that this is a total scam.

 

 

Categories: Site Reviews

Free Quality Online IT Courses for Everyone

September 21, 2012 Leave a comment

As an IT practitioner, being updated to the latest technology is what will give you an edge in your career. Thirst for knowledge is a requirement. No pain, no gain. That’s why I’m really happy that top universities offer free online courses that can help in boosting up my IT career.

EdX, Coursera and Udacity are some of the online websites that offer this kind of opportunity to people like me. I’ve taken several courses in these websites and so far I really enjoyed it. There are plenty of courses to choose from and they came from prestigious schools like Harvard. Berkeley, MIT, Princeton, etc. Each course have video lectures, exercises, projects and exams.  After the course completion, students can even have a certificate signed by the instructor. Cool right? 🙂

Categories: Programming

9en.US Website Review

September 21, 2012 1 comment

Description

9en.US is a free URL shortening service that offers you to earn more than $6.00/1000 clicks to your links. Minimum payout is $5.00 per week via Paypal.

Review

URL shortening service usually offers $5.00/1000 clicks. So 9en.US payout is above the average that’s why I’ve decided to try it.  I have earned $15.00 in a week and did not receive any payment. Sadly, this website is a fake. A total scam for sure!

Categories: Site Reviews

JQuery Validations Quick Tutorial

Source: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/

1. Include in html/jsp head
 <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js&#8221; type=”text/javascript”></script>

 

2. download and also include

<script src=”js/jquery.validationEngine-en.js” type=”text/javascript” charset=”utf-8″></script>
<script src=”js/jquery.validationEngine.js” type=”text/javascript” charset=”utf-8″></script>

3. download css and include also

<link rel=”stylesheet” href=”css/validationEngine.jquery.css” type=”text/css”/>

4.   include in head the following code to call the function

   <script>
	  	$(document).ready(function(){
	 		$("#formID").validationEngine();
		});
</script>

5. Sample body code

<form id="formID" method = "post" action = "AddApplicantServlet">
<table>
<tr><td>First Name: </td><td><input type = "text" id = "fName" name = fName class="validate[required,custom[onlyLetterSp]]"> </td></tr>
<tr><td>Middle Name: </td><td><input type = "text" id = "mName" name = mName class="validate[required,custom[onlyLetterSp]]"> </td></tr>
<tr><td>Last Name: </td><td><input type = "text" id = "lName" name = lName class="validate[required,custom[onlyLetterSp]]"> </td></tr>
<tr><td>Age: </td><td><input type = "text" id = "age" name = age class="validate[required,custom[onlyNumberSp]],maxSize[2]"> </td></tr>
<tr><td>Gender: </td><td><select name = gender ><option value='m'>Male</option><option value='f'>Female</option> </select> </td></tr>
<tr><td>Email Address: </td><td><input type = "text" id= "email" name = email class="validate[required,custom[email]]"> </td></tr>
<tr><td>Contact No: </td><td><input type = "text" id="contactNumber" name = contactNumber class="validate[required]"></td></tr>
<tr><td>City of Residence: </td><td><input type = "text" id="city" name = city class="validate[required]"> </td></tr>
<tr><td>School: </td><td><input type = "text" id="school" name = school class="validate[required]"> </td></tr>
<tr><td>Course: </td><td><input type = "text" id="course" name = course class="validate[required]"> </td></tr>
<tr><td>Year Graduated: </td><td><input type = "text" id="yearGraduated" name = yearGraduated class="validate[required,custom[onlyNumberSp]],maxSize[4]"></td></tr>
<tr><td>Previous Work Experience: </td><td><input type = "text" id="yearWorkExp" name = yearWorkExp class="validate[required,custom[onlyNumberSp]],maxSize[2]"> </td></tr>
<tr><td>Sourcing Channel: </td><td><select name = sourceChannel>
<option value='Jobstreet'>Jobstreet</option>
<option value='Direct'>Direct</option>
<option value='Referral'>Referral</option>
<option value='Board Exam'>Board Exam</option>
<option value='Oath Taking'>Oath Taking</option>
<option value='GradList'>GradList</option>
</select></td></tr>
<tr><td><input type= "submit" id="submit value = "submit">
</table>
</form>

—The End—-

Categories: Programming

J2EE Display Tag Quick Tutorial

Source: http://www.displaytag.org/1.2/

1. Download the latest version of display tag library..  (e.g. ver 1.2)  http://sourceforge.net/projects/displaytag/files/

2.  Unzip and paste the following .jar file in the WEB-INF directory:

  • displaytag…. jar
  • commons-beanutils….. jar
  • commons-lang…. jar
  • commons-collection… jar
  • commons-logging…jar
  • jstl-1.02.jar
  • standar-1.02.jar
3.  download theme / create css template for table  (e.g of content) and include it on your web-inf
table.report td,table.report th {
	font: menu;
}

table.report th {
	background: buttonface;
	border-width: 1px;
	border-style: solid;
	border-color: threedhighlight threedshadow threedshadow threedhighlight;
	cursor: hand;
}

table.report idcol {
	background: buttonface;
}

table.report tr.even {
	background-color: #399;
}

table.report tbody {
	height: 100px;
	overflow: auto;
}

table.report {
	height: 120px;
	overflow: auto;
}

table.report tbody tr {
	height: 10px;
}
4.  tag lib in jsp
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib prefix="display-el"  uri="http://displaytag.sf.net/el"%>
5. css code in html/jsp header
<link rel=”stylesheet” type=”text/css” href=”style.css” />
6. Body  Code in html/ jsp
<display-el:table name="applicantList" id="applicant" pagesize="15" defaultsort="1" requestURI="#applicant" export="true" class="bodyTable">
<display-el:column property ="applicationDate" title="Application Date"  sortable="true" headerClass="sortable"></display-el:column>
<display-el:column property ="applicantNumber" title="Application No"  sortable="true" headerClass="sortable"></display-el:column>
<display-el:column property ="fName" title="First Name"  sortable="true" headerClass="sortable"></display-el:column>
<display-el:column property ="lName" title="Last Name"  sortable="true" headerClass="sortable"></display-el:column>
<display-el:column title = "   EDIT   " headerClass="sortable">
<form action="editApplicant" method="post">
     <input type="hidden" value="${applicant.applicantNumber}" name="applicantNumber">
     <INPUT TYPE="submit" VALUE="EDIT">
</form>
</display-el:column>
<display-el:column title = "DELETE" headerClass="sortable">
<form action="deleteApplicant" method="post">
     <input type="hidden" value="${applicant.applicantNumber}" name="applicantNumber">
     <INPUT TYPE="submit" VALUE="DELETE">
</form>
</display-el:column>
</display-el:table>
</pre>

CODE EXPLANATIONS:
A. Display Table
name="applicantList"   - is an arrayList of Applicant Object from servlet
id="applicant"         - the object
B. Display Column Property (direct)
pagesize="15"          - max. number of rows to show per page
column property        - Applicant object field (Direct)
C. Display Column Title  - (code implementation inside)

column title           - name of column header that will be displayed 
D. Sortable
sortable="true"        - enable column to be sorted
headerClass="sortable" - if other column is sorted, this column will also be sorted

---- The end -----
Categories: Programming

Java Hangman Game Desktop Application

Visit the link —> http://tech.groups.yahoo.com/group/javaHangman/ to download the  Hangman game we’ve created.

To view its  source code, just go to the path where  you  installed it.

This is actually the second java desktop game i’ve created. The first one is Who Wants to be a Millionaire(WWW).  Unfortunately, I cannot find the file on my PC anymore.

The code of our Hangman game  is really messy. It is because we only have 5 days to create the program itself + the necessary documentations.

Anyways, we used the Netbeans drag-and-drop functionalities of the Swing GUI that’s why the  design of our program is  okay.

Categories: Programming

How to post your PHP projects in the Internet

April 23, 2011 Leave a comment

Well, because I spent some time researching on how to post PHP projects in the Internet, I’ve decided to make a walkthrough  about this so that I can share what I’ve learned to others.

STEPS: 

1. Find a free web-hosting site the supports PHP.
There are many free web-hosting sites to choose from.  And I recommend x10hosting.com. Therefore, this walkthrough will be focused on how to post PHP website using this particular web-hosting server.
NOTE: Before I am confused on how to upload my mysql and xampp (apache server) to the web. Then I’ve learned that the free hosting site take care of this already.   

2. Go to x10hosting.com website and follow the 3-steps to be Free
       a.  Pick a username —> Click the NEXT button
b.  Complete the Free Hosting Sign-up details to create an account
c.  Check your email and confirm your account
d. Once confirmed, another email will be sent with link to your control panel.  Control Panel would look like this…

3.  Let’s start by transferring your database.
a. If you’re using xampp before, you can open your xampp and go to your phpMyAdmin (http://localhost/phpmyadmin/). Export your database. (we’ll use it later).
b. Go to 10xhosting Control Panel. Click the MySQLDatabase Button. Create a database. Ex. username_databaseName.  Create also a user. (Note: Because the database is formatted like this, you should also change your database name on your php code regarding database configuration.)
c. After that, go to 10xhosting phpMyAdmin to import the sql file you’ve created above or you can manually code your tables using SQL queries.

4. Now, Let’s transfer your PHP files.
a. In order to transfer your files faster, we will use Filezilla.  You can Dowload it here. http://filezilla-project.org/download.php. After download, install it in your PC.
b. Go again to your 10xHosting Control Panel and click FTP Accounts.
c. You can see below on the Special FTP Account your username.  Click  Configure FTP client beside it. FTP Configuration File will be visible. Click it to download.
d. Open your Filezilla. Go to File –> Import.  Choose the file you just downloaded.
e.  Still on Filezilla, Click File —>  Site Manager. Choose your file (ftp.username.x10.mx).  Change logon type to Normal.  Type your username and password. Click Connect.
f. If connection is successful. You can see folders generated on the right side of the screen.
g. To upload your files (if for website), click public_html folder on the right side. Choose files to upload on the left_side, right click the files  and Click UPLOAD.
Note: All files that will be under the public_html folder will be visible on the website.  IMPORTANT: Make sure you have an index file uploaded on the public_html folder to make it work… Example filename of index:  index.php, index.html, etc.

5. Go now to your free website to check if  what you did is successful.  (Example  of URL: http://www.eventpostph.x10.mx/). Don’t forget to test again your codes (because some codes are working in xampp but not in 10xHosting).    ENJOY. 🙂

 

Categories: Programming

My Website Projects

April 23, 2011 Leave a comment

So far I’ve made 3 websites.

My First website project is for my basic web programming class. I’ve decided to make a website about Cats because I love cats. The website is really simple because I’ve only used notepad to code it. I finished it in 3 days and most of my time doing it was  spent encoding numerous information  about cats.
LINK:  www.catzmeow.t35.com

My Second website is created using J2EE. It is an e-commerce website (Online Pet Store) and my  deadline is to create it within 5 days. Unfortunately, 5 days is not enough for me….  I didn’t finish it. 😦   Why?  Because I spent most of my time  studying Adobe Dreamweaver to enhance my web design. I also can say that I’m not that good in Java that’s why my J2EE codes are really messy.   After our project presentation, our teacher told us that we can complete it…  For me, I have no intention of completing  it because I really  don’t like  my messy codes.. sob.. sob… sob…
LINK: Sorry, but I didn’t deploy it on the web because I don’t know how. Anway, this is what it looks like (Click it to enlarge the view):

My Third website is an Online Event Post and I created it using PHP. It’s really a super duper simple website.  I’ve applied the KISS (Keep it Simple Stupid!) principle on it (<— My lame excuse… hehehehe).  I didn’t even use Adobe Dreamweaver to design it. I also didn’t apply any MVC patterns on it. But at least I made some validations and authorization codes for it. I only have limited time to create this because I already have a JOB… woot woot!
LINK: http://www.eventpostph.x10.mx/

Categories: Programming