Monitoring Internet Connection

NetworkMeter

Tired of guessing whether there’s an internet connection or none? Do you know your Internet protocol (IP) address? If you’re a Vista user, you can download this very useful gadget (which I always look at whenever my connection slows down, or worse, DOWN).

Here’s the theory:

Whenever you click something on a web page (or just hit refresh), the browser requests data to the server. During the process, the browser uploads data. It is where the uploading occurs (green, up arrow).

PageLifeCycle

Web page life cycle


When the server receives the data from the browser, it sends back data to the browser. It is where the downloading occurs (yellow, down arrow).


To make things short, observe the following.

If the upload (up arrow) speed is greater than 0 Kbit/s, and the download (down arrow) speed is 0Kbit/s. Then probably you don't have connection.

If both are 0Kbits/s, try to Google/Yahoo!. Or, ensure that the network cable is connected in your computer.

NOTE: for Vista users only =p

Kowtzzzz

Mga pinaka-gusto kong kowts mula sa dalawang magagaling na manunulat, at mga BFF’s ko rin sa Plurk! Sundan niyo din sila!

Bob Ong

  1. "Huwag mong bitawan ang bagay na hindi mo kayang makitang hawakan ng iba."

  2. "Huwag mong hawakan kung alam mong bibitawan mo lang."

  3. "Hiwalayan na kung di ka na masaya. Walang gamot sa tanga kundi pagkukusa."

  4. "Huwag na huwag ka hahawak kapag alam mong may hawak ka na."

  5. "Parang elevator lang yan eh, bakit mo pagsisiksikan ung sarili mo kung walang pwesto para sayo. Eh meron naman hagdan, ayaw mo lang pansinin."

  6. "Pag hindi ka mahal ng mahal mo wag ka magreklamo. Kasi may mga tao rin na di mo mahal pero mahal ka. Kaya quits lang.".

  7. Mangarap ka at abutin mo ito. Wag mo sisihin ang sira mong pamilya, palpak mong syota, pilay mong tuta o mga lumilipad na ipis. Kung may pagkukulang sayo ang magulang mo, pwede kang manisi at magrebelde. Tumigil ka sa pag-aaral, magdrugs ka, magpakulay ng buhok sa kilikili, Sa huli, ikaw din ang biktima. Rebeldeng walang napatunayan at bait sa sarili

Paolo Coelho

  1. Be brave. Take risks. Nothing can substitute experience.

  2. Everything that happens once can never happen again. But everything that happens twice will surely happen a third time.

  3. Life was always a matter of waiting for the right moment to act.

  4. No one can lie, no one can hide anything, when he looks directly into someone's eyes.

  5. Love like rain, can nourish from above, drenching couples with a soaking joy. But sometimes under the angry heat of life, love dries on the surface and must nourish from below, tending to its roots keeping itself alive.

  6. Only one thing makes a dream impossible, the fear of failure.

  7. The only way to make the right decision is to find out which is the wrong decision, to examine that other path without fear, and only then to decide.

  8. No one day is like another; each tomorrow has its special miracle, its magic moment in which old universes are destroyed and new stars created.

  9. The secret lies in the present – if you pay attention to the present, you will be able to improve it. And if you improve the present, whatever happens afterwards will be better too. Each day brings us Eternity.

How Committed Are You?

“ I never asked myself that classic guidance-counselor question,
"What do you want to do with your life?" I always asked myself,
"What are you actually doing with your life?" Small distinction.
Major difference and bottles in one word: Commitment.

Commitment is a big part of what I am and what I believe.
How committed are you to God? to your parents? To your wife/girlfriend?
To your work/career? Studies?
How committed are you to being successful? to being a good role model? To being healthy? To being an honest person?

There's that moment every morning when you look in the mirror: Are you committed, or are you not?

Maybe we all should be taking ourselves more seriously, pushing a little harder, achieving that fuller life a little faster. ”

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.