Exploiting Plurk

I learned this few easy steps on how to monitor Plurk users using ASP.NET.

1.) First, you need to know their user ID. You will find it by right clicking on the Plurk users' web page the view source.

Untitled-1

(Click to enlarge)

Look for the first "user_id": 4069774" ” property, just 3 lines below the "<script type="text/javascript">” tag

Untitled-2

(Click to enlarge)

2.) Go to your Plurk profile then click “embed Plurk widget” which is located at the lower right of the page. Customize it and copy the code below it. If you do not have any Plurk account, proceed to step 3 and copy the code.

3.) Open Visual Studio.Chop and put your the embedded code either in a string or StringBuilder(requires System.Text namespace) data type variable and should look like this(or similar):

StringBuilder sb = new StringBuilder();

sb.Append(@"<div style='width:200px; height:375px;'>");
sb.Append(@" <iframe src='http://www.plurk.com/getWidget?uid=12345");
sb.Append(@" &amp;h=375&amp;w=200&amp;u_info=2&amp;bg=cf682f&tl=cae7fd'");
sb.Append(@" width='200' frameborder='0' height='375' scrolling='no'></iframe>");
sb.Append(@" <div style='float: right; padding: 1px;'>");
sb.Append(@" <a href='http://plurk.com/' target= '_blank' ");
sb.Append(@" style='font-size: 10px !important; color: #999");
sb.Append(@" !important; border: none; text-decorate: none;'");
sb.Append(@" title='Plurk - A Social Journal for your life'>Plurk.com</a>");
sb.Append(@"</div></div>");


4.) Modify the code above. What I did is I stored all UserID in an array, place it in a DataTable, and put it inside a gridview. The whole code are here:
protected void Page_Load(object sender, EventArgs e)
{
//Enter the user accounts here
int[] uid = new int[] { 18757, 3267850 };

StringBuilder sb ;
DataRow Data;
//Construct DataTable to handle all Plurk accounts
DataTable account = new DataTable("Accounts");

DataColumn userID = new DataColumn("UserId");
userID.DataType = typeof(string);
userID.MaxLength = 10;
userID.AllowDBNull = false;
userID.Caption = "UID";
account.Columns.Add(userID);

DataColumn widget = new DataColumn("Widget");
widget.MaxLength = 1440;
widget.DataType = typeof(string);
widget.AllowDBNull = false;
account.Columns.Add(widget);

foreach (int x in uid)
{
sb = new StringBuilder();
Data = account.NewRow();
Data["UserID"] = x.ToString();

sb.Append(@"<div style='width:200px; height:375px;'>");
//Insert UserID here
sb.Append(@" <iframe src='http://www.plurk.com/getWidget?uid=" + x.ToString());
sb.Append(@" &amp;h=375&amp;w=200&amp;u_info=2&amp;bg=cf682f&tl=cae7fd'");
sb.Append(@" width='200' frameborder='0' height='375' scrolling='no'></iframe>");
sb.Append(@" <div style='float: right; padding: 1px;'>");
sb.Append(@" <a href='http://plurk.com/' target= '_blank' ");
sb.Append(@" style='font-size: 10px !important; color: #999");
sb.Append(@" !important; border: none; text-decorate: none;'");
sb.Append(@" title='Plurk - A Social Journal for your life'>Plurk.com</a>");
sb.Append(@"</div></div>");
Data["Widget"] = sb.ToString();
account.Rows.Add(Data);
}

//Create new instance of gridview to view the data
GridView gv = new GridView();
gv.EnableViewState = false;
gv.DataSource = account;
gv.AutoGenerateColumns = false;

BoundField ID= new BoundField();
ID.DataField = "UserID";
ID.HeaderText = "UserID";
ID.HtmlEncode = true;

BoundField widg = new BoundField();
widg.DataField = "Widget";
widg.HeaderText = "Widget";
widg.HtmlEncode = false;

gv.Columns.Add(ID);
gv.Columns.Add(widg);
gv.DataBind();
form1.Controls.Add(gv);
gv.DataBind();
}

Result

page

(Click to enlarge)

Purpose

To monitor Plurk users activity even without viewing their profile. At the same time, view numerous Plurk profiles in a single web page. Save bandwith!



Happy Hacking! =P

How the HR Department Reads Your Resume

(Click to read)

Losing Weight

 

I have had 18 cardio sessions in 7 weeks and my weight went down from 190 to 175. Diet plays a huge role during the process. Whenever I am at home(and as always), I only eat 2-3 tablespoon of rice per meal and I alter glucose with fructose. I used Atkins (high protein,low carb) diet for years. I also lift iron to ensure no muscles are lost.

I do cardio at least three times a week for 45-60 minutes per session. I always keep my heart rate as fast as I could to guarantee burning more fat. I’m not that ripped, but I can easily distinguish that I shred some fat by comparing my photo from last month and the latest. I can now also see my oblique. But no six pack yet. =(

change

slight difference

The heart-pounding workout

Exercise repetition set
Push-up 30 5
triceps extension 23 8
Bicep curl 16 8
single arm shoulder press 10 8
single arm lateral raise 10 8
Lat pull down 23 8
leg raise 16 7
crunches 50 7

 

The facts:

  • I work-out in the morning. Because testosterone level are high when you wake up in the morning, which increases muscle mass and strength.
  • I did not take any supplements- whey, creatine, hydroxycut, and absolutely no stanazol(steroid). I just take Protein naturally, and lots of fruits such as papaya, pineapple, mango, banana.
  • I always eat the right kind of food. NEVER do the No-eat diet. Your body will miss all the nutrients that they need to stay healthy.
  • I workout at the comfort of my home. If you are a beginner, nothing is better than going to the gym.You can work out more when you are in the gym.

Thesis Revisited

 

I upgraded our thesis which was an online flight monitoring system for Philippine Air Force. I need to expose them to some hiring managers. Some of the upgrades I added are:

  • Querystrings
  • AJAX and ExtJS using AJAX Control Toolkit and Coolite respectively
  • Added custom error inside Application_Error event in Global.asax.
  • Updated assemblies and some configurations in web.config
  • Added some JavaScript codes
  • and so on.

I also deleted some highly confidential data in the database to avoid being exploited. I am aware of the limitations naman.

Encrypting Files

truecryptlogo

If you have files that are highly confidential and you want to keep it protected, TrueCrypt is the key. It creates password protected, virtual encrypted disk within a file and mounts it as a real disk. What's best is that it is encrypted with the most modern encryption algorithms like Advanced Encryption Standard(AES), which is being used by the U.S government. You can download TrueCrypt software for free and it’s easy to use.

TrueCrypt works hard to offer powerful data protection, recommending complex passwords, explaining the benefits of hidden volumes, and erasing telltale signs of the encryption process, including mouse movements and keystrokes. TrueCrypt may be download on their website.


By the way, please do not forget your password. Consider these frequently asked question(FAQ):

I forgot my password – is there any way to recover the files from my TrueCrypt volume?

TrueCrypt does not contain any mechanism or facility that would allow partial or complete recovery of your encrypted data without knowing the correct password or the key used to encrypt the data. The only way to recover your files is to try to "crack" the password or the key, but it could take thousands or millions of years depending on the length and quality of the password/keyfiles, on software/hardware efficiency, and other factors.

World's greatest dad

Mom and Dad


Message for my dad this coming fathers day.

I have always admired you and respected you for being the most upright person I have known in my life. I accolade you for working so hard, waking up early to work and sleeping late at night. For showing your patience and loyalty for your work.

Thank you for teaching me how to be a responsible man. Thank you for showing your unconditional love for mama, and for me, too! You two are the greatest couple I have ever known. You are my inspiration and my motivation. When I become a dad, I want to be as hardworking, as patient, as caring, and as gentle as you are.

We might not have had a lot of interaction because of your work but you have made a maximum impact on the way I think and react. Your principles have been the guiding force in my life. I hope I will follow them all my life.

Best part about you as a father has been that you never really taught us anything. You just lived your life and showed us the path of rightful living. You provided us with all the essentials of good life and never made us compromise on anything. Without ever showing how hard it could have been for you to provide such a decent life to all of us.

Happy fathers day dad!

Exam 70-536




I'm currently on my self preparation for my next exam which is exam 70-536. This is my last exam towards being Microsoft Certified Technology Specialist(MCTS). This exam focuses on the fundamentals of the .NET Framework application, and should I say this is the heart of the framework.

Currently, nasa chapter 6 (graphics) na ako ng ebook (I do not have enough budget to buy a book). It took me a week to study and practice the first five chapters.


Click to enlarge


This exam pressures me because only a part of this exam has been taught back in college. Ang naalala ko lang na naituro sa amin noon yung mga reference types, class declarations, and inheritance. I learned that if you want to be a really good programmer, hindi ka dapat nakadepende lang sa mga natutunan mo sa school.You have to explore new things. 10 chapters to go. WORK WORK WORK!!!!!


Buhay bahay

Masarap din pala ang feeling ng nasa bahay lang. Hindi naman ako yung tao na tambay lang talaga sa bahay. At least, may pinagkakaabalahan ako dito. After all, maraming nagbago sa akin sa loob ng ilang buwan yun ay mga:


  1. Naging regular ang work-out ko (5:30am).
  2. Nadagdagan ang kaalaman ko sa pagluluto.
  3. Naging malapit sa mga magulang.
  4. Natuto ng husto sa pag-program.
  5. Natututong mag-piano
  6. Pumapayat na. =)

Yan ang ilan sa mga nangyari sakin. Marami pa akong plano na hindi pa natutupad. Magtatrabaho din ako balang araw. Pag nagtrabaho wala nang ibang gagawin kung hindi yun lang. Susulitin ko muna ang buhay ng nasa bahay lang. =)

Learning to play the piano



After more than 13 years na nakatambak lang sa bahay namin yung piano. Gusto ko nang matutong tumugtog ng piano. My mom wants me to learn to play the piano since siya lang ang marunong sa amin and she wants to pass her talent. I'm starting to learn na. My mom was my instructor. She composed two books already.




Then I found out na paulit ulit lang pala yan. You should remember the positioning of each keys and their corresponding note.The sharp sign (#) indicates a pitch is raised a half-step, so a C# is just a C raised a half-step. If you look at the keyboard, this makes sense. Because each key is a half-step away from the next key, and the # sign raises a note a half-step, the black key next to the C must be a C#.

Medyo familiar na ako sa keys particularly using only my right hand. Having it synchronized with my left is another issue. I found it very challenging to play the piano. Sana matuto ako. =)