Site Search
Top Download
Saturday, August 16, 2008
Clip Video Widget ยอดฮิตสำหรับนักท่องเน็ต อีกเช่นกัน
หลังจากลง MP3 Widget ไป ปรากฎว่าติด Hot Post หลังจากติด Traffic ขึ้นอย่างเห็นได้ชัด ทั้งๆ ที่มีไม่กี่ Entry หรือทำ Blog ได้ไม่กี่วัน แสดงให้เห็นว่าอย่างหนึ่งว่า นักท่องเน็ตชอบการฟังเพลงทางเน็ตมาก และคนทำ Blog พอเห็นคนดูเยอะก็สนุกล่ะครับ ดังนั้น ก็ขอแนะนำ Clip Video Widget กันต่อเลย อันนี้ก็ยอดฮิตไม่แพ้กัน มาเริ่มกันเลยครับ
1. หาผู้ให้บริการก่อนมีเยอะมากทั้งไทยและต่างประเทศ เช่น YouTube Megavideo Mthai เป็นต้น ที่สำคัญฟรี ถ้าใครมี Gmail ก็ใช้ Youtube ได้เลย ส่วนของผมใช้ Megavideo แล้วกัน น้องใหม่มาแรง รูปสวย ที่สำคัญถ้าคนดูเยอะมีรางวัลด้วย ก็ลงทะเบียนด้วย E-mail อันเดียวเหมือนกัน
2. ลงทะเบียน Confirm เสร็จก็ต้องหา Video มาลงกัน ในที่นี้ผมใช้ MV รูปที่มีทุกบ้าน ที่ GMM ให้โหลดฟรี อีกเช่นกัน เอาเต็มๆ เลยครับ 25 MB ดูแล้วซึ้งดี (ถ้าเป็นไฟล์อื่นระวังเรื่องลิขสิทธิ์ด้วยนะครับ)
3. การใช้งาน Megavideo ง่ายมาก แค่ Click Upload ตั้งชื่อไฟล์ กำหนดว่าจะ Share มั้ย แล้วก็ Upload ไฟล์ขึ้นไป รอนานหน่อยแต่ถ้าเป็น ADSL ก็แผล็บเดียว
4. Upload เสร็จก็ไปเลือกวีดีโอตัวเอง จะมี Link และ Code Embed ให้เลือก สามารถกำหนดสีและขนาดได้ เมื่อปรับจนพอใจ ถ้าจะให้โชว์ที่ Blog ก็เอา Code Embed มาวางที่ Blog ได้เลย
ส่วนใครอยากได้ Clip ตัวนี้ไปวางที่ Blog ตัวเอง ก็ Click ที่ตัววีดีโอ มันจะไปที่หน้าเว็บของ Megavideo ในส่วนของวีดีโอตัวนี้ เสร็จแล้วก็ Copy CodeEmbed มาได้เลย
มีทิปการดูวิดีโอทางเน็ตนิดหน่อย คือรอบแรกอาจจะไม่ต้องดู ปล่อยให้แถบสีเต็มก่อน แล้วค่อยกลับมา Play อีกรอบภาพและเสียงจะไม่สะดุด และเคล็ดลับอีกอย่างคือ ในพวกที่ให้บริการทั้งหลาย สามารถเอา Code ของคนอื่นมาวางได้ด้วย แต่ต้องระวังเรื่องลิขสิทธิ์ด้วยนะครับ
Free Stat Counter Widget เยอะจริงๆ จนไม่รู้จะเลือกอันไหนดี
อันดับ 1 สำหรับผมจะเป็นใครไปไม่ได้นอกจาก Histats และบ้านเราใช้กันอย่างแพร่หลาย ข้อดีเยอะมากครับนับไม่ถูกเลย เช่น ตัว Counter มีให้เลือกเยอะน่าจะเป็นร้อยแบบ แบบรูปข้างบน และตัวอย่างด้านขวาของผม โชว์สถิติทั้งหมดและประจำวันได้ที่ตัวกราฟฟิก สามารถเลือกโชว์ข้อมูลสำหรับสาธารณะได้ และที่สำคัญข้อมูลสถิติของคนทำเว็บมีหมดเลยครับ และ RealTime ซะด้วย เช่น สถิติรายชั่วโมง รายวัน รายเดือน IP-Address อะไร มาจากเว็บไหน Search Engine อะไร และ Key Word อะไร มาจากประเทศไหน ดูหน้าไหนมากที่สุด เป็นต้น บอกไม่หมดต้องลองใช้เอง ข้อมูลเหล่านี้ค่อนข้างเป็นประโยชน์ ให้เราปรับปรุงเว็บบล็อกของเราให้ตรงกับคนที่เข้ามาดูได้ ที่สำคัญถ้า Traffic เยอะก็จะถูกจับตามองล่ะครับ ถ้าเนื้อหาดีก็มีลุ้นได้ค่าโฆษณากัน แต่ก็มีข้อเสียนิดหน่อย คือ log file ให้แค่ 1000 รายการ ดูจะน้อยไปหน่อย ของผมเพิ่งเขียน Entry ที่นี่ไม่กี่วัน พอติด Hot Post หน่อยจะถึงอยู่แล้ว แต่ก็ไม่เป็นไรสามารถส่งข้อมูล log file ไปที่ Excel ได้ และที่สำคัญสามารถทำได้มากกว่า 1 site ตอนนี้ของผมจะมีถึง 10 อยู่แล้วก็ยังใช้ได้อยู่ Alexa จัด Traffic อยู่ 4 พันกว่า แต่อันดับก็ไต่มาเรื่อยๆอันดับ 2 ให้เป็น Motigo ครับ บริการจะคล้าย Histats ยังลองใช้ไม่เต็มที่ แต่เว็บค่อนข้างอืดไปหน่อย โฆษณาว่าดีที่สุดเท่าที่เคยมีมา นอกจากจะมีเรื่องสถิติแล้ว ยังมีของแถมให้อีกทั้ง Blog Forum เป็นต้น Alexa จัดอันดับ 2 พันกว่าอันดับ 3 เป็น StatCounter ข้อมูลแน่นดี แต่กราฟฟิกไม่สวยจึงให้เป็นอันดับ 3 เหมาะสำรับคนที่มีหลาย site และ Alexa จัดให้อยู่ 226 และเป็นอันดับ 1 ของโลก ในประเภท Free Counter แต่โดยส่วนตัวไม่ติดใจเท่าไร เพราะกราฟฟิกไม่สวย เข้าใจว่ามาก่อนเจ้าอื่น และคนทำเว็บ ส่วนใหญ่ไม่อยากย้ายกันอันดับ 4 เป็น CounterTool ที่ให้เพราะเป็นตัวแรกที่ใช้ มีสถิติเท่าที่จำเป็นรวดเร็วดี แต่พอใช้ Hitstats แล้วก็ต้องเอาออก
Friday, July 4, 2008
Flash Lite for BREW Publisher for Flash CS3 Pro
From Adobe Labs
| Table of contents [showhide] |
Flash Lite for BREW Publisher for Flash CS3 Professional (preview release)
This preview release of the Flash Lite for BREW publisher includes a plug-in for Flash CS3 Professional that lets you publish your Flash applications to the native BREW application format.
The Flash Lite Publisher for BREW lets you publish your Flash Lite content to the native BREW application format (MOD and MIF files) for testing on supported BREW handsets. Also included in this installation are files necessary for previewing your Flash Lite application in the BREW Simulator, part of the BREW 3.1 SDK (a separate download and installation).
Note: It is recommended that you download and install the BREW SDK 3.1.5 before installing the Flash Lite Publisher for BREW. This will insure that the necessary files for previewing your Flash Lite applications in the Qualcomm BREW SDK Simulator are installed properly.
Download
(last updated 16 April 2007)
Known Issues
- This is only a preview release and not the final version.
- The plug-in will only work on English versions of Windows operating systems.
- Publishing of MOD/MIF files from within Flash CS3 Professional does work correctly and the published files do work in the BREW SDK Simulator and on supported BREW handsets.
Support
There is no direct support for this preview release of the Flash Lite for BREW Publisher for Flash CS3 Professional and is offered as is. If you have any comments or feedback you can post them in our Adobe Flash Lite: BREW discussion group.
ColdFusion Portlet Toolkit
From Adobe Labs
| Table of contents [showhide] |
Overview
The ColdFusion Portlet Toolkit is a proof-of-concept library that allows you to use ColdFusion as a Portal Application within an IBM WebSphere Portal Server (WSPS version 5 and greater). A Portal Application can serve several different portlets. Every portlet you deploy will run inside the same ColdFusion Portal Application. This toolkit provides one concrete Portlet called CFCPortlet. This Portlet simply passes the requests on to the ColdFusion server. The ColdFusion then invokes CFC methods to render the Portlet, and to perform actions. You can deploy several instances of this Portlet on your Portal Server. The setting cfcName defines which CFC will be used to marshal the Portlet events.
The ColdFusion Portlet Toolkit is a proof-of-concept. As such, all items available in the toolkit are of experimental quality; we have released them "as is" under the Adobe Labs source license.
Download and Installation
To use the ColdFusion Portlet Toolkit, follow these steps:
1. Download the ColdFusion Portlet Toolkit and see the Adobe Labs source license for terms of use.
Note: Your use of this site including software downloads, submission of comments, ideas, feature requests and techniques on this and other Adobe maintained forums, as well as Adobe’s rights to use such materials, is governed by the Terms of Use.
2. Unzip the Portlet toolkit to a directory on your server, for instance c:\cfportlet\.
3. Follow the detailed installation instructions at Portlet Toolkit Directory\docs\admin-guide\index.html
Documentation
The ColdFusion Portlet Developers Guide will be installed at Portlet Toolkit Directory\docs\cf-dev-guide\index.html. Items covered in this guide are:
- Portlet Overview
- Your First Portlet
- Building a Simple Portlet
- ColdFusion Portlet Reference
- Converting Existing Code to Portlets
- Known Issues
- WebSphere API vs JSR-168
Known Issues
There are a few known limitations in the current version with the following features:
- DateFormat
The DateFormat function does not work from within a Portlet. Workaround: Use the LSDateFormat function instead.
- TimeFormat
The TimeFormat function does not work from within a Portlet. Workaround: Use the LSTimeFormat function instead.
- SetLocale
The SetLocale function does not work from inside a Portlet. No workaround is available.
- CFFORM
The CFFORM tag with format="flash" does not work inside the Portlet context. No workaround is available.
- CFCHART
The CFCHART tag with labelformat="currency" may display the generic currency symbol ¤ by default instead of a $. Workaround: The default locale setting on WebSphere is en (English) with no country setting. To deal with this simply set the default locale to en-US. For Example:
You can also set the default locale using a JVM startup argument.
Edit MS Flex Grid in Two Ways
Introduction
Hi all!
This is my second article on Code Project. This is about how to edit MS Flex Grid. I was using TextBox and ComboBox to edit flex grid at run time, for that I had to add reference of Microsoft.VisualBasic.Compatibility and some complex coding to move TextBox or ComboBox on grid. But this is good idea if some one wants to edit grid with some predefined itemsusing ComboBox.
But if you want to text than there is a simple way to do this; that is the use of Text property of MS Flex Grid Control.
Using the code
To edit MS Flex Grid without using TextBox we have to use .Text property and KeyPressEvent of MS Flex Grid Control.
Private Sub AxMSFlexGrid1_KeyPressEvent(ByVal sender As Object, ByVal e As AxMSFlexGridLib.DMSFlexGridEvents_KeyPressEvent) Handles AxMSFlexGrid1.KeyPressEvent
Select Case e.keyAscii
Case 30 To 136
AxMSFlexGrid1.Text += Chr(e.keyAscii)
Case 8
If AxMSFlexGrid1.Text <> "" Then AxMSFlexGrid1.Text = Mid(AxMSFlexGrid1.Text, 1, Len(AxMSFlexGrid1.Text) - 1)
Case 13 And AxMSFlexGrid1.Col <> 2
AxMSFlexGrid1.Col = 2
Case 13 And AxMSFlexGrid1.Col = 2
AxMSFlexGrid1.Rows = AxMSFlexGrid1.Rows + 1
AxMSFlexGrid1.Col = 1
AxMSFlexGrid1.Row = AxMSFlexGrid1.Row + 1
End Select
End Sub
In second techinque I have used a function name moveTextBox to move TextBox at appropriate posiotion and to sent enter text in Grid I have used .Textproperty of Grid control.
Private Sub moveTextBox()
TxtEntry.Visible = True
TxtEntry.Left = VB6.TwipsToPixelsX(AxMSFlexGrid2.CellLeft + VB6.TwipsToPixelsX(AxMSFlexGrid2.Left)) + 17
TxtEntry.Top = VB6.TwipsToPixelsY(AxMSFlexGrid2.CellTop + VB6.TwipsToPixelsY(AxMSFlexGrid2.Top)) + AxMSFlexGrid2.Top
TxtEntry.Width = VB6.TwipsToPixelsX(AxMSFlexGrid2.CellWidth)
TxtEntry.Height = VB6.TwipsToPixelsY(AxMSFlexGrid2.CellHeight)
TxtEntry.BringToFront()
TxtEntry.Focus()
End Sub
On TextBox's KeyDown event I have assigned TextBox's .Text property to Flex Grid's .Text property
Private Sub TxtEntry_KeyDownEvent(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TxtEntry.KeyDown
If AxMSFlexGrid2.Col = 1 Then
If e.KeyCode = Keys.Enter Then
AxMSFlexGrid2.Text = TxtEntry.Text
TxtEntry.Clear()
AxMSFlexGrid2.Col = 2
End If
End If
End Sub
On EnterCell event of Grid Control I have called this function.
Private Sub AxMSFlexGrid2_EnterCell(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxMSFlexGrid2.EnterCell
If AxMSFlexGrid2.Col = 2 Then
Call moveCombo()
If AxMSFlexGrid2.get_TextMatrix(AxMSFlexGrid2.Row, 2) <> "" Then
CmbEntry.Text = AxMSFlexGrid2.get_TextMatrix(AxMSFlexGrid2.Row, 2).ToString
Else
CmbEntry.Text = ""
End If
Else
CmbEntry.Visible = False
End If
If AxMSFlexGrid2.Col = 1 Then
Call moveTextBox()
If AxMSFlexGrid2.get_TextMatrix(AxMSFlexGrid2.Row, 1) <> "" Then
TxtEntry.Text = AxMSFlexGrid2.get_TextMatrix(AxMSFlexGrid2.Row, 1).ToString
Else
TxtEntry.Clear()
End If
Else
TxtEntry.Visible = False
End If
End Sub
Thanx And Happy Coding..
License
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
About the Author
| suresh suthar | Hi All. I am Suresh Suthar from Mumbai India. I am a Software Developer working in a private firm as a .NET developer. I born and brought up in a small village Sewari in Rajasthan. I started my carrier as a data entry operator in 2006. After that I started learning VB 6.0 and VB.NET 2005. Now I am developing software using VB.Net 2005 and SQL Server 2000/2005. Here you will some cool source code and a lots of stuff on SQL Injection, Code Injection, Encription/Decription, Live project, Tutorials on VBScript,JavaScript,Cold Fusion, C# and many more... http://www.programmer2programmer.net/
|
http://www.codeproject.com/KB/grid/EditMSFlexGrid.aspx