Xmind โปรแกรมฟรีไว้สร้าง mindmap

บันทึกโดย TaTump วันที่ 2 September 2010 | 43 views

stage-ss-ss6

memo8-com-xmind

นานมาแล้วเคยแนะนำ FreeMind ไป มาถึง Xmind โปรแกรม Freeware ดีๆ แถม Opensource ด้วย  นี้ สีสันสวยงามเลยนะเนี่ย จริงๆผมเอามาทำ Site map ของเว็บเพราะ Xmind มี Structure หลายแบบให้เลือก , Themes,และ icon ต่างๆมากมาย รองรับภาษาไทย สำหรับเวอร์ชั่นฟรีสามารถ Export เป็น HTML,Images,FreeMind (รู้สึกภาษาไทยเพี้ยนแฮ๊ะ) หลายๆฟังก์ชั่นอยู่ในรุ่น Pro (เสียเงิน) แต่เท่านี้ก็ใช้งานได้แล้ว ลองใช้ดูครับ

Download : http://www.xmind.net/

Bookmark and Share

PHP แสดง Data Dictionary สำหรับ Mysql

บันทึกโดย TaTump วันที่ 2 August 2010 | 143 views

พอดีต้องการทำ Data Dictionary แต่ server ไม่มี phpMyAdmin ก็เลยเขียน php แบบง่ายๆขึ้นมาเพื่อแสดง Data Dictionary เลยเอามาโพสไว้ในเว็บเผื่อใครต้องการครับ Download ที่นี่

Source code

header("Content-Type: application/vnd.ms-excel");
header('Content-Disposition: attachment; filename="data_dictionary.xls"');#ชื่อไฟล์

/*----------------------
Config Database
-----------------------*/
$strCfgDbHost = "localhost";
$strCfgDbUser = "root";
$strCfgDbPass = "";
$strCfgDbName = "";

$objDb = mysql_connect($strCfgDbHost,$strCfgDbUser,$strCfgDbPass);
mysql_select_db($strCfgDbName);
if (!$objDb) { die('Could not connect: ' . mysql_error()); }
mysql_query("SET NAMES UTF8");
mysql_query("SET character_set_results=utf8");

$sql = "SHOW TABLES";
$rs = mysql_query($sql);
$i=0;
while($row = @mysql_fetch_array($rs)){
$tableArr[$i] = $row[0];
$i++;
}
@mysql_free_result($rs);

$html="";
foreach ($tableArr as $table) {
$sql="DESCRIBE $table;";
$rs = mysql_query($sql);
$html ="<h1>$table</h1>";
$html .="<br><br>";
$html .= "<TABLE border=\"1\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">
<TR>
<TD><b>Field</b></TD>
<TD><b>Type</b></TD>
<TD><b>Null</b></TD>
<TD><b>Key</b></TD>
<TD><b>Default</b></TD>
<TD><b>Extra</b></TD>
</TR>
";

while($row = @mysql_fetch_array($rs)){
$html .= "
<TR>
<TD>$row[0]</TD>
<TD>$row[1]</TD>
<TD>$row[2]</TD>
<TD>$row[3]</TD>
<TD>$row[4]</TD>
<TD>$row[5]</TD>
</TR>
";
}
@mysql_free_result($rs);
$html .="</TABLE>";
echo $html;
}// Loop
Bookmark and Share

แก้ไข Error Android “Error generating final archive: Debug certificate expired”

บันทึกโดย TaTump วันที่ 29 July 2010 | 190 views

certificate expired ซะงั้นดูจากปีพ.ศ.แล้ว (2497) น่าจะเกิดตอนลง SDK  แล้วเครื่องเราตั้งระบบวันที่ของไทย เลยได้ certificate expired มาผิด

วิธีแก้ตามที่หลายเว็บแนะนำคือให้ไปลบไฟล์ “debug.keystore” ถ้าเป็น vista หรือ 7 อยู่ที่ C:\Users\ชื่อเครื่อง\.android ถ้า xp ก็อยู่ที่ C:\Documents and Settings\ชื่อเครื่อง\.android จากนั้นให้ไปเปลี่ยนภาษาใน control panel >> Regional and Language Options เป็น English(United States) แต่ลองแล้วก็ error เหมือนเดิม ไปเจออีกวิธีนึงได้ผลชะงักเลยตามด้านล่างครับ

เปิด command prompt แล้วพิมพ์

keytool -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 10000 -dname "CN=Android Debug,O=Android,C=US"

certificate 10,000 วัน กว่าจะถึงวันนั้นคงลง windows ใหม่ไปหลายรอบ 555+ ลองดูครับ ^^

ที่มา : http://androidbook.blogspot.com/

Bookmark and Share

หน่วงเวลาการรันโปรแกรมขณะเริ่ม Boot Windows ด้วย Startup Delayer

บันทึกโดย TaTump วันที่ 27 July 2010 | 121 views

startdelay

หลายครั้งที่เราเปิด Windows มาแล้วโปรแกรมต่างๆรันอัตโนมัติมากมายจนทำให้เครื่องอืดกันทีเดียว เราสามารถที่จะไปเซ็ตใน msconfig ให้ไม่รันได้ แต่บางโปรแกรมก็จำเป็นต้องใช้จริงๆ พอดีไปเจอ Startup Delayer ฟรีแวร์ดีๆตัวนี้มา ที่มีฟังก์ชั่นให้เลือกหน่วงเวลาเลื่อนการรันโปรแกรมขณะเราเปิด Windows โดยเราระบุๆได้เลยว่าจะให้โปรแกรมนี้ เลื่อนไปกี่ ชั่วโมง,นาที,วินาที ลองใช้ดูครับไม่ยากเลย

“อย่าเผลอไปตั้ง delay antivirus ล่ะ เดี๋ยวจะหาว่าไม่เตือน อุอุ…”

Download: http://www.snapfiles.com/get/startdelay.html

Bookmark and Share

doPDF โปรแกรมฟรีสำหรับสร้างไฟล์ PDF

บันทึกโดย TaTump วันที่ 27 July 2010 | 79 views

free-pdf-converter

เมื่อคุณ Install ลงเครื่อง ไม่ว่าจะเป็นไฟล์ Microsoft Word, WordPad, NotePad หรือซอฟต์แวร์อื่น ๆ ก็สามารถ Convert เป็น pdf ได้หมด

  1. โดยคลิกสั่ง Print แล้วเลือก doPDF
  2. เลือกที่ว่าจะ save ที่ไหน และกดปุ่ม Ok

Download : http://www.dopdf.com/download.php

Bookmark and Share

Javascript Check and Uncheck All Checkboxes.

บันทึกโดย TaTump วันที่ 8 July 2010 | 148 views

เป็น Function เล็กๆสำหรับ Check และ Uncheck ของ Checkbox ทั้งหมด โดยชื่อ Checkbox ในตัวอย่างนี้ใช้เป็น Array ครับ เหตุผลที่ใช้เพราะตอนเขียน PHP ต้องการรับค่าเป็น Array (แล้วแต่โปรแกรมที่ทำนะจ๊ะ) ดูตัวอย่างด้านล่างเลยดีกว่า

Head

<script language="JavaScript" type="text/javascript">
<!--
// - Check All Controller
function checkAllController(theForm,obj,checkName){
	if(obj.checked==true){
		eleArr=theForm.elements[checkName+'[]'];
		for (i=0;i<eleArr.length;i++){eleArr[i].checked= true ;}
	}else{
		eleArr=theForm.elements[checkName+'[]'];
		for (i=0;i<eleArr.length;i++){eleArr[i].checked= false ;}
	}
}
//-->
</script>

Body

<form action="" method="post" name="frmAdd" id="frmAdd">
<input type="checkbox" name="checkAll" id="checkAll" value="All" onclick="checkAllController(document.frmAdd,this,'checkArr')">All <br>
<input type="checkbox" name="checkArr[]" id="checkArr[]" value="1">1 <br>
<input type="checkbox" name="checkArr[]" id="checkArr[]" value="2">2 <br>
<input type="checkbox" name="checkArr[]" id="checkArr[]" value="3">3 <br>
<input type="checkbox" name="checkArr[]" id="checkArr[]" value="4">4 <br>
<input type="checkbox" name="checkArr[]" id="checkArr[]" value="5">5 <br>
</form>

Demo : http://www.memo8.com/lab/javascript/javascript-check-uncheck-all-checkboxes/demo.html
Download : http://www.memo8.com/lab/javascript/javascript-check-uncheck-all-checkboxes/demo.htmls

Bookmark and Share

ใช้ CSS กำหนดความสูงของ DIV เป็น height: 100%; แต่ Firefox Render ผิดพลาด

บันทึกโดย TaTump วันที่ 5 July 2010 | 177 views

ลองเพิ่ม overflow:hidden; เข้าไปด้วยครับ
ตัวอย่าง

.example{
width:500px;
height: 100%;
overflow:hidden;
}
Bookmark and Share

โปรแกรมฟรี Mozilla Sunbird สร้าง Calendar ไว้จัดการ schedule ส่วนตัว

บันทึกโดย TaTump วันที่ 28 June 2010 | 238 views

sunbird-month-view

ใครเคยใช้ Google Calendar รับรองว่าง่ายเลยเพราะ Interface คล้ายๆกันเลยครับ Sunbird เป็น Freeware เกี่ยวกับปฏิทิน (Offline) ที่ดีที่สุดที่ผมเคยใช้มา (อาจจะมีดีกว่านี้ แต่ไม่ฟรีอุอุ…) โดยค่าย Mozilla เจ้าของเว็บ Browser ชื่อดังอย่าง Firefox เป็นผู้พัฒนา มาดูกันว่าสามารถทำอะไรได้บ้าง

  • สามารถบันทึกรายการต่างๆได้ง่าย และระบุวันที่เริ่มต้น-สิ้นสุดได้
  • ย้ายรายการโดยลากวาง (Drag & Drop)
  • กำหนดสีให้แต่ละรายการ
  • สร้าง Calendar ได้หลายรายการ
  • ดูได้หลายรูปแบบ เช่น วัน สัปดาห์ เป็นต้น
  • มี add-ons เสริม
  • สามารถ Search ได้
  • สามารถ Print ได้

ยังมี feature อื่นๆที่น่าสนใจ ก็ลอง download ไปใช้กันดูครับ

Download : http://www.mozilla.org/projects/calendar/sunbird/download.html

Bookmark and Share

วิธีแก้ไข ASP.NET Error Exception Details: System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.

บันทึกโดย TaTump วันที่ 27 June 2010 | 178 views

ให้เพิ่ม MultipleActiveResultSets=true ใน ConnectionString

ตัวอย่าง

<connectionStrings>
  <add  name="Default"
        connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=MyDb;Persist Security Info=True;User ID=sa;Password=sa;MultipleActiveResultSets=true"
        providerName="System.Data.SqlClient"/>
</connectionStrings>

ที่มา : http://blog.sb2.fr/post/2008/12/10/There-is-already-an-open-DataReader-associated-with-this-Command-which-must-be-closed-first.aspx

Bookmark and Share

วิธีแก้ไข ASP.NET C# เมื่อ Rename หรือ Delete Folder แล้ว Session Timeout

บันทึกโดย TaTump วันที่ 25 June 2010 | 269 views

นั่งเสียเวลาเป็นชม.ๆ –” มันอะไรกันนักหนาเนี่ย 55+ ไปได้วิธีมาจากเว็บ Narisa และ Greatfriends ได้ความว่า ใน ASP.NET 2.0 ได้เพิ่มสิ่งที่เรียกว่า File Change Notifications (FCN) หรือ Directory Monitoring เพื่อคอยจับ Directory ทุกครั้งที่มีการ Rename หรือ Delete มันจะ Restart Application ดังนั้น Session State ที่เก็บแบบ InProc จะหายไปด้วย (เออเอากับมัน…)

เกริ่นซะยาวมาดูวิธีแก้กันเลยให้ใส่ Code ด้านล่างนี้ ในไฟล์ “Global.asax.cs” ที่ Events Application_Start() และใช้ using System.Reflection ด้วย ซึ่งการทำงานของมันจะปิด Directory Monitoring ทันทีที่ Application เริ่มทำงาน

System.Reflection.PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
object o = p.GetValue(null, null);
System.Reflection.FieldInfo f = o.GetType().GetField("_dirMonSubdirs", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.IgnoreCase);
object monitor = f.GetValue(o);
System.Reflection.MethodInfo m = monitor.GetType().GetMethod("StopMonitoring", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
m.Invoke(monitor, new object[] { });

สำหรับคนที่ยังไม่เคยใช้ Global.asax.cs ขออธิบายนิดนึงครับ

ไฟล์ Global.asax.cs จะมีไฟล์ Global.asax Inherits มาเรียกอีกทีนึง และทั้งสองไฟล์จะต้องอยู่บนสุดของเว็บไซต์เท่านั้นนะจ๊ะ ยิ่งอธิบายยิ่ง”งง” ดาวน์โหลดไปเลยดีกว่าตรงนี้ผมใส่ Code ด้านบนไว้ให้เรียบร้อยแล้วครับ
คลิกที่นี่เพื่อดาวน์โหลด Global.asax และ Global.asax.cs

เมื่อเราใส่ Code เรียบร้อยแล้วหากเกิดกรณี Error ประมาณนี้


Security Exception
Description: The application attempted to perform an  operation not allowed by the security policy.  To grant this  application the required permission please contact your system  administrator or change the application's trust level in the  configuration file.
 Exception Details: System.Security.SecurityException:  Request failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

ให้ไปที่ไฟล์ web.config แล้วไปเพิ่มตาม Code ด้านล่าง

<system.web>
<trust level="Full" originUrl=""/>
</system.web>

เป็นอันเสร็จเรียบร้อยครับ

ที่มา :
http://www.narisa.com/forums/index.php?showtopic=27585
http://www.greatfriends.biz/webboards/msg.asp?id=106519

Bookmark and Share

Page 1 of 1512345»...Last »