โลกใสๆ ของนักวิจัยขี้บ่น

พลังที่ไร้ขีดจำกัด คือพลังแห่งจินตนาการ

การปักหมุดใน Google Map API ด้วย PdMarker

Tags: , ,

ที่มา Google Map PdMarker

<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Google Maps JavaScript API Example - simple</title>
    <style type="text/css">
       div.markerTooltip, div.markerDetail {
          color: black;
          font-weight: bold;
          background-color: white;
          white-space: nowrap;
          margin: 0;
          padding: 2px 4px;
          border: 1px solid black;
       }
    </style>
<script src="http://maps.google.com/maps?file=api&v=2.x&key=abcdefg"
           type="text/javascript"></script>
<script type="text/javascript" src="pdmarker.js"></script>

<script type="text/javascript">
//<![CDATA[
window.onload = onPageLoad;
var map;

function onPageLoad() {
    if (GBrowserIsCompatible()) {
	map = new GMap2(document.getElementById("map"));
	map.setCenter(new GLatLng(49.28124, -123.12035), 17-5);
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());
	marker = new PdMarker(new GLatLng(49.28124,-123.12035));
	marker.setTooltip("Vancouver");
	var html = "Visit <a href='http://www.mysite.com'>mysite<\/a>";
	marker.setDetailWinHTML(html);
	marker.setHoverImage("http://www.google.com/mapfiles/dd-start.png");
	map.addOverlay(marker);

    }
}
//]]>
</script>

  </head>

  <body>
    <div id="map" style="width: 400px; height: 400px"></div>
    <div id="pdmarkerwork"></div>
  </body>

</html>

การกู้คืนรหัสผ่าน

Tags: ,

ผมไม่อยากเรียกวิธีการนี้ว่า การแฮก เพราะจุดประสงค์คือเอาไว้ใช้ในยามฉุกเฉิน เนื่องจากปัจจุบัน เราใช้สมองในการจำน้อยลง ส่วนมากมักใช้คุณสมบัติของโปรแกรมต่างๆ ในการจดจำ ไม่ว่าจะเป็นรหัสผ่านในเว็บบราวเซอร์ ในโปรแกรม หรือแม้กระทั่งเบอร์โทรศัพท์

บ่อยครั้งเมื่อต้องการใช้กับเครืองอื่นที่ไม่ใช่เครืองประจำ ก็มักเกิดอาการนึกไม่ออก ก็แหงหละครับ เพราะเราไม่เคยจำเลยนี่นา บางคนใช้รหัสผ่านหลายตัว จำไม่ได้ว่าตัวไหนใช้คู่กับตัวไหน วิธีการที่ทำได้คือรีเซทใหม่ซะเลย ตั้งใหม่จะง่ายกว่า

วันนี้ผมเลยเอาเทคนิคง่ายๆ ในการกู้คืนรหัสผ่าน ที่เราสั่งให้บราวเซอร์จำไว้ โดยใช้ javascript นี่เองครับ ซึ่งมีขั้นตอนไม่ซับซ้อนอะไรมาก

Read the rest of this entry »

© 2009 โลกใสๆ ของนักวิจัยขี้บ่น. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.